Skip to content

Commit f29fcb1

Browse files
authored
Ensure npm platform flag is respected when copying DLLs
1 parent b36ad25 commit f29fcb1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

install/dll-copy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const path = require('path');
66
const libvips = require('../lib/libvips');
77
const npmLog = require('npmlog');
88

9-
if (process.platform === 'win32') {
9+
const platform = process.env.npm_config_platform || process.platform;
10+
if (platform === 'win32') {
1011
const buildDir = path.join(__dirname, '..', 'build');
1112
const buildReleaseDir = path.join(buildDir, 'Release');
1213
npmLog.info('sharp', `Creating ${buildReleaseDir}`);

0 commit comments

Comments
 (0)