From 89c99e9e9d2a8f56c745a2759dcba02266224788 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Wed, 6 May 2026 20:23:07 -0700 Subject: [PATCH] fix(docker): drop scripts/ from workspaces array MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `turbo prune sim --docker` strips `scripts/` from the pruned output (sim doesn't depend on it), but the pruned root package.json still listed it as a workspace, causing `bun install` to fail with "Workspace not found 'scripts'" in the Docker build. scripts/ is dev-only tooling that runs from the repo root via `bun run scripts/*.ts`. Its imports (glob, yaml) resolve against the root node_modules — they're already in root devDependencies. - Remove "scripts" from root workspaces array - Delete scripts/package.json (no longer a workspace, manifest unused) Co-Authored-By: Claude Opus 4.7 --- bun.lock | 12 ------------ package.json | 3 +-- scripts/package.json | 11 ----------- 3 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 scripts/package.json diff --git a/bun.lock b/bun.lock index 0e2c363e7f..3a1ac7226c 100644 --- a/bun.lock +++ b/bun.lock @@ -477,14 +477,6 @@ "reactflow": "^11.11.4", }, }, - "scripts": { - "name": "sim-doc-generator", - "version": "1.0.0", - "dependencies": { - "glob": "^11.1.0", - "yaml": "^2.8.1", - }, - }, }, "trustedDependencies": [ "ffmpeg-static", @@ -3697,8 +3689,6 @@ "sim": ["sim@workspace:apps/sim"], - "sim-doc-generator": ["sim-doc-generator@workspace:scripts"], - "simple-concat": ["simple-concat@1.0.1", "", {}, "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q=="], "simple-get": ["simple-get@4.0.1", "", { "dependencies": { "decompress-response": "^6.0.0", "once": "^1.3.1", "simple-concat": "^1.0.0" } }, "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA=="], @@ -4889,8 +4879,6 @@ "sim/tailwindcss": ["tailwindcss@3.4.19", "", { "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", "chokidar": "^3.6.0", "didyoumean": "^1.2.2", "dlv": "^1.1.3", "fast-glob": "^3.3.2", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", "jiti": "^1.21.7", "lilconfig": "^3.1.3", "micromatch": "^4.0.8", "normalize-path": "^3.0.0", "object-hash": "^3.0.0", "picocolors": "^1.1.1", "postcss": "^8.4.47", "postcss-import": "^15.1.0", "postcss-js": "^4.0.1", "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", "postcss-nested": "^6.2.0", "postcss-selector-parser": "^6.1.2", "resolve": "^1.22.8", "sucrase": "^3.35.0" }, "bin": { "tailwind": "lib/cli.js", "tailwindcss": "lib/cli.js" } }, "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ=="], - "sim-doc-generator/glob": ["glob@11.1.0", "", { "dependencies": { "foreground-child": "^3.3.1", "jackspeak": "^4.1.1", "minimatch": "^10.1.1", "minipass": "^7.1.2", "package-json-from-dist": "^1.0.0", "path-scurry": "^2.0.0" }, "bin": { "glob": "dist/esm/bin.mjs" } }, "sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw=="], - "simstudio/@types/node": ["@types/node@20.19.39", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-orrrD74MBUyK8jOAD/r0+lfa1I2MO6I+vAkmAWzMYbCcgrN4lCrmK52gRFQq/JRxfYPfonkr4b0jcY7Olqdqbw=="], "simstudio/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], diff --git a/package.json b/package.json index 21d2cc7b80..12061f7cdc 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,7 @@ "license": "Apache-2.0", "workspaces": [ "apps/*", - "packages/*", - "scripts" + "packages/*" ], "scripts": { "build": "turbo run build", diff --git a/scripts/package.json b/scripts/package.json deleted file mode 100644 index e2d16dfbdb..0000000000 --- a/scripts/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "sim-doc-generator", - "version": "1.0.0", - "description": "Documentation generator and contract sync scripts for Sim", - "type": "module", - "private": true, - "dependencies": { - "glob": "^11.1.0", - "yaml": "^2.8.1" - } -}