Skip to content

Commit 3d09aa6

Browse files
committed
Export weak node api path
1 parent 3c0ffc8 commit 3d09aa6

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

packages/host/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"./babel-plugin": "./dist/node/babel-plugin/index.js",
2222
"./cli": "./dist/node/cli/run.js",
23-
"./weak-node-api": "./weak-node-api"
23+
"./weak-node-api": "./dist/node/weak-node-api.js"
2424
},
2525
"files": [
2626
"logo.svg",

packages/host/src/node/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ export {
2323
} from "./prebuilds/apple.js";
2424

2525
export { determineLibraryBasename, prettyPath } from "./path-utils.js";
26+
27+
export { weakNodeApiPath } from "./weak-node-api.js";
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import assert from "node:assert/strict";
2+
import fs from "node:fs";
3+
import path from "node:path";
4+
5+
export const weakNodeApiPath = path.resolve(__dirname, "../../weak-node-api");
6+
7+
assert(
8+
fs.existsSync(weakNodeApiPath),
9+
`Expected Weak Node API path to exist: ${weakNodeApiPath}`
10+
);

0 commit comments

Comments
 (0)