Skip to content

Commit

Permalink
fix: fix rimraf bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 8, 2020
1 parent 6ee5336 commit 69df2aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export const stages: Stage[] = [
],
[
'Removing yarn.lock',
['rimraf', ['yarn.lock']],
['node_modules/.bin/rimraf', ['yarn.lock']],
],
[
'Generating new yarn.lock from package-lock.json',
['yarn', ['import']],
],
[
'Removing package-lock.json',
['rimraf', ['package-lock.json']],
['node_modules/.bin/rimraf', ['package-lock.json']],
],
[
'Done',
Expand Down
4 changes: 2 additions & 2 deletions src/test/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ describe('yarn-audit-fix', () => {

expect(cp.spawnSync).toHaveBeenCalledWith('npm', ['i', '--package-lock-only'])
expect(cp.spawnSync).toHaveBeenCalledWith('npm', ['audit', 'fix'])
expect(cp.spawnSync).toHaveBeenCalledWith('rimraf', ['yarn.lock'])
expect(cp.spawnSync).toHaveBeenCalledWith('node_modules/.bin/rimraf', ['yarn.lock'])
expect(cp.spawnSync).toHaveBeenCalledWith('yarn', ['import'])
expect(cp.spawnSync).toHaveBeenCalledWith('rimraf', ['package-lock.json'])
expect(cp.spawnSync).toHaveBeenCalledWith('node_modules/.bin/rimraf', ['package-lock.json'])
})
})
})

0 comments on commit 69df2aa

Please sign in to comment.