diff --git a/npm/from-github-release.js b/npm/from-github-release.js index 2d20db13..84f9fb9b 100644 --- a/npm/from-github-release.js +++ b/npm/from-github-release.js @@ -61,7 +61,8 @@ workspaces.map(async platform => { await copyFile(path.join(__dirname, '..', 'LICENSE'), path.join(dir, 'LICENSE')); // Copy files for packages without an explicit sharp-libvips dependency (Windows, wasm) if (platform.startsWith('win') || platform.startsWith('wasm')) { - const sharpLibvipsDir = path.join(require(`@img/sharp-libvips-${platform}/lib`), '..'); + const libvipsPlatform = platform === 'wasm32' ? 'dev-wasm32' : platform; + const sharpLibvipsDir = path.join(require(`@img/sharp-libvips-${libvipsPlatform}/lib`), '..'); // Copy versions.json await copyFile(path.join(sharpLibvipsDir, 'versions.json'), path.join(dir, 'versions.json')); // Append third party licensing to README