File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ mkdirp.sync(constants.MODULE_CACHE_DIRECTORY);
32
32
33
33
module . exports = require ( dirPath + '/cli' ) ;
34
34
35
- const main = module . exports . default ;
35
+ // The `||` fallback is for Webpack/Node compatibility
36
+ const main = module . exports . default || module . exports ;
36
37
37
38
// ignore all arguments after a --
38
39
const doubleDashIndex = process . argv . findIndex ( element => element === '--' ) ;
Original file line number Diff line number Diff line change @@ -31,14 +31,15 @@ test:
31
31
- yarn lint
32
32
- yarn test-ci -- -- --maxWorkers 3
33
33
- yarn check-lockfile
34
- - yarn build-dist && yarn build-deb
34
+ - yarn run build-dist
35
+ - yarn run build-deb
35
36
# Test that the standalone .js build works as expected
36
37
- ./artifacts/yarn-`./dist/bin/yarn --version`.js --version
37
38
- ./artifacts/yarn-legacy-`./dist/bin/yarn --version`.js --version
38
39
39
40
# Test that installing as root works and that it also works
40
41
# behind a user namespace which Circle CI tests are run under
41
- - sudo env "PATH=$PATH" bin/yarn --force
42
+ - sudo env "PATH=$PATH" bin/yarn install --force
42
43
43
44
deployment :
44
45
release :
You can’t perform that action at this time.
0 commit comments