From 3b1a686f99c3f02588d6cb0884a428a62faa2428 Mon Sep 17 00:00:00 2001 From: Emil Ivanichkov <51385502+EmilIvanichkovv@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:13:29 +0200 Subject: [PATCH] build: add `prepack` script in `packages/(components|colors/icons)` (#526) --- packages/colors/package.json | 3 ++- packages/components/package.json | 3 ++- packages/icons/package.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/colors/package.json b/packages/colors/package.json index a22c1944..ecf18335 100644 --- a/packages/colors/package.json +++ b/packages/colors/package.json @@ -28,7 +28,8 @@ "lint": "eslint src", "lint:fix": "yarn lint --fix", "format": "prettier --write src", - "clean": "rimraf dist node_modules .turbo" + "clean": "rimraf dist node_modules .turbo", + "prepack": "yarn build" }, "peerDependencies": {}, "devDependencies": { diff --git a/packages/components/package.json b/packages/components/package.json index d36c3766..73bf069f 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -21,7 +21,8 @@ "storybook": "node ./scripts/storybook.js", "storybook:dev": "storybook dev -p 3001", "storybook:build": "storybook build", - "clean": "rimraf node_modules dist .turbo storybook-static .tamagui" + "clean": "rimraf node_modules dist .turbo storybook-static .tamagui", + "prepack": "yarn build" }, "peerDependencies": { "react": "^18.2.0" diff --git a/packages/icons/package.json b/packages/icons/package.json index d2988160..7c302893 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -31,7 +31,8 @@ "lint": "eslint 'src/**/*.{ts,tsx}'", "lint:fix": "yarn lint --fix", "format": "prettier --write 'src/**/*.{ts,tsx}'", - "clean": "rimraf dist node_modules .turbo" + "clean": "rimraf dist node_modules .turbo", + "prepack": "yarn build" }, "dependencies": { "@tamagui/core": "1.74.21",