Files
airship/packages/source/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
960 B
JSON

{
"name": "@airship/source",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
"./browser": {
"types": "./dist/browser.d.ts",
"import": "./dist/browser.js"
},
"./server": {
"types": "./dist/server.d.ts",
"import": "./dist/server.js"
},
"./tokens": {
"types": "./dist/tokens.d.ts",
"import": "./dist/tokens.js"
}
},
"scripts": {
"build": "tsup src/browser.ts src/server.ts src/tokens.ts --format esm --dts --sourcemap --clean",
"clean": "node ../../scripts/clean.mjs dist .turbo",
"dev": "tsup src/browser.ts src/server.ts src/tokens.ts --format esm --dts --sourcemap --watch",
"test": "vitest run",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@airship/protocol": "workspace:*",
"@jridgewell/trace-mapping": "^0.3.31",
"bippy": "^0.6.1",
"element-source": "^0.0.5"
},
"devDependencies": {
"vitest": "^4.1.10"
}
}