File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ export function buildWeb() {
88 const pkg = JSON . parse ( fs . readFileSync ( join ( __dirname , "../package-lock.json" ) ) ) ;
99
1010 const mainVersion = pkg . version ;
11- const binaryenVersion = pkg . packages [ "node_modules/binaryen" ] . version ;
12- const longVersion = pkg . packages [ "node_modules/long" ] . version ;
11+ const binaryenVersion = pkg . packages [ "node_modules/binaryen" ] . version || pkg . dependencies . binaryen . version ;
12+ const longVersion = pkg . packages [ "node_modules/long" ] . version || pkg . dependencies . long . version ;
1313
1414 const distUrl = mainVersion === "0.0.0" ? `./` : `https://cdn.jsdelivr.net/npm/assemblyscript@${ mainVersion } /dist/` ;
1515 const binaryenUrl = `https://cdn.jsdelivr.net/npm/binaryen@${ binaryenVersion } /index.js` ;
You can’t perform that action at this time.
0 commit comments