Skip to content

Commit ace1681

Browse files
committedNov 10, 2023
Packaging: use correct package when pop from release
1 parent 75ef61a commit ace1681

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎npm/from-github-release.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ workspaces.map(async platform => {
6161
await copyFile(path.join(__dirname, '..', 'LICENSE'), path.join(dir, 'LICENSE'));
6262
// Copy files for packages without an explicit sharp-libvips dependency (Windows, wasm)
6363
if (platform.startsWith('win') || platform.startsWith('wasm')) {
64-
const sharpLibvipsDir = path.join(require(`@img/sharp-libvips-${platform}/lib`), '..');
64+
const libvipsPlatform = platform === 'wasm32' ? 'dev-wasm32' : platform;
65+
const sharpLibvipsDir = path.join(require(`@img/sharp-libvips-${libvipsPlatform}/lib`), '..');
6566
// Copy versions.json
6667
await copyFile(path.join(sharpLibvipsDir, 'versions.json'), path.join(dir, 'versions.json'));
6768
// Append third party licensing to README

0 commit comments

Comments
 (0)
Please sign in to comment.