mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
- Rename `src/nostr-lock.mjs` to `src/lib.mjs` and export core functions. - Create `bin/torch-lock.mjs` as the CLI entry point. - Implement `dashboard` command in `src/lib.mjs` to serve the dashboard using Node.js. - Update `package.json` to configure `bin`, `main`, and `files` for NPM packaging. - Create `torch-config.example.json` as a template for consumers. - Update tests and README.md to reflect the new structure. - Exclude task-specific artifacts (logs, context) from the package while retaining prompts and docs. Co-authored-by: PR0M3TH3AN <[email protected]>
41 lines
1010 B
JSON
41 lines
1010 B
JSON
{
|
|
"name": "torch-lock",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"description": "TORCH standalone lock CLI and dashboard",
|
|
"main": "src/lib.mjs",
|
|
"bin": {
|
|
"torch-lock": "./bin/torch-lock.mjs"
|
|
},
|
|
"files": [
|
|
"bin/",
|
|
"src/lib.mjs",
|
|
"src/torch-config.mjs",
|
|
"src/prompts/",
|
|
"src/docs/",
|
|
"skills/",
|
|
"dashboard/",
|
|
"torch-config.example.json",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"test": "node --test test/*.test.mjs",
|
|
"lock:check:daily": "node bin/torch-lock.mjs check --cadence daily",
|
|
"lock:check:weekly": "node bin/torch-lock.mjs check --cadence weekly",
|
|
"lock:list": "node bin/torch-lock.mjs list",
|
|
"lock:lock": "node bin/torch-lock.mjs lock",
|
|
"dashboard:serve": "node bin/torch-lock.mjs dashboard",
|
|
"build": "node build.mjs",
|
|
"lint": "eslint ."
|
|
},
|
|
"dependencies": {
|
|
"nostr-tools": "2.19.4",
|
|
"ws": "8.19.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"eslint": "^10.0.0",
|
|
"globals": "^17.3.0"
|
|
}
|
|
}
|