Skip to content

Commit b02d269

Browse files
committed
TEMP - added postbuild scripts to package.json files for tokens and components, to copy relevant CSS files to showcase public folder
1 parent c74982c commit b02d269

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/components/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"author": "HashiCorp Design Systems <[email protected]>",
1919
"scripts": {
2020
"build": "rollup --config",
21+
"postbuild": "cp -R dist/styles/@hashicorp/design-system-components.css ../../showcase/public/assets/styles/@hashicorp/ && cp -R dist/styles/@hashicorp/design-system-components-common.css ../../showcase/public/assets/styles/@hashicorp/ && cp -R dist/styles/@hashicorp/design-system-power-select-overrides.css ../../showcase/public/assets/styles/@hashicorp/",
2122
"format": "prettier . --cache --write",
2223
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\" --prefixColors auto",
2324
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" --prefixColors auto && pnpm run format",
@@ -429,4 +430,4 @@
429430
"engines": {
430431
"node": ">= 18"
431432
}
432-
}
433+
}

packages/tokens/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"typecheck": "pnpm tsc --noEmit",
2222
"lint": "pnpm eslint --quiet --ext .js,.ts",
2323
"extract-carbon-tokens": "tsx ./scripts/extract-carbon-tokens",
24-
"build": "tsx ./scripts/build"
24+
"build": "tsx ./scripts/build",
25+
"postbuild": "cp -R dist/products/css/themed-tokens/with-prefers-color-scheme/*.css ../../showcase/public/assets/styles/@hashicorp/themed-tokens/with-prefers-color-scheme && cp -R dist/products/css/themed-tokens/with-css-selectors/*.css ../../showcase/public/assets/styles/@hashicorp/themed-tokens/with-css-selectors && cp -R dist/products/css/themed-tokens/with-combined-strategies/*.css ../../showcase/public/assets/styles/@hashicorp/themed-tokens/with-combined-strategies"
2526
},
2627
"devDependencies": {
2728
"@carbon/colors": "^11.39.0",

0 commit comments

Comments
 (0)