diff --git a/.npmrc b/.npmrc index 7328cfb89..3112eda88 100644 --- a/.npmrc +++ b/.npmrc @@ -1,6 +1,7 @@ registry=https://registry.npmjs.org/ enable-pre-post-scripts = true +shell-emulator = true link-workspace-packages = false shamefully-hoist = true shared-workspace-shrinkwrap = true diff --git a/packages/alias/package.json b/packages/alias/package.json index a550cb8f6..9a30cb423 100755 --- a/packages/alias/package.json +++ b/packages/alias/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/auto-install/package.json b/packages/auto-install/package.json index 8d2346268..b2f634d68 100755 --- a/packages/auto-install/package.json +++ b/packages/auto-install/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/babel/package.json b/packages/babel/package.json index f4668c20f..5154230e7 100644 --- a/packages/babel/package.json +++ b/packages/babel/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/buble/package.json b/packages/buble/package.json index 54f5cfb29..03e758a8d 100644 --- a/packages/buble/package.json +++ b/packages/buble/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/commonjs/package.json b/packages/commonjs/package.json index eaf3fdef3..ca8c7f269 100644 --- a/packages/commonjs/package.json +++ b/packages/commonjs/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose && pnpm test:ts", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prepublishOnly": "pnpm build", "prerelease": "pnpm build", "pretest": "pnpm build", diff --git a/packages/data-uri/package.json b/packages/data-uri/package.json index d74646536..0c4f8a19f 100644 --- a/packages/data-uri/package.json +++ b/packages/data-uri/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build --sourcemap", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/dsv/package.json b/packages/dsv/package.json index 86b826d19..76bf8f96e 100755 --- a/packages/dsv/package.json +++ b/packages/dsv/package.json @@ -27,7 +27,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/dynamic-import-vars/package.json b/packages/dynamic-import-vars/package.json index 53b782d5e..ba695c3dd 100644 --- a/packages/dynamic-import-vars/package.json +++ b/packages/dynamic-import-vars/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build --sourcemap", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/eslint/package.json b/packages/eslint/package.json index 7681a688c..9957afa50 100755 --- a/packages/eslint/package.json +++ b/packages/eslint/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/esm-shim/package.json b/packages/esm-shim/package.json index e9ba2c84a..c3d23ad6e 100644 --- a/packages/esm-shim/package.json +++ b/packages/esm-shim/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose && pnpm test:ts", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/graphql/package.json b/packages/graphql/package.json index 6280a1b7a..417c59d19 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -31,7 +31,7 @@ "ci:test": "pnpm test -- --verbose && pnpm test:ts", "lint:graphql": "prettier --write \"test/fixtures/**/*.graphql\"", "prebuild": "del-cli dist && pnpm lint:graphql", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/html/package.json b/packages/html/package.json index 4bfdf7371..8af523040 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/image/package.json b/packages/image/package.json index 17eac8963..f1be5e845 100644 --- a/packages/image/package.json +++ b/packages/image/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/inject/package.json b/packages/inject/package.json index 7ecabd25f..01a9e8fa2 100644 --- a/packages/inject/package.json +++ b/packages/inject/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose && pnpm test:ts", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/json/package.json b/packages/json/package.json index 5851ef6ed..56dd1ed8e 100755 --- a/packages/json/package.json +++ b/packages/json/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose && pnpm test:ts", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/legacy/package.json b/packages/legacy/package.json index 04b027ecd..87d664cb1 100644 --- a/packages/legacy/package.json +++ b/packages/legacy/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/multi-entry/package.json b/packages/multi-entry/package.json index 699a0eac1..029438de4 100755 --- a/packages/multi-entry/package.json +++ b/packages/multi-entry/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/node-resolve/package.json b/packages/node-resolve/package.json index 78b7c922d..d73eba2d7 100644 --- a/packages/node-resolve/package.json +++ b/packages/node-resolve/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prepublishOnly": "pnpm build", "prerelease": "pnpm build", "pretest": "pnpm build", diff --git a/packages/pluginutils/package.json b/packages/pluginutils/package.json index dcbf42059..5b0354110 100644 --- a/packages/pluginutils/package.json +++ b/packages/pluginutils/package.json @@ -33,7 +33,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build --sourcemap", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/replace/package.json b/packages/replace/package.json index e93542fe2..dcf4a5b08 100644 --- a/packages/replace/package.json +++ b/packages/replace/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose && pnpm test:ts", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/run/package.json b/packages/run/package.json index e13c22be4..21154cf33 100644 --- a/packages/run/package.json +++ b/packages/run/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/strip/package.json b/packages/strip/package.json index b3272cede..51054fcd6 100644 --- a/packages/strip/package.json +++ b/packages/strip/package.json @@ -29,7 +29,7 @@ "ci:lint": "pnpm lint", "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/sucrase/package.json b/packages/sucrase/package.json index 986376ab6..0214a2d1f 100644 --- a/packages/sucrase/package.json +++ b/packages/sucrase/package.json @@ -31,7 +31,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose && pnpm test:ts", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/swc/package.json b/packages/swc/package.json index 525f5f2e0..7d427dbfc 100644 --- a/packages/swc/package.json +++ b/packages/swc/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose && pnpm test:ts", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/terser/package.json b/packages/terser/package.json index 24f9a35a6..e3abde8a1 100644 --- a/packages/terser/package.json +++ b/packages/terser/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose && pnpm test:ts", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/typescript/package.json b/packages/typescript/package.json index 7fca1ce58..c4f4e483c 100644 --- a/packages/typescript/package.json +++ b/packages/typescript/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose --serial", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/url/package.json b/packages/url/package.json index 6883535d5..f2becd45b 100644 --- a/packages/url/package.json +++ b/packages/url/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/virtual/package.json b/packages/virtual/package.json index e3bf35706..e35c0d44f 100755 --- a/packages/virtual/package.json +++ b/packages/virtual/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/wasm/package.json b/packages/wasm/package.json index c4723c27b..6ff2ee255 100644 --- a/packages/wasm/package.json +++ b/packages/wasm/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)", diff --git a/packages/yaml/package.json b/packages/yaml/package.json index cd7c102ab..a05ae8b92 100755 --- a/packages/yaml/package.json +++ b/packages/yaml/package.json @@ -30,7 +30,7 @@ "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", "ci:test": "pnpm test -- --verbose", "prebuild": "del-cli dist", - "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", + "prepare": "[ ! -d 'dist' ] && pnpm build || true", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root package:release $(pwd)",