Files
airship/apps/web/package.json
T
Nayan ff818c1145 build: replace the rm -rf clean scripts with a cross-platform runner
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.
2026-08-11 23:11:04 +05:30

37 lines
941 B
JSON

{
"name": "@airship/web",
"version": "0.0.0",
"private": true,
"type": "module",
"imports": {
"#/*": "./src/*"
},
"scripts": {
"build": "vite build",
"clean": "node ../../scripts/clean.mjs dist .output .nitro .tanstack node_modules/.vite .turbo",
"dev": "vite dev",
"og": "node scripts/og.mjs",
"routes": "tsr generate",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@airship/site-tokens": "workspace:*",
"@tanstack/react-router": "^1.170.23",
"@tanstack/react-start": "^1.168.40",
"react": "19.2.8",
"react-dom": "19.2.8"
},
"devDependencies": {
"@tailwindcss/vite": "^4.3.0",
"@tanstack/router-cli": "^1.167.25",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^6.0.5",
"playwright": "^1.62.1",
"tailwindcss": "^4.3.0",
"typescript": "^6.0.3",
"vite": "^8.2.1",
"wrangler": "^4.42.0"
}
}