From d35d007fe0eae75f750e67f22dd0e6fa56f99402 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Sat, 26 Aug 2023 20:03:10 +0200 Subject: [PATCH] chore(repo): add missing `prepare` script for several packages (#1562) --- packages/babel/package.json | 1 + packages/data-uri/package.json | 1 + packages/dynamic-import-vars/package.json | 1 + packages/html/package.json | 1 + packages/strip/package.json | 1 + 5 files changed, 5 insertions(+) diff --git a/packages/babel/package.json b/packages/babel/package.json index ba7b3b1fd..88e94728e 100644 --- a/packages/babel/package.json +++ b/packages/babel/package.json @@ -30,6 +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", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root plugin:release --pkg $npm_package_name", diff --git a/packages/data-uri/package.json b/packages/data-uri/package.json index 1b642ca2b..572038398 100644 --- a/packages/data-uri/package.json +++ b/packages/data-uri/package.json @@ -30,6 +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", "prerelease": "pnpm build", "pretest": "pnpm build --sourcemap", "release": "pnpm --workspace-root plugin:release --pkg $npm_package_name", diff --git a/packages/dynamic-import-vars/package.json b/packages/dynamic-import-vars/package.json index f973d3c96..d1ab51a0f 100644 --- a/packages/dynamic-import-vars/package.json +++ b/packages/dynamic-import-vars/package.json @@ -30,6 +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", "prerelease": "pnpm build", "pretest": "pnpm build --sourcemap", "release": "pnpm --workspace-root plugin:release --pkg $npm_package_name", diff --git a/packages/html/package.json b/packages/html/package.json index 82292a638..22f094b39 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -30,6 +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", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root plugin:release --pkg $npm_package_name", diff --git a/packages/strip/package.json b/packages/strip/package.json index 4ab41fe41..a769da1a2 100644 --- a/packages/strip/package.json +++ b/packages/strip/package.json @@ -29,6 +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", "prerelease": "pnpm build", "pretest": "pnpm build", "release": "pnpm --workspace-root plugin:release --pkg $npm_package_name",