@jonit-dev/night-watch-cli 1.7.63 → 1.7.65

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 CHANGED
@@ -5,6 +5,10 @@ import 'reflect-metadata';
5
5
  import "reflect-metadata";
6
6
  import "reflect-metadata";
7
7
  import "reflect-metadata";
8
+ import "reflect-metadata";
9
+ import "reflect-metadata";
10
+ import "reflect-metadata";
11
+ import "reflect-metadata";
8
12
  import * as fs from "fs";
9
13
  import * as path from "path";
10
14
  import { fileURLToPath } from "url";
@@ -7,6 +7,10 @@ PROJECTS_FILE="$HOME/.night-watch/projects.json"
7
7
 
8
8
  cd "$REPO_ROOT"
9
9
 
10
+ # Yarn workspace sets npm_config_registry=https://registry.yarnpkg.com which breaks auth.
11
+ # Force all npm calls to use the official registry where the auth token is stored.
12
+ export npm_config_registry=https://registry.npmjs.org
13
+
10
14
  echo "==> Running verify + tests..."
11
15
  yarn verify && yarn test
12
16
 
@@ -47,7 +51,7 @@ if [[ -f "$PROJECTS_FILE" ]]; then
47
51
  console.log(' Project: ' + p.name + ' (' + p.path + ')');
48
52
  const { execSync } = require('child_process');
49
53
  try {
50
- execSync('night-watch update --project ' + p.path, { stdio: 'inherit' });
54
+ execSync('night-watch update --projects ' + p.path, { stdio: 'inherit' });
51
55
  } catch (e) {
52
56
  console.error(' WARN: update failed for ' + p.name);
53
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jonit-dev/night-watch-cli",
3
- "version": "1.7.63",
3
+ "version": "1.7.65",
4
4
  "description": "Autonomous PRD execution using AI Provider CLIs + cron",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,7 +23,8 @@
23
23
  "build": "tsc --build tsconfig.json && tsc-alias -p tsconfig.json && node build.mjs",
24
24
  "verify": "tsc --build tsconfig.json --dry",
25
25
  "test": "vitest run",
26
- "prepublishOnly": "yarn build && yarn test"
26
+ "prepublishOnly": "yarn build && yarn test",
27
+ "deploy": "bash scripts/publish.sh"
27
28
  },
28
29
  "keywords": [
29
30
  "claude",