From 76068aa39cf1dd5843a200c9cfee86b0424cb560 Mon Sep 17 00:00:00 2001 From: bduran Date: Mon, 21 Oct 2024 09:00:14 -0700 Subject: [PATCH] add prepublish to packages --- package.json | 3 +-- packages/css/package.json | 3 ++- packages/react/package.json | 1 + packages/svelte/package.json | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b83a515..dc7c539 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,7 @@ "build:react": "cd ./packages/react && npm run build", "build": "npm run build:css && npm run build:react && npm run build:svelte", "dev:react": "cd ./packages/react && npm run storybook", - "dev:svelte": "cd ./packages/svelte && npm run dev", - "prepublishOnly": "npm run build" + "dev:svelte": "cd ./packages/svelte && npm run dev" }, "workspaces": [ "packages/css", diff --git a/packages/css/package.json b/packages/css/package.json index 51232b0..64008c7 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -30,7 +30,8 @@ "scripts": { "build": "npm run build:css && node scripts/build.js", "build:css": "rm -rf dist/css && sass src/scss:dist/css", - "lint": "stylelint scss/**/*.scss --fix" + "lint": "stylelint scss/**/*.scss --fix", + "prepublishOnly": "npm run build" }, "type": "module", "version": "2.0.0-alpha.8" diff --git a/packages/react/package.json b/packages/react/package.json index 7fd7b90..4ce7e65 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -103,6 +103,7 @@ "build:storybook": "storybook build", "compile": "tsc -p .", "lint": "eslint ./src", + "prepublishOnly": "npm run build", "storybook": "storybook dev -p 6006", "test": "echo \"Error: no test specified\" && exit 1" }, diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 8fcc96d..025c60e 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -56,6 +56,7 @@ "format": "prettier --write .", "lint": "prettier --check . && eslint .", "package": "svelte-kit sync && svelte-package && publint", + "prepublishOnly": "npm run build", "preview": "vite preview" }, "svelte": "./dist/index.js",