Skip to content

Commit

Permalink
fix: attempt to make it work in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Apr 17, 2023
1 parent 649bd25 commit 11bc003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
node_version: [14, 16, 18]
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
- name: Use Node.js ${{ matrix.node_version }}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ class Smoker extends createStrictEventEmitterClass() {
*/
async #runNpm(args, options = {}) {
const npmPath = await this.findNpm();
const command = `${process.execPath} ${npmPath} ${args.join(' ')}`;
const command = `${npmPath} ${args.join(' ')}`;
this.emit(RUN_NPM_BEGIN, {
command,
options,
Expand Down

0 comments on commit 11bc003

Please sign in to comment.