@weapp-core/init 1.0.4 → 1.0.6
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/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -160,6 +160,7 @@ function updatePackageJson(options) {
|
|
|
160
160
|
(0, import_shared.set)(packageJson, "scripts.build-npm", `${command} build-npm`);
|
|
161
161
|
(0, import_shared.set)(packageJson, "devDependencies.miniprogram-api-typings", `latest`);
|
|
162
162
|
(0, import_shared.set)(packageJson, "devDependencies.weapp-vite", `latest`);
|
|
163
|
+
(0, import_shared.set)(packageJson, "devDependencies.typescript", `latest`);
|
|
163
164
|
}
|
|
164
165
|
cb?.(
|
|
165
166
|
(...args) => {
|
|
@@ -257,7 +258,8 @@ function initTsJsonFiles(options) {
|
|
|
257
258
|
"**/*.js"
|
|
258
259
|
],
|
|
259
260
|
exclude: [
|
|
260
|
-
"node_modules"
|
|
261
|
+
"node_modules",
|
|
262
|
+
"dist"
|
|
261
263
|
]
|
|
262
264
|
};
|
|
263
265
|
if (write) {
|
package/dist/index.js
CHANGED
|
@@ -121,6 +121,7 @@ function updatePackageJson(options) {
|
|
|
121
121
|
set(packageJson, "scripts.build-npm", `${command} build-npm`);
|
|
122
122
|
set(packageJson, "devDependencies.miniprogram-api-typings", `latest`);
|
|
123
123
|
set(packageJson, "devDependencies.weapp-vite", `latest`);
|
|
124
|
+
set(packageJson, "devDependencies.typescript", `latest`);
|
|
124
125
|
}
|
|
125
126
|
cb?.(
|
|
126
127
|
(...args) => {
|
|
@@ -218,7 +219,8 @@ function initTsJsonFiles(options) {
|
|
|
218
219
|
"**/*.js"
|
|
219
220
|
],
|
|
220
221
|
exclude: [
|
|
221
|
-
"node_modules"
|
|
222
|
+
"node_modules",
|
|
223
|
+
"dist"
|
|
222
224
|
]
|
|
223
225
|
};
|
|
224
226
|
if (write) {
|