Skip to content

Commit

Permalink
Fix NPM usig symlinks for file installs
Browse files Browse the repository at this point in the history
  • Loading branch information
abraham committed Jan 23, 2018
1 parent 6d420f8 commit 6a7c813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"scripts": {
"build": "tsc",
"prepare": "npm run build",
"pretest": "mkdir tmp",
"test": "cd tmp && nutmeg new ci-test first:number second:string third:boolean --cli-source file:../.. --no-yarn && cd ci-test && npm run test",
"pretest": "mkdir tmp && npm pack .",
"test": "cd tmp && nutmeg new ci-test first:number second:string third:boolean --cli-source file:../../$(ls .. | grep nutmeg-cli-) --no-yarn && cd ci-test && npm run test",
"test:yarn": "cd tmp && nutmeg new ci-test first:number second:string third:boolean --cli-source file:../.. --yarn && cd ci-test && npm run test",
"watch": "tsc --watch"
},
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function installDependencies(options: { withYarn: boolean, withDependencies: boo
console.log('📦 Skipping dependencies');
} else {
const useYarn = hasYarn() && options.withYarn;
console.log(`🎁 Installing dependencies with ${useYarn ? 'Yarn' : 'NPM'}`);
console.log(`🎁 Installing dependencies with ${useYarn ? 'Yarn' : 'NPM'}`);
if (useYarn) {
shell.exec('yarn', { silent: true });
} else {
Expand Down

0 comments on commit 6a7c813

Please sign in to comment.