Every workspace `clean` was `rm -rf`, and pnpm runs lifecycle scripts through the platform shell — on Windows that is cmd.exe, which has no `rm`. The root `clean` fans out to all eleven packages through turbo, so `pnpm clean` failed eleven times over. A shared script rather than a `rimraf` dependency: it needs no install to work, nothing to keep pinned against the release-age gate in pnpm-workspace.yaml, and no argument that has to survive two different shells' quoting rules. Node accepts forward slashes on Windows, so `node ../../scripts/clean.mjs dist .turbo` is the same string in every package. It deletes recursively and by force, so it refuses any target that is not strictly inside the calling package — a typo in a package.json should not be able to reach the workspace root.
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
{
|
|
"name": "@airship/overlay",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
"./bundle": "./dist/overlay.global.js",
|
|
"./hook": "./dist/hook.global.js"
|
|
},
|
|
"scripts": {
|
|
"build": "node scripts/check-css.mjs && tsup",
|
|
"build-storybook": "storybook build",
|
|
"check:css": "node scripts/check-css.mjs",
|
|
"clean": "node ../../scripts/clean.mjs dist .turbo storybook-static",
|
|
"dev": "tsup --watch",
|
|
"storybook": "storybook dev -p 6006 --no-open",
|
|
"test": "vitest run",
|
|
"test:browser": "vitest run --config vitest.browser.config.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@airship/editor-icons": "workspace:*",
|
|
"@airship/editor-tokens": "workspace:*",
|
|
"@airship/protocol": "workspace:*",
|
|
"@airship/source": "workspace:*",
|
|
"@dnd-kit/abstract": "0.5.0",
|
|
"@dnd-kit/dom": "0.5.0",
|
|
"@dnd-kit/geometry": "0.5.0",
|
|
"bippy": "^0.6.1"
|
|
},
|
|
"devDependencies": {
|
|
"@storybook/addon-a11y": "10.5.7",
|
|
"@storybook/addon-vitest": "10.5.7",
|
|
"@storybook/html-vite": "10.5.7",
|
|
"@vitest/browser": "^4.1.10",
|
|
"@vitest/browser-playwright": "^4.1.10",
|
|
"happy-dom": "^20.11.2",
|
|
"playwright": "^1.62.1",
|
|
"storybook": "10.5.7",
|
|
"vite": "^8.2.1",
|
|
"vitest": "^4.1.10"
|
|
}
|
|
}
|