Files
airship/packages/git/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

27 lines
632 B
JSON

{
"name": "@airship/git",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --format esm --dts --sourcemap --clean",
"clean": "node ../../scripts/clean.mjs dist .turbo",
"dev": "tsup src/index.ts --format esm --dts --sourcemap --watch",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@airship/protocol": "workspace:*"
},
"devDependencies": {
"@types/node": "^26.2.0"
}
}