Skip to content

Commit 6e95415

Browse files
trying to fix build
1 parent 7e549c7 commit 6e95415

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.github/workflows/a11y-contrast.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- name: Install dependencies
2929
run: npm ci --no-audit --no-fund --ignore-scripts
3030

31-
- name: Build tokens
32-
run: npm run build
31+
- name: Build v8 tokens
32+
run: npm run build:v8
3333

3434
- name: Run required checks
3535
run: |

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
with:
1818
node_version: 20
1919
install: npm ci --legacy-peer-deps --no-audit --no-fund && npm run install:storybook
20-
build: npm run build && cd docs/storybook && npm run build:prod
20+
build: npm run build && npm run build:next && cd docs/storybook && npm run build:prod
2121
output_dir: docs/public
2222

.github/workflows/deploy_preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
node_version: 20
1818
install: npm ci --no-audit --no-fund --ignore-scripts && npm run install:storybook
19-
build: npm run build && cd docs/storybook && npm run build:preview
19+
build: npm run build && npm run build:next && cd docs/storybook && npm run build:preview
2020
output_dir: docs/public
2121

2222
post_storybook:

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929
},
3030
"homepage": "https://github.com/primer/primitives#readme",
3131
"scripts": {
32-
"build": "npm run build:v8 && npm run build:fallbacks && npm run build:figma",
32+
"build": "ts-node ./scripts/build.ts && tsc --project tsconfig.build.json",
33+
"build:next": "npm run build:v8 && npm run build:fallbacks && npm run build:figma",
3334
"build:v8": "ts-node ./scripts/buildTokens.ts",
3435
"build:fallbacks": "ts-node ./scripts/buildFallbacks.ts",
3536
"build:figma": "ts-node scripts/buildFigma.ts",
36-
"build:tokens": "node -e \"require('./build')._init()\"",
37-
"build:new-tokens": "npm run build:tokens && npm run build",
3837
"tokenJson:check": "ts-node scripts/diffThemes.ts && ts-node scripts/diffTokenProps.ts",
3938
"contrast:check": "ts-node scripts/color-contrast.ts",
4039
"format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",

0 commit comments

Comments
 (0)