Skip to content

Commit 9af350d

Browse files
committed
fix: update how path to elm binary is resolved
BREAKING CHANGE: create-elm-app does guarantee backward compatibility of all underlying dependencies so this release is marked as breaking
1 parent ab103dd commit 9af350d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/elm-app-cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
'use strict';
44

5+
56
const path = require('path');
67
const spawn = require('cross-spawn');
78
const argv = require('minimist')(process.argv.slice(2));
@@ -61,7 +62,7 @@ switch (script) {
6162

6263
args = args.concat([
6364
'--compiler',
64-
path.join(path.dirname(require.resolve('elm')), '/unpacked_bin/elm')
65+
require.resolve('elm/bin/elm')
6566
]);
6667
const cp = spawn.sync(require.resolve('elm-test/bin/elm-test'), args, {
6768
stdio: 'inherit'

0 commit comments

Comments
 (0)