Skip to content

Commit 1b98b85

Browse files
refactor: simplify rollup config and match @tauri-apps/api output style (tauri-apps#722)
* refactor: simplify rollup config and match `@tauri-apps/api` output style * add license headers * update api-iife.js [skip ci] --------- Co-authored-by: Lucas Nogueira <[email protected]>
1 parent fc62ead commit 1b98b85

File tree

102 files changed

+491
-777
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+491
-777
lines changed

Cargo.lock

+28-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/authenticator/package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,19 @@
77
"Tauri Programme within The Commons Conservancy"
88
],
99
"type": "module",
10-
"browser": "dist-js/index.min.js",
11-
"module": "dist-js/index.mjs",
12-
"types": "dist-js/index.d.ts",
1310
"exports": {
14-
"import": "./dist-js/index.mjs",
1511
"types": "./dist-js/index.d.ts",
16-
"browser": "./dist-js/index.min.js"
12+
"import": "./dist-js/index.js",
13+
"require": "./dist-js/index.cjs"
1714
},
1815
"scripts": {
1916
"build": "rollup -c"
2017
},
2118
"files": [
2219
"dist-js",
23-
"!dist-js/**/*.map",
2420
"README.md",
2521
"LICENSE"
2622
],
27-
"devDependencies": {
28-
"tslib": "2.6.2"
29-
},
3023
"dependencies": {
3124
"@tauri-apps/api": "2.0.0-alpha.11"
3225
}
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
2+
// SPDX-License-Identifier: Apache-2.0
3+
// SPDX-License-Identifier: MIT
4+
5+
import { createConfig } from "../../shared/rollup.config.js";
6+
7+
export default createConfig();

plugins/authenticator/rollup.config.mjs

-11
This file was deleted.

plugins/authenticator/src/api-iife.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/autostart/package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,19 @@
66
"Tauri Programme within The Commons Conservancy"
77
],
88
"type": "module",
9-
"browser": "dist-js/index.min.js",
10-
"module": "dist-js/index.mjs",
11-
"types": "dist-js/index.d.ts",
129
"exports": {
13-
"import": "./dist-js/index.mjs",
1410
"types": "./dist-js/index.d.ts",
15-
"browser": "./dist-js/index.min.js"
11+
"import": "./dist-js/index.js",
12+
"require": "./dist-js/index.cjs"
1613
},
1714
"scripts": {
1815
"build": "rollup -c"
1916
},
2017
"files": [
2118
"dist-js",
22-
"!dist-js/**/*.map",
2319
"README.md",
2420
"LICENSE"
2521
],
26-
"devDependencies": {
27-
"tslib": "2.6.2"
28-
},
2922
"dependencies": {
3023
"@tauri-apps/api": "2.0.0-alpha.11"
3124
}

plugins/autostart/rollup.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
2+
// SPDX-License-Identifier: Apache-2.0
3+
// SPDX-License-Identifier: MIT
4+
5+
import { createConfig } from "../../shared/rollup.config.js";
6+
7+
export default createConfig();

plugins/autostart/rollup.config.mjs

-11
This file was deleted.

plugins/autostart/src/api-iife.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/barcode-scanner/package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,19 @@
77
"Tauri Programme within The Commons Conservancy"
88
],
99
"type": "module",
10-
"browser": "dist-js/index.min.js",
11-
"module": "dist-js/index.mjs",
12-
"types": "dist-js/index.d.ts",
1310
"exports": {
14-
"import": "./dist-js/index.mjs",
1511
"types": "./dist-js/index.d.ts",
16-
"browser": "./dist-js/index.min.js"
12+
"import": "./dist-js/index.js",
13+
"require": "./dist-js/index.cjs"
1714
},
1815
"scripts": {
1916
"build": "rollup -c"
2017
},
2118
"files": [
2219
"dist-js",
23-
"!dist-js/**/*.map",
2420
"README.md",
2521
"LICENSE"
2622
],
27-
"devDependencies": {
28-
"tslib": "^2.5.0"
29-
},
3023
"dependencies": {
3124
"@tauri-apps/api": "2.0.0-alpha.11"
3225
}
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
2+
// SPDX-License-Identifier: Apache-2.0
3+
// SPDX-License-Identifier: MIT
4+
5+
import { createConfig } from "../../shared/rollup.config.js";
6+
7+
export default createConfig();

plugins/barcode-scanner/rollup.config.mjs

-11
This file was deleted.

plugins/barcode-scanner/src/api-iife.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/cli/package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,19 @@
66
"Tauri Programme within The Commons Conservancy"
77
],
88
"type": "module",
9-
"browser": "dist-js/index.min.js",
10-
"module": "dist-js/index.mjs",
11-
"types": "dist-js/index.d.ts",
129
"exports": {
13-
"import": "./dist-js/index.mjs",
1410
"types": "./dist-js/index.d.ts",
15-
"browser": "./dist-js/index.min.js"
11+
"import": "./dist-js/index.js",
12+
"require": "./dist-js/index.cjs"
1613
},
1714
"scripts": {
1815
"build": "rollup -c"
1916
},
2017
"files": [
2118
"dist-js",
22-
"!dist-js/**/*.map",
2319
"README.md",
2420
"LICENSE"
2521
],
26-
"devDependencies": {
27-
"tslib": "^2.4.1"
28-
},
2922
"dependencies": {
3023
"@tauri-apps/api": "2.0.0-alpha.11"
3124
}

plugins/cli/rollup.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
2+
// SPDX-License-Identifier: Apache-2.0
3+
// SPDX-License-Identifier: MIT
4+
5+
import { createConfig } from "../../shared/rollup.config.js";
6+
7+
export default createConfig();

plugins/cli/rollup.config.mjs

-11
This file was deleted.

plugins/cli/src/api-iife.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/clipboard-manager/package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,19 @@
66
"Tauri Programme within The Commons Conservancy"
77
],
88
"type": "module",
9-
"browser": "dist-js/index.min.js",
10-
"module": "dist-js/index.mjs",
11-
"types": "dist-js/index.d.ts",
129
"exports": {
13-
"import": "./dist-js/index.mjs",
1410
"types": "./dist-js/index.d.ts",
15-
"browser": "./dist-js/index.min.js"
11+
"import": "./dist-js/index.js",
12+
"require": "./dist-js/index.cjs"
1613
},
1714
"scripts": {
1815
"build": "rollup -c"
1916
},
2017
"files": [
2118
"dist-js",
22-
"!dist-js/**/*.map",
2319
"README.md",
2420
"LICENSE"
2521
],
26-
"devDependencies": {
27-
"tslib": "2.6.2"
28-
},
2922
"dependencies": {
3023
"@tauri-apps/api": "2.0.0-alpha.11"
3124
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
2+
// SPDX-License-Identifier: Apache-2.0
3+
// SPDX-License-Identifier: MIT
4+
5+
import { createConfig } from "../../shared/rollup.config.js";
6+
7+
export default createConfig();

plugins/clipboard-manager/rollup.config.mjs

-11
This file was deleted.

plugins/clipboard-manager/src/api-iife.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/deep-link/package.json

+2-9
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,19 @@
77
"Tauri Programme within The Commons Conservancy"
88
],
99
"type": "module",
10-
"browser": "dist-js/index.min.js",
11-
"module": "dist-js/index.mjs",
12-
"types": "dist-js/index.d.ts",
1310
"exports": {
14-
"import": "./dist-js/index.mjs",
1511
"types": "./dist-js/index.d.ts",
16-
"browser": "./dist-js/index.min.js"
12+
"import": "./dist-js/index.js",
13+
"require": "./dist-js/index.cjs"
1714
},
1815
"scripts": {
1916
"build": "rollup -c"
2017
},
2118
"files": [
2219
"dist-js",
23-
"!dist-js/**/*.map",
2420
"README.md",
2521
"LICENSE"
2622
],
27-
"devDependencies": {
28-
"tslib": "^2.5.0"
29-
},
3023
"dependencies": {
3124
"@tauri-apps/api": "2.0.0-alpha.11"
3225
}

plugins/deep-link/rollup.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
2+
// SPDX-License-Identifier: Apache-2.0
3+
// SPDX-License-Identifier: MIT
4+
5+
import { createConfig } from "../../shared/rollup.config.js";
6+
7+
export default createConfig();

plugins/deep-link/rollup.config.mjs

-11
This file was deleted.

plugins/deep-link/src/api-iife.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)