@silverhand-ai/daemon 0.0.1-alpha.6 → 0.0.1-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +50 -50
- package/dist/daemon.js +65 -64
- package/package.json +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silverhand-ai/daemon",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Silverhand user-managed computer daemon",
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "pnpm --filter @silverhand/host exec esbuild src/daemon/entry.ts --bundle --platform=node --format=esm --target=node20 --outfile=../silverhand-daemon/dist/daemon.js --minify=${SILVERHAND_MINIFY:-false} --banner:js='import{createRequire}from\"node:module\";const require=createRequire(import.meta.url);' && pnpm --filter @silverhand/cli exec esbuild src/cli.ts --bundle --platform=node --format=esm --target=node20 --outfile=../silverhand-daemon/dist/cli.js --minify=${SILVERHAND_MINIFY:-false} --banner:js='import{createRequire}from\"node:module\";const require=createRequire(import.meta.url);'",
|
|
18
|
+
"build": "pnpm --filter @silverhand/host exec esbuild src/daemon/entry.ts --bundle --platform=node --format=esm --target=node20 --outfile=../silverhand-daemon/dist/daemon.js --minify=${SILVERHAND_MINIFY:-false} --define:__SILVERHAND_DAEMON_VERSION__=\\\"${npm_package_version:-0.0.0-dev}\\\" --banner:js='import{createRequire}from\"node:module\";const require=createRequire(import.meta.url);' && pnpm --filter @silverhand/cli exec esbuild src/cli.ts --bundle --platform=node --format=esm --target=node20 --outfile=../silverhand-daemon/dist/cli.js --minify=${SILVERHAND_MINIFY:-false} --define:__SILVERHAND_DAEMON_VERSION__=\\\"${npm_package_version:-0.0.0-dev}\\\" --banner:js='import{createRequire}from\"node:module\";const require=createRequire(import.meta.url);'",
|
|
19
19
|
"build:publish": "SILVERHAND_MINIFY=true pnpm run build",
|
|
20
20
|
"pack:dry": "npm pack --dry-run",
|
|
21
21
|
"publish:check": "pnpm --filter @silverhand/host run test:publish-guards",
|
|
22
|
+
"verify:publish-build": "test -f dist/daemon.js && test -f dist/cli.js && node -e \"const fs=require('fs');const pkg=require('./package.json');const daemon=fs.readFileSync('dist/daemon.js','utf8');if(!daemon.includes(pkg.version)){throw new Error('dist/daemon.js does not include package version '+pkg.version)}\"",
|
|
22
23
|
"prepack": "pnpm run build:publish",
|
|
23
|
-
"prepublishOnly": "pnpm run publish:check && pnpm run build:publish &&
|
|
24
|
+
"prepublishOnly": "pnpm run publish:check && pnpm run build:publish && pnpm run verify:publish-build"
|
|
24
25
|
}
|
|
25
26
|
}
|