create-tengits-app 1.0.1 → 1.0.2
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/bin/cli.js
CHANGED
|
@@ -119,13 +119,6 @@ const createProject = async () => {
|
|
|
119
119
|
|
|
120
120
|
fs.writeJsonSync(packageJsonPath, packageJson, { spaces: 2 });
|
|
121
121
|
|
|
122
|
-
// 更新子包的 package.json
|
|
123
|
-
const mainPackageJsonPath = path.join(targetDir, 'packages/main/package.json');
|
|
124
|
-
if (fs.existsSync(mainPackageJsonPath)) {
|
|
125
|
-
const mainPackageJson = fs.readJsonSync(mainPackageJsonPath);
|
|
126
|
-
mainPackageJson.name = `${projectName}-app`;
|
|
127
|
-
fs.writeJsonSync(mainPackageJsonPath, mainPackageJson, { spaces: 2 });
|
|
128
|
-
}
|
|
129
122
|
|
|
130
123
|
console.log('📦 正在安装依赖...');
|
|
131
124
|
|
package/package.json
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"/static/js/lib-react.js.map",
|
|
10
10
|
"/static/js/vendors-node_modules_pnpm_rspack_core_1_4_8__swc_helpers_0_5_17_node_modules_rspack_core_dist-6d1c2b.js.map",
|
|
11
11
|
"/static/js/async/node_modules_pnpm_cross-fetch_4_0_0_node_modules_cross-fetch_dist_browser-ponyfill_js_lazy-co-6570d5.js.map",
|
|
12
|
-
"/
|
|
13
|
-
"/index.
|
|
12
|
+
"/index.803b8e2da71c2009.hot-update.js.map",
|
|
13
|
+
"/static/js/index.js.map"
|
|
14
14
|
],
|
|
15
15
|
"entries": {
|
|
16
16
|
"index": {
|
|
17
17
|
"assets": [
|
|
18
|
+
"index.803b8e2da71c2009.hot-update.js.map",
|
|
18
19
|
"static/js/index.js.map",
|
|
19
|
-
"index.01f460e0ba2807e4.hot-update.js.map",
|
|
20
20
|
"static/js/async/node_modules_pnpm_cross-fetch_4_0_0_node_modules_cross-fetch_dist_browser-ponyfill_js_lazy-co-6570d5.js.map",
|
|
21
21
|
"static/js/vendors-node_modules_pnpm_rspack_core_1_4_8__swc_helpers_0_5_17_node_modules_rspack_core_dist-6d1c2b.js.map",
|
|
22
22
|
"static/js/lib-react.js.map"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "main
|
|
2
|
+
"name": "main",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"version": "1.0.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "index.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "rsbuild dev",
|
|
8
|
+
"start": "rsbuild dev --port 3013",
|
|
9
9
|
"start:test": "rsbuild dev --env-mode test --port 3013",
|
|
10
10
|
"start:pre": "rsbuild dev --env-mode pre --port 3013",
|
|
11
11
|
"build": "rsbuild build",
|