From a61e3291eb4d4b6aa58da1cf4598baff5266c85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Tsnobiladz=C3=A9?= Date: Wed, 1 Jan 2025 16:29:30 +0100 Subject: [PATCH] bundle libs at the end of build to keep state coherent --- .github/workflows/main.yml | 3 --- package.json | 1 - packages/rescript-relay-router/package.json | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c1d4d8..34acf68 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/package.json b/package.json index 9af79f1..5070fd5 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/rescript-relay-router/package.json b/packages/rescript-relay-router/package.json index 165b730..8e7eb5d 100644 --- a/packages/rescript-relay-router/package.json +++ b/packages/rescript-relay-router/package.json @@ -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",