Skip to content

Commit

Permalink
Make sure to use the correct package manager in concurrently scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Apr 5, 2024
1 parent 1c69386 commit 7df099d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions files/__addonLocation__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
"dist"
],
"scripts": {<% if (typescript) { %>
"build": "concurrently 'npm:build:*'",
"build": "concurrently '<%= packageManager %>:build:*'",
"build:js": "rollup --config",
"build:types": "glint --declaration",<% } else { %>
"build": "rollup --config",<% } %>
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
"lint": "concurrently '<%= packageManager %>:lint:*(!fix)' --names 'lint:'",
"lint:fix": "concurrently '<%= packageManager %>:lint:*:fix' --names 'fix:'",
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
"lint:js": "eslint . --cache",
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
"lint:js:fix": "eslint . --fix",<% if (typescript) { %>
"lint:types": "glint",
"start": "concurrently 'npm:start:*'",
"start": "concurrently '<%= packageManager %>:start:*'",
"start:js": "rollup --config --watch --no-watch.clearScreen",
"start:types": "glint --declaration --watch",<% } else { %>
"start": "rollup --config --watch",<% } %>
Expand Down
4 changes: 2 additions & 2 deletions src/root-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ let scripts = {
lint: 'yarn workspaces run lint',
'lint:fix': 'yarn workspaces run lint:fix',
prepare: 'yarn build',
start: "concurrently 'npm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow",
start: "concurrently 'yarn:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow",
'start:addon': `yarn workspace ${addonName} run start`,
'start:test-app': `yarn workspace ${testAppName} run start`,
test: 'yarn workspaces run test',
Expand Down Expand Up @@ -110,7 +110,7 @@ let scripts = {
*
* Colors are customizable
*/
start: "concurrently 'npm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow",
start: "concurrently 'pnpm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow",
'start:addon': `pnpm --filter ${addonName} start --no-watch.clearScreen`,
'start:test-app': `pnpm --filter ${testAppName} start`,
/**
Expand Down

0 comments on commit 7df099d

Please sign in to comment.