diff --git a/package-lock.json b/package-lock.json index b7fe6e7a..b1133a28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8995,6 +8995,12 @@ "side-channel": "^1.0.4" } }, + "interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true + }, "ip": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", @@ -12783,6 +12789,15 @@ } } }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "dev": true, + "requires": { + "resolve": "^1.1.6" + } + }, "redent": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", @@ -13198,6 +13213,27 @@ "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", "dev": true }, + "shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dev": true, + "requires": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + } + }, + "shx": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/shx/-/shx-0.3.4.tgz", + "integrity": "sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==", + "dev": true, + "requires": { + "minimist": "^1.2.3", + "shelljs": "^0.8.5" + } + }, "side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", diff --git a/package.json b/package.json index ead6e806..9c2f100a 100644 --- a/package.json +++ b/package.json @@ -4,21 +4,22 @@ "private": true, "scripts": { "bootstrap": "lerna bootstrap && npm run prepare", - "clean:lock": "npx shx rm -rf package-lock.json **/package-lock.json **/**/package-lock.json", - "clean:top": "npx shx rm -rf */**/dist */dist coverage dwt*", - "clean:all": "npm run clean:top && npx shx rm -rf node_modules **/node_modules **/**/node_modules", + "clean:lock": "rimraf package-lock.json **/package-lock.json **/**/package-lock.json", + "clean:top": "rimraf */**/dist */dist coverage dwt*", + "clean:modules": "rimraf node_modules **/node_modules **/**/node_modules", + "clean:all": "npm run clean:top && npm run clean:modules", "lint": "eslint . --ext .js,.vue,.ts,.tsx", "lint-fix": "eslint . --fix --ext .vue,.js,.ts,.tsx", - "playground": "npx lerna run dev --scope tmagic-playground --scope runtime-vue3 --parallel", - "build": "npx lerna run build --scope tmagic-playground --scope runtime-vue3 --scope runtime-vue2 --scope runtime-react --scope @tmagic/* --parallel", - "postbuild": "npx shx mkdir playground/dist/runtime && npx shx cp -r runtime/vue2/dist ./playground/dist/runtime/vue2 && npx shx cp -r runtime/vue3/dist ./playground/dist/runtime/vue3 && npx cp -r runtime/react/dist ./playground/dist/runtime/react", + "playground": "lerna run dev --scope tmagic-playground --scope runtime-vue3 --parallel", + "build": "lerna run build --scope tmagic-playground --scope runtime-vue3 --scope runtime-vue2 --scope runtime-react --scope @tmagic/* --parallel", + "postbuild": "shx mkdir playground/dist/runtime && shx cp -r runtime/vue2/dist ./playground/dist/runtime/vue2 && shx cp -r runtime/vue3/dist ./playground/dist/runtime/vue3 && cp -r runtime/react/dist ./playground/dist/runtime/react", "docs": "cd docs && npm run doc:dev", "page": "cd page && vite", "page-vue2": "cd page-vue2 && vite", "page-react": "cd page-react && vite", "reinstall": "npm run clean:all && npm run bootstrap", - "test": "npx lerna run test --scope @tmagic/* --parallel", - "test:coverage": "npx lerna run test:coverage --scope @tmagic/* --parallel", + "test": "lerna run test --scope @tmagic/* --parallel", + "test:coverage": "lerna run test:coverage --scope @tmagic/* --parallel", "prepare": "husky install", "commit": "git-cz" }, @@ -55,6 +56,8 @@ "lerna": "^4.0.0", "lint-staged": "^11.0.1", "prettier": "^2.3.1", + "rimraf": "^3.0.2", + "shx": "^0.3.4", "typescript": "^4.3.4" }, "config": {