We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b843477 commit 86f6699Copy full SHA for 86f6699
1 file changed
scripts/build-web.js
@@ -8,8 +8,8 @@ export function buildWeb() {
8
const pkg = JSON.parse(fs.readFileSync(join(__dirname, "../package-lock.json")));
9
10
const mainVersion = pkg.version;
11
- const binaryenVersion = pkg.packages["node_modules/binaryen"].version;
12
- const longVersion = pkg.packages["node_modules/long"].version;
+ const binaryenVersion = pkg.packages["node_modules/binaryen"].version || pkg.dependencies.binaryen.version;
+ const longVersion = pkg.packages["node_modules/long"].version || pkg.dependencies.long.version;
13
14
const distUrl = mainVersion === "0.0.0" ? `./` : `https://cdn.jsdelivr.net/npm/assemblyscript@${mainVersion}/dist/`;
15
const binaryenUrl = `https://cdn.jsdelivr.net/npm/binaryen@${binaryenVersion}/index.js`;
0 commit comments