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.
73 lines
1.7 KiB
JSON
73 lines
1.7 KiB
JSON
{
|
|
"name": "@waybetter/runtime",
|
|
"version": "0.1.0",
|
|
"license": "GPL-3.0-or-later",
|
|
"type": "module",
|
|
"description": "wayBetter page runtime core: shared DOM/request hubs, plugin API core, theme color model, rail hiding, link routing, account reporting. No dependencies.",
|
|
"keywords": [
|
|
"waybetter",
|
|
"tauri",
|
|
"browser-extension",
|
|
"theming",
|
|
"dom"
|
|
],
|
|
"sideEffects": false,
|
|
"exports": {
|
|
"./accountReport": {
|
|
"types": "./dist/accountReport.d.ts",
|
|
"import": "./dist/accountReport.js"
|
|
},
|
|
"./domHub": {
|
|
"types": "./dist/domHub.d.ts",
|
|
"import": "./dist/domHub.js"
|
|
},
|
|
"./linkRouting": {
|
|
"types": "./dist/linkRouting.d.ts",
|
|
"import": "./dist/linkRouting.js"
|
|
},
|
|
"./netHub": {
|
|
"types": "./dist/netHub.d.ts",
|
|
"import": "./dist/netHub.js"
|
|
},
|
|
"./paneNav": {
|
|
"types": "./dist/paneNav.d.ts",
|
|
"import": "./dist/paneNav.js"
|
|
},
|
|
"./pluginApi": {
|
|
"types": "./dist/pluginApi.d.ts",
|
|
"import": "./dist/pluginApi.js"
|
|
},
|
|
"./site": {
|
|
"types": "./dist/site.d.ts",
|
|
"import": "./dist/site.js"
|
|
},
|
|
"./themeTokens": {
|
|
"types": "./dist/themeTokens.d.ts",
|
|
"import": "./dist/themeTokens.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"
|
|
}
|
|
}
|