git.iko.soy/lynxjs-elm/compiler
on master help sign in
fix --ignore-scripts behavior on Mac and Linux
commit3415bdca6576c9e03101d9af91e7454ccfcf6722 authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 22 Oct 2019, 09:01 (7 years ago) parent4c32393
1 file changed+10−3
installers/npm/bin/elm+10−3
installers/npm/bin/elm+10−3
@@ -32,9 +32,16 @@ var binaryPath = path.resolve(__dirname, 'elm') + (process.platform === 'win32'
3232// Run the command directly if possible, otherwise download and then run.
3333// This check is important for Windows where this file will be run all the time.
3434//
35−fs.existsSync(binaryPath)
36− ? runCommand()
37− : require('../download.js')(runCommand);
35+if (process.platform === 'win32')
36+{
37+ fs.existsSync(binaryPath)
38+ ? runCommand()
39+ : require('../download.js')(runCommand);
40+}
41+else
42+{
43+ require('../download.js')(runCommand);
44+}
3845
3946
4047function runCommand()