create-nocobase-app 2.1.0-beta.33 → 2.1.0-beta.35
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/lib/generator.js +7 -0
- package/package.json +2 -2
- package/src/generator.js +7 -0
- package/templates/app/package.json +2 -2
package/lib/generator.js
CHANGED
|
@@ -135,6 +135,13 @@ const _AppGenerator = class _AppGenerator extends Generator {
|
|
|
135
135
|
if (!this.args.skipDevDependencies) {
|
|
136
136
|
json["devDependencies"] = json["devDependencies"] || {};
|
|
137
137
|
json["devDependencies"]["@nocobase/devtools"] = context.version;
|
|
138
|
+
} else {
|
|
139
|
+
delete json["resolutions"]["antd"];
|
|
140
|
+
delete json["resolutions"]["@types/react"];
|
|
141
|
+
delete json["resolutions"]["@types/react-dom"];
|
|
142
|
+
delete json["resolutions"]["react-router-dom"];
|
|
143
|
+
delete json["resolutions"]["react-router"];
|
|
144
|
+
delete json["resolutions"]["rollup"];
|
|
138
145
|
}
|
|
139
146
|
await fs.writeJSON(join(this.cwd, "package.json"), json, { encoding: "utf8", spaces: 2 });
|
|
140
147
|
console.log("");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nocobase-app",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.35",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"dependencies": {
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
20
20
|
"directory": "packages/core/create-nocobase-app"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "74310d8b9e9581fcde14b5a93d12b41ddb5bb325"
|
|
23
23
|
}
|
package/src/generator.js
CHANGED
|
@@ -149,6 +149,13 @@ class AppGenerator extends Generator {
|
|
|
149
149
|
if (!this.args.skipDevDependencies) {
|
|
150
150
|
json['devDependencies'] = json['devDependencies'] || {};
|
|
151
151
|
json['devDependencies']['@nocobase/devtools'] = context.version;
|
|
152
|
+
} else {
|
|
153
|
+
delete json['resolutions']['antd'];
|
|
154
|
+
delete json['resolutions']['@types/react'];
|
|
155
|
+
delete json['resolutions']['@types/react-dom'];
|
|
156
|
+
delete json['resolutions']['react-router-dom'];
|
|
157
|
+
delete json['resolutions']['react-router'];
|
|
158
|
+
delete json['resolutions']['rollup'];
|
|
152
159
|
}
|
|
153
160
|
|
|
154
161
|
await fs.writeJSON(join(this.cwd, 'package.json'), json, { encoding: 'utf8', spaces: 2 });
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"nocobase": "nocobase-v1",
|
|
12
12
|
"pm": "nocobase-v1 pm",
|
|
13
13
|
"pm2": "nocobase-v1 pm2",
|
|
14
|
-
"dev": "nocobase-v1 dev
|
|
14
|
+
"dev": "nocobase-v1 app-dev",
|
|
15
15
|
"start": "nocobase-v1 start",
|
|
16
16
|
"clean": "nocobase-v1 clean",
|
|
17
17
|
"build": "nocobase-v1 build",
|
|
@@ -39,4 +39,4 @@
|
|
|
39
39
|
"pg": "^8.14.1",
|
|
40
40
|
"pg-hstore": "^2.3.4"
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
}
|