Skip to content

Commit f4877f6

Browse files
committed
fixed prepublisOnly script that was causing error in build (looking for old CSS files that don’t exist anymore)
1 parent 1abfe15 commit f4877f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/components/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"lint:js:fix": "eslint . --fix",
3131
"lint:types": "glint",
3232
"start": "rollup --config --watch --environment development",
33-
"prepublishOnly": "pnpm build && test -f 'dist/styles/@hashicorp/design-system-components.css' && test -f 'dist/styles/@hashicorp/design-system-components-theming-with-css-selectors.css' && test -f 'dist/styles/@hashicorp/design-system-components-theming-with-prefers-color-scheme.css' && test -f 'dist/styles/@hashicorp/design-system-components.css' && test -f 'dist/styles/@hashicorp/design-system-power-select-overrides.css' || (echo \"\n\\033[31m⚠️ Error: the pre-compiled CSS file was not found\\033[0m\\n\" && exit 1)"
33+
"test-f:design-system-components": "test -f 'dist/styles/@hashicorp/design-system-components.css' || (echo \"\n\\033[31m⚠️ Error: the pre-compiled CSS file \\`dist/styles/@hashicorp/design-system-components.css\\` was not found\\033[0m\\n\" && exit 1)",
34+
"test-f:design-system-components-common": "test -f 'dist/styles/@hashicorp/design-system-components-common.css' || (echo \"\n\\033[31m⚠️ Error: the pre-compiled CSS file \\`dist/styles/@hashicorp/design-system-components-common.css\\` was not found\\033[0m\\n\" && exit 1)",
35+
"test-f:design-system-power-select-overrides": "test -f 'dist/styles/@hashicorp/design-system-power-select-overrides.css' || (echo \"\n\\033[31m⚠️ Error: the pre-compiled CSS file \\`dist/styles/@hashicorp/design-system-power-select-overrides.css\\` was not found\\033[0m\\n\" && exit 1)",
36+
"prepublishOnly": "pnpm build && pnpm test-f:design-system-components && pnpm test-f:design-system-components-common && pnpm test-f:design-system-power-select-overrides"
3437
},
3538
"dependencies": {
3639
"@codemirror/commands": "^6.8.0",

0 commit comments

Comments
 (0)