Skip to content

Commit

Permalink
get the wasmedge_quickjs directory in a universal way
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Aug 29, 2024
1 parent 90b3360 commit 9b152f4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/build/experimental/utils/global_paths.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { join } from 'path';
import { createRequire } from 'module';
import { dirname, join } from 'path';

import { AZLE_PACKAGE_PATH } from '../../stable/utils/global_paths';

Expand All @@ -8,8 +9,6 @@ export const EXPERIMENTAL_CANISTER_TEMPLATE_PATH = join(
'experimental.wasm'
);

export const WASMEDGE_QUICKJS_PATH = join(
AZLE_PACKAGE_PATH,
'node_modules',
'wasmedge_quickjs'
export const WASMEDGE_QUICKJS_PATH = dirname(
createRequire(import.meta.url).resolve('wasmedge_quickjs/package.json')
);

0 comments on commit 9b152f4

Please sign in to comment.