chore: fix clean scripts
note that `clean:distfiles` only cleans generated .js files, `clean:types` only cleans generated types/maps, and `clean:artifacts` does both but then deletes the build dirs just in case. clean happens in correct order now
MODIFY
package.json
package.json
"build:distfiles": "lerna run --parallel --prefix --concurrency=8 build",
"build:loose": "run-s -c build:distfiles build:types || true",
"build:types": "tsc -b",
- "clean": "run-s clean:*",
- "clean:distfiles": "npx rimraf \"packages/*/build\"",
+ "clean": "run-s clean:artifacts clean:packages clean:monorepo",
+ "clean:distfiles": "npx rimraf \"packages/*/build/**/*.js\"",
"clean:monorepo": "npx rimraf node_modules package-lock.json",
"clean:packages": "lerna clean -y && npx rimraf \"packages/*/package-lock.json\"",
"clean:types": "tsc -b --clean",
- "clean:artifacts": "run-s clean:distfiles clean:types",
+ "clean:artifacts": "run-s clean:distfiles clean:types && npx rimraf \"packages/*/build\"",
"dev": "run-p dev:*",
"dev:distfiles": "lerna run --parallel --prefix --concurrency=8 dev",
"dev:types": "tsc -b --watch",

chore: fix clean scripts
note that `clean:distfiles` only cleans generated .js files, `clean:types` only cleans generated types/maps, and `clean:artifacts` does both but then deletes the build dirs just in case. clean happens in correct order now