Skip to content

Commit

Permalink
bundle libs at the end of build to keep state coherent
Browse files Browse the repository at this point in the history
  • Loading branch information
tsnobip committed Jan 1, 2025
1 parent 3e6368a commit a61e329
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:
- name: Build all projects
run: |
yarn build
- name: Bundle CLI and vite plugins
run: |
yarn bundle
# Since we don't want to have generated code formatted in the router we regenerate
# the router code after formatting.
- name: Sync router code generation
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"build": "yarn build:libs && yarn build:examples",
"build:libs": "yarn workspaces foreach -v --topological --include 'rescript-relay-router' --include '@rescript-relay-router/*' run build",
"build:examples": "yarn workspaces foreach -v --topological --include '@rescript-relay-router-example/*' run build",
"bundle": "yarn workspace rescript-relay-router run bundle",
"preview": "yarn workspaces foreach -v -pi --include '@rescript-relay-router-example/*' run preview",
"start": "yarn workspaces foreach -v -pi --include '@rescript-relay-router-example/*' run start",
"dev": "yarn workspaces foreach -v -pi --include '@rescript-relay-router-example/*' run dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/rescript-relay-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
"sideEffects": false,
"scripts": {
"build": "rescript build -with-deps",
"build": "rescript build -with-deps && yarn bundle",
"bundle": "rollup --config",
"dev": "yarn build -w",
"test": "vitest run",
Expand Down

0 comments on commit a61e329

Please sign in to comment.