@modern-js/plugin-worker 0.0.0-next-20230221033513 → 0.0.0-next-20230221055802
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -4
- package/dist/cjs/index.js +0 -14
- package/dist/esm/index.js +0 -14
- package/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
# @modern-js/plugin-worker
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-20230221055802
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
- d0a69a613: feat: optimize worker build
|
|
8
|
+
|
|
9
|
+
feat: 优化 worker 构建
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [7915ab392]
|
|
12
|
+
- @modern-js/utils@0.0.0-next-20230221055802
|
|
13
|
+
- @modern-js/prod-server@0.0.0-next-20230221055802
|
|
14
|
+
- @modern-js/server-utils@0.0.0-next-20230221055802
|
package/dist/cjs/index.js
CHANGED
|
@@ -92,20 +92,6 @@ export const manifest = {
|
|
|
92
92
|
`;
|
|
93
93
|
import_utils.fs.writeFileSync(import_path.default.join(workServerDir, import_constants.MANIFEST_FILE), manifest);
|
|
94
94
|
const pkg = import_utils.fs.readJSONSync(import_path.default.join(appDirectory, import_constants.PKG_FILE));
|
|
95
|
-
await import_utils.fs.writeJSON(
|
|
96
|
-
import_path.default.join(distDirectory, import_constants.PKG_FILE),
|
|
97
|
-
{
|
|
98
|
-
name: pkg.name,
|
|
99
|
-
version: pkg.version,
|
|
100
|
-
dependencies: {
|
|
101
|
-
"@modern-js/prod-server": "0.0.0-next-20230209112307",
|
|
102
|
-
wrangler: "^2.9.0"
|
|
103
|
-
},
|
|
104
|
-
resolutions: pkg.resolutions || {},
|
|
105
|
-
pnpm: pkg.pnpm || {}
|
|
106
|
-
},
|
|
107
|
-
{ spaces: 2 }
|
|
108
|
-
);
|
|
109
95
|
const manager = await (0, import_utils.getPackageManager)(appDirectory);
|
|
110
96
|
const lockfile = import_constants.LOCK_FILE[manager];
|
|
111
97
|
(0, import_utils2.copyfile)(distDirectory, appDirectory, [lockfile]);
|
package/dist/esm/index.js
CHANGED
|
@@ -76,20 +76,6 @@ export const manifest = {
|
|
|
76
76
|
`;
|
|
77
77
|
fs.writeFileSync(path.join(workServerDir, MANIFEST_FILE), manifest);
|
|
78
78
|
const pkg = fs.readJSONSync(path.join(appDirectory, PKG_FILE));
|
|
79
|
-
await fs.writeJSON(
|
|
80
|
-
path.join(distDirectory, PKG_FILE),
|
|
81
|
-
{
|
|
82
|
-
name: pkg.name,
|
|
83
|
-
version: pkg.version,
|
|
84
|
-
dependencies: {
|
|
85
|
-
"@modern-js/prod-server": "0.0.0-next-20230209112307",
|
|
86
|
-
wrangler: "^2.9.0"
|
|
87
|
-
},
|
|
88
|
-
resolutions: pkg.resolutions || {},
|
|
89
|
-
pnpm: pkg.pnpm || {}
|
|
90
|
-
},
|
|
91
|
-
{ spaces: 2 }
|
|
92
|
-
);
|
|
93
79
|
const manager = await getPackageManager(appDirectory);
|
|
94
80
|
const lockfile = LOCK_FILE[manager];
|
|
95
81
|
copyfile(distDirectory, appDirectory, [lockfile]);
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-20230221055802",
|
|
15
15
|
"types": "./dist/types/index.d.ts",
|
|
16
16
|
"jsnext:source": "./src/index.ts",
|
|
17
17
|
"main": "./dist/cjs/index.js",
|
|
@@ -37,19 +37,21 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@babel/runtime": "^7.18.0",
|
|
40
|
-
"
|
|
41
|
-
"@modern-js/utils": "0.0.0-next-
|
|
40
|
+
"wrangler": "^2.9.0",
|
|
41
|
+
"@modern-js/server-utils": "0.0.0-next-20230221055802",
|
|
42
|
+
"@modern-js/utils": "0.0.0-next-20230221055802",
|
|
43
|
+
"@modern-js/prod-server": "0.0.0-next-20230221055802"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|
|
44
46
|
"typescript": "^4",
|
|
45
47
|
"@types/jest": "^27",
|
|
46
48
|
"@types/node": "^14",
|
|
47
49
|
"jest": "^27",
|
|
48
|
-
"@modern-js/app-tools": "0.0.0-next-
|
|
49
|
-
"@modern-js/core": "0.0.0-next-
|
|
50
|
-
"@scripts/build": "0.0.0-next-
|
|
51
|
-
"@modern-js/types": "0.0.0-next-
|
|
52
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
50
|
+
"@modern-js/app-tools": "0.0.0-next-20230221055802",
|
|
51
|
+
"@modern-js/core": "0.0.0-next-20230221055802",
|
|
52
|
+
"@scripts/build": "0.0.0-next-20230221055802",
|
|
53
|
+
"@modern-js/types": "0.0.0-next-20230221055802",
|
|
54
|
+
"@scripts/jest-config": "0.0.0-next-20230221055802"
|
|
53
55
|
},
|
|
54
56
|
"sideEffects": [
|
|
55
57
|
"*.css",
|