waybetter/package.json
CRT 264f69c745 packages: make runtime and shell publishable to npm
Drop private from @waybetter/runtime and @waybetter/shell (root stays
private), add per-module exports with types/import conditions backed by
a tsc build (rewriteRelativeImportExtensions rewrites .ts specifiers to
.js in dist), files/sideEffects/engines/keywords/publishConfig, a
prepublishOnly that builds and tests, and a README + copied LICENSE per
package. Root gains build:packages and pack:check scripts. dist/ is
gitignored; the desktop app keeps importing raw src/*.ts by relative
path, unaffected.
2026-09-27 22:41:01 +00:00

31 lines
1.2 KiB
JSON

{
"name": "waybetter",
"version": "0.1.0",
"private": true,
"license": "GPL-3.0-or-later",
"type": "module",
"description": "wayBetter: a framework for desktop apps that extend one website in place (tabs, splits, accounts, plugins, themes).",
"packageManager": "bun@1.4.2",
"workspaces": [
"packages/*"
],
"scripts": {
"typecheck": "tsc -p tsconfig.json",
"test": "bun run test:ts && bun run test:rust",
"test:ts": "node --test packages/runtime/tests/*.test.ts packages/shell/tests/*.test.ts",
"test:rust": "cargo test --manifest-path crates/waybetter-host/Cargo.toml --locked",
"check:tauri": "cargo check --manifest-path crates/waybetter-host/Cargo.toml --features tauri",
"build": "bun run typecheck && cargo build --manifest-path crates/waybetter-host/Cargo.toml --locked",
"build:packages": "tsc -p packages/runtime/tsconfig.build.json && tsc -p packages/shell/tsconfig.build.json",
"pack:check": "bun run build:packages && npm pack ./packages/runtime --dry-run && npm pack ./packages/shell --dry-run",
"check": "bun run typecheck && bun run test"
},
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^5.9.0"
},
"engines": {
"node": ">=24.0.0",
"bun": ">=1.4.2"
}
}