@dbx-tools/projen 0.6.174 → 0.6.175

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/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // Hand edits are overwritten on the next watch; this file is read-only.
4
4
 
5
5
  export const PACKAGE_IDENTIFIER = "@dbx-tools/projen";
6
- export const PACKAGE_VERSION = "0.6.173";
6
+ export const PACKAGE_VERSION = "0.6.174";
7
7
  export * as barrels from "./src/barrels.ts";
8
8
  export * as bunApp from "./src/bun-app.ts";
9
9
  export * as bunWorkflow from "./src/bun-workflow.ts";
package/package.json CHANGED
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@clack/prompts": "^1.7.0",
28
- "@dbx-tools/core": "0.6.174",
29
- "@dbx-tools/path": "0.6.174",
30
- "@dbx-tools/shared-core": "0.6.174",
28
+ "@dbx-tools/core": "0.6.175",
29
+ "@dbx-tools/path": "0.6.175",
30
+ "@dbx-tools/shared-core": "0.6.175",
31
31
  "commander": "^15.0.0",
32
32
  "concurrently": "^10.0.3",
33
33
  "constructs": "^10.6.0",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "main": "index.ts",
49
49
  "license": "Apache-2.0",
50
- "version": "0.6.174",
50
+ "version": "0.6.175",
51
51
  "types": "index.ts",
52
52
  "type": "module",
53
53
  "exports": {
@@ -277,6 +277,17 @@ const packageNodeFacade = ({ output, nodeDirectory, nodePackage, version, native
277
277
  rmSync(join(facadeDirectory, "src", file), { force: true });
278
278
  }
279
279
  }
280
+ const ffiBindings = join(facadeDirectory, "src", "_bindings-ffi.ts");
281
+ writable(ffiBindings);
282
+ const ffiSource = readFileSync(ffiBindings, "utf8");
283
+ const packageSource = ffiSource.replace(
284
+ /(\s+callerUrl: import\.meta\.url,\n)(\s+\}\);)/,
285
+ `$1 npmPackageBase: ${JSON.stringify(`${nodePackage}-`)},\n tripleStyle: "node",\n$2`,
286
+ );
287
+ if (packageSource === ffiSource) {
288
+ throw new Error(`Could not configure native package lookup in ${ffiBindings}`);
289
+ }
290
+ writeFileSync(ffiBindings, packageSource);
280
291
  const manifestPath = join(facadeDirectory, "package.json");
281
292
  writable(manifestPath);
282
293
  const manifest = JSON.parse(readFileSync(manifestPath, "utf8"));