@knotpad/app 0.1.8 → 0.1.9

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/bin/brief.js +3 -1
  2. package/package.json +1 -1
package/bin/brief.js CHANGED
@@ -185,7 +185,9 @@ const BUILD_ID = path.join(PKG_DIR, ".next", "BUILD_ID");
185
185
  if (!fs.existsSync(BUILD_ID)) {
186
186
  log("Building Knotpad (first run — takes ~30 seconds)…");
187
187
  try {
188
- execSync("npx next build", { cwd: PKG_DIR, stdio: "inherit", env: process.env });
188
+ const nextBin = path.join(PKG_DIR, "node_modules", ".bin", "next");
189
+ const cmd = process.platform === "win32" ? `node "${nextBin}" build` : `"${nextBin}" build`;
190
+ execSync(cmd, { cwd: PKG_DIR, stdio: "inherit", env: process.env });
189
191
  ok("Build complete");
190
192
  } catch {
191
193
  die("Build failed. Run `npx @knotpad/app` again after fixing any errors.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotpad/app",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Note-first project management with AI agent task routing",
5
5
  "bin": {
6
6
  "knotpad": "bin/brief.js"