waybetter/packages/shell/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

73 lines
1.7 KiB
JSON

{
"name": "@waybetter/shell",
"version": "0.1.0",
"license": "GPL-3.0-or-later",
"type": "module",
"description": "wayBetter shell core: address bar, pane and link-drop models, profiles, update chip, command palette ranking and window controls. No dependencies.",
"keywords": [
"waybetter",
"tauri",
"desktop",
"shell",
"command-palette"
],
"sideEffects": false,
"exports": {
"./addressModel": {
"types": "./dist/addressModel.d.ts",
"import": "./dist/addressModel.js"
},
"./chrome": {
"types": "./dist/chrome.d.ts",
"import": "./dist/chrome.js"
},
"./linkDrop": {
"types": "./dist/linkDrop.d.ts",
"import": "./dist/linkDrop.js"
},
"./palette": {
"types": "./dist/palette.d.ts",
"import": "./dist/palette.js"
},
"./paneModel": {
"types": "./dist/paneModel.d.ts",
"import": "./dist/paneModel.js"
},
"./profileModel": {
"types": "./dist/profileModel.d.ts",
"import": "./dist/profileModel.js"
},
"./updateModel": {
"types": "./dist/updateModel.d.ts",
"import": "./dist/updateModel.js"
},
"./windowControls": {
"types": "./dist/windowControls.d.ts",
"import": "./dist/windowControls.js"
},
"./*": {
"types": "./dist/*.d.ts",
"import": "./dist/*.js"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=18.0.0"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc -p tsconfig.build.json",
"test": "node --test tests/*.test.ts",
"prepublishOnly": "npm run build && npm test"
},
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^5.9.0"
}
}