@hasna/hook-knowledge-context 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/hook.js +1 -1
  2. package/package.json +2 -2
package/dist/hook.js CHANGED
@@ -291,7 +291,7 @@ async function buildHookOutput(input, executor = spawnKnowledgeContextPack, env
291
291
  async function run() {
292
292
  respond(await buildHookOutput(readStdinJson()));
293
293
  }
294
- if (__require.main == __require.module) {
294
+ if (import.meta.main) {
295
295
  run();
296
296
  }
297
297
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/hook-knowledge-context",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Codewith hook that injects deterministic Knowledge context packs into lifecycle events",
5
5
  "type": "module",
6
6
  "main": "./dist/hook.js",
@@ -16,7 +16,7 @@
16
16
  "README.md"
17
17
  ],
18
18
  "scripts": {
19
- "build": "rm -rf dist && bun build ./src/hook.ts --outdir ./dist --target node && tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationMap false --noEmit false",
19
+ "build": "rm -rf dist && bun build ./src/hook.ts --outdir ./dist --target bun && tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationMap false --noEmit false",
20
20
  "prepublishOnly": "bun run build",
21
21
  "typecheck": "tsc --noEmit"
22
22
  },