Skip to content

Commit 52f40a8

Browse files
committed
reverted to __dirname
1 parent ea780f9 commit 52f40a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/host/scripts/copy-node-api-headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import assert from "node:assert/strict";
33
import fs from "node:fs";
44
import path from "node:path";
55

6-
const includeDestinationPath = path.join(import.meta.dirname, "../weak-node-api/include");
6+
const includeDestinationPath = path.join(__dirname, "../weak-node-api/include");
77
assert(fs.existsSync(includeSourcePath), `Expected ${includeSourcePath}`);
88
console.log(`Copying ${includeSourcePath} to ${includeDestinationPath}`);
99
fs.cpSync(includeSourcePath, includeDestinationPath, { recursive: true });

packages/host/scripts/generate-weak-node-api-injector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import cp from "node:child_process";
44

55
import { FunctionDecl, getNodeApiFunctions } from "./node-api-functions";
66

7-
export const CPP_SOURCE_PATH = path.join(import.meta.dirname, "../cpp");
7+
export const CPP_SOURCE_PATH = path.join(__dirname, "../cpp");
88

99
// TODO: Remove when all runtime Node API functions are implemented
1010
const IMPLEMENTED_RUNTIME_FUNCTIONS = [

packages/host/scripts/generate-weak-node-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import cp from "node:child_process";
44

55
import { FunctionDecl, getNodeApiFunctions } from "./node-api-functions";
66

7-
export const WEAK_NODE_API_PATH = path.join(import.meta.dirname, "../weak-node-api");
7+
export const WEAK_NODE_API_PATH = path.join(__dirname, "../weak-node-api");
88

99
/**
1010
* Generates source code for a version script for the given Node API version.

0 commit comments

Comments
 (0)