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

33 lines
915 B
JSON

{
"name": "@airship/editor-tokens",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./tokens.css": "./dist/tokens.css",
"./fonts.css": "./dist/fonts.css",
"./fonts/*": "./dist/fonts/*"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "node scripts/gen.mjs && tsup src/index.ts --format esm --dts --sourcemap --clean && node scripts/postbuild.mjs",
"clean": "node ../../scripts/clean.mjs dist .turbo",
"dev": "node scripts/gen.mjs && tsup src/index.ts --format esm --dts --sourcemap --watch",
"gen": "node scripts/gen.mjs",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@fontsource-variable/inter": "^5.3.0",
"@fontsource/jetbrains-mono": "^5.3.0",
"yaml": "^2.6.1"
}
}