@foldspace_npm/harness 0.1.0 → 0.1.1

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/build-cli.mjs +5 -1
  2. package/package.json +10 -3
package/bin/build-cli.mjs CHANGED
@@ -2,12 +2,16 @@
2
2
  // Thin launcher so the TypeScript build script runs without the consumer
3
3
  // needing tsx wired up themselves.
4
4
  import { spawn } from "child_process";
5
+ import { createRequire } from "module";
5
6
  import path from "path";
6
7
  import { fileURLToPath } from "url";
8
+
7
9
  const here = path.dirname(fileURLToPath(import.meta.url));
10
+ const require = createRequire(import.meta.url);
11
+ const tsxCli = require.resolve("tsx/cli");
8
12
  const child = spawn(
9
13
  process.execPath,
10
- [path.join(here, "..", "node_modules", "tsx", "dist", "cli.mjs"), path.join(here, "build.ts"), ...process.argv.slice(2)],
14
+ [tsxCli, path.join(here, "build.ts"), ...process.argv.slice(2)],
11
15
  { stdio: "inherit", env: { ...process.env, FOLDSPACE_PROJECT_DIR: process.env.FOLDSPACE_PROJECT_DIR || process.cwd() } },
12
16
  );
13
17
  child.on("exit", (code) => process.exit(code ?? 0));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldspace_npm/harness",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Build, inject and verify Foldspace agent experiences against a live app.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -11,12 +11,19 @@
11
11
  "foldspace-deploy": "bin/deploy.mjs",
12
12
  "foldspace-package-extension": "bin/packageExtension.mjs"
13
13
  },
14
- "files": ["bin", "src", "templates", "README.md"],
14
+ "files": [
15
+ "bin",
16
+ "src",
17
+ "templates",
18
+ "README.md"
19
+ ],
15
20
  "dependencies": {
16
21
  "esbuild": "^0.20.0",
17
22
  "tsx": "^4.7.0"
18
23
  },
19
- "engines": { "node": ">=20" },
24
+ "engines": {
25
+ "node": ">=20"
26
+ },
20
27
  "publishConfig": {
21
28
  "access": "public"
22
29
  }