Parcourir la source

build: add `rm:build`, `rm:node_modules` & `clean-install` scripts (#8323)

David Luzar il y a 1 an
Parent
commit
b427617f66
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      package.json

+ 4 - 1
package.json

@@ -76,7 +76,10 @@
     "autorelease": "node scripts/autorelease.js",
     "prerelease:excalidraw": "node scripts/prerelease.js",
     "build:preview": "yarn build && vite preview --port 5000",
-    "release:excalidraw": "node scripts/release.js"
+    "release:excalidraw": "node scripts/release.js",
+    "rm:build": "rm -rf excalidraw-app/{build,dist,dev-dist} && rm -rf packages/*/{dist,build} && rm -rf examples/*/*/{build,dist}",
+    "rm:node_modules": "rm -rf node_modules && rm -rf excalidraw-app/node_modules && rm -rf packages/*/node_modules",
+    "clean-install": "yarn rm:node_modules && yarn install"
   },
   "resolutions": {
     "@types/react": "18.2.0"