aee3c194af
The unscoped package lives on the Gitea npm registry but its deps span two
registries (`@punktfunk/host` on Gitea, `effect`/`undici` on npmjs). Installing
by name with `--registry <gitea>` sets the default registry for the whole tree,
so `effect` 404s (Gitea doesn't proxy npm), and an unscoped name can't be
scope-mapped. Fix: bundle the backend into ONE self-contained `dist/index.js`
(+ `dist/cli.js`) via `bun build --target=bun` with `@punktfunk/host` + `effect`
inlined — mirroring the scripting runner. The published package now has zero
runtime dependencies and installs with a single `--registry` flag.
- build → `bun build src/{index,cli}.ts --target=bun --outdir dist --external undici`
- @punktfunk/host + effect → devDependencies (bundled, not resolved at install)
- resolveUiDir(): walk to the SPA dir so staticDir works in the bundled
(dist/index.js) and unbundled (dist/server/index.js) layouts
- version 0.1.0 → 0.1.1
Verified: the bundle loads + scans/detects/previews with NO node_modules present.
52 lines
1.4 KiB
JSON
52 lines
1.4 KiB
JSON
{
|
|
"name": "punktfunk-plugin-rom-manager",
|
|
"version": "0.1.1",
|
|
"private": false,
|
|
"type": "module",
|
|
"description": "punktfunk plugin: scans ROM directories, maps them to emulators, and reconciles them into the host game library as a provider — with a console-hosted web UI.",
|
|
"license": "MIT OR Apache-2.0",
|
|
"homepage": "https://git.unom.io/unom/punktfunk-plugin-rom-manager",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.unom.io/unom/punktfunk-plugin-rom-manager.git"
|
|
},
|
|
"keywords": [
|
|
"punktfunk",
|
|
"plugin",
|
|
"roms",
|
|
"emulators",
|
|
"retroarch",
|
|
"game-streaming"
|
|
],
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"bin": {
|
|
"punktfunk-plugin-rom-manager": "./dist/cli.js"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"publishConfig": {
|
|
"registry": "https://git.unom.io/api/packages/unom/npm/"
|
|
},
|
|
"scripts": {
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "bun test",
|
|
"build": "rm -rf dist && bun build src/index.ts src/cli.ts --target=bun --outdir dist --external undici",
|
|
"build:ui": "cd ui && bun install --silent && bun run build",
|
|
"build:all": "bun run build && bun run build:ui",
|
|
"sync": "bun src/cli.ts sync",
|
|
"scan": "bun src/cli.ts scan",
|
|
"detect": "bun src/cli.ts detect",
|
|
"prepublishOnly": "bun run build:all"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.5.2",
|
|
"@punktfunk/host": "^0.1.0",
|
|
"@types/bun": "^1.3.0",
|
|
"effect": "^4.0.0-beta.98",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|