Browse Source

fix: failed to run dev script on the windows (#2019)

gyt95 2 years ago
parent
commit
01c1210e1b
2 changed files with 8 additions and 5 deletions
  1. 5 4
      package.json
  2. 3 1
      pnpm-lock.yaml

+ 5 - 4
package.json

@@ -55,8 +55,8 @@
     "publish": "npm publish",
     "generate:file": "node jd/generate-nutui.cjs",
     "generate:file:taro:vue": "node jd/generate-nutui-taro-vue.cjs",
-    "generate:types": "rm -rf ./dist/types && node jd/generate-types.cjs",
-    "generate:types:taro": "rm -rf ./dist/types && node jd/generate-types-taro.cjs",
+    "generate:types": "rimraf ./dist/types && node jd/generate-types.cjs",
+    "generate:types:taro": "rimraf ./dist/types && node jd/generate-types-taro.cjs",
     "generate:themes": "node jd/generate-themes.cjs",
     "prepare": "husky install",
     "test": "jest",
@@ -66,8 +66,8 @@
     "createTaroConfig": "node ./jd/generate-taro-route.cjs",
     "attrs:taro": "node ./jd/createAttributes.cjs taro",
     "attrs": "node ./jd/createAttributes.cjs",
-    "dts": "rm -rf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.json && npm run generate:types",
-    "dts:taro": "rm -rf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.taro.json && npm run generate:types:taro",
+    "dts": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.json && npm run generate:types",
+    "dts:taro": "rimraf ./tsc/type && vue-tsc --declaration --emitDeclarationOnly -p ./tsconfig.declaration.taro.json && npm run generate:types:taro",
     "copy:h5": "node ./jd/copyh5.cjs",
     "copy:taro": "node ./jd/copytaro.cjs"
   },
@@ -125,6 +125,7 @@
     "markdown-it-container": "^3.0.0",
     "prettier": "^2.0.0",
     "remark-codesandbox": "^0.10.1",
+    "rimraf": "^3.0.2",
     "rollup-plugin-visualizer": "^5.8.3",
     "standard-version": "^9.3.0",
     "swiper": "6.5.1",

+ 3 - 1
pnpm-lock.yaml

@@ -45,6 +45,7 @@ specifiers:
   markdown-it-container: ^3.0.0
   prettier: ^2.0.0
   remark-codesandbox: ^0.10.1
+  rimraf: ^3.0.2
   rollup-plugin-visualizer: ^5.8.3
   sass: ^1.50.0
   standard-version: ^9.3.0
@@ -110,6 +111,7 @@ devDependencies:
   markdown-it-container: 3.0.0
   prettier: 2.8.0
   remark-codesandbox: 0.10.1
+  rimraf: 3.0.2
   rollup-plugin-visualizer: 5.8.3
   standard-version: 9.5.0
   swiper: 6.5.1
@@ -7751,8 +7753,8 @@ packages:
     engines: {node: '>=10'}
     hasBin: true
     dependencies:
-      is-text-path: 1.0.1
       JSONStream: 1.3.5
+      is-text-path: 1.0.1
       lodash: 4.17.21
       meow: 8.1.2
       split2: 3.2.2