Skip to content

Commit 99a8ba7

Browse files
committed
updated the prePublish script in package.json of components to validate that all the new CSS files are generated too
1 parent 9435381 commit 99a8ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
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' || (echo 'The pre-compiled CSS file was not found' && exit 1)"
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 'The pre-compiled CSS file was not found' && exit 1)"
3434
},
3535
"dependencies": {
3636
"@codemirror/commands": "^6.8.0",

0 commit comments

Comments
 (0)