We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b36ad25 commit f29fcb1Copy full SHA for f29fcb1
1 file changed
install/dll-copy.js
@@ -6,7 +6,8 @@ const path = require('path');
6
const libvips = require('../lib/libvips');
7
const npmLog = require('npmlog');
8
9
-if (process.platform === 'win32') {
+const platform = process.env.npm_config_platform || process.platform;
10
+if (platform === 'win32') {
11
const buildDir = path.join(__dirname, '..', 'build');
12
const buildReleaseDir = path.join(buildDir, 'Release');
13
npmLog.info('sharp', `Creating ${buildReleaseDir}`);
0 commit comments