Skip to content

Commit

Permalink
feat: use yarn import for package-lock converting
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 9, 2020
1 parent 1d4ad33 commit e9fccd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const stages: Stage[] = [
],
[
'Generating new yarn.lock from package-lock.json',
['node_modules/.bin/synp', ['-s', 'package-lock.json']],
['yarn', ['import']],
],
[
'Removing package-lock.json',
Expand Down
2 changes: 1 addition & 1 deletion src/test/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('yarn-audit-fix', () => {
expect(cp.spawnSync).toHaveBeenCalledWith('node_modules/.bin/synp', ['-s', 'yarn.lock'])
expect(cp.spawnSync).toHaveBeenCalledWith('node_modules/.bin/rimraf', ['yarn.lock'])
expect(cp.spawnSync).toHaveBeenCalledWith('npm', ['audit', 'fix', '--package-lock-only'])
expect(cp.spawnSync).toHaveBeenCalledWith('node_modules/.bin/synp', ['-s', 'package-lock.json'])
expect(cp.spawnSync).toHaveBeenCalledWith('yarn', ['import'])
expect(cp.spawnSync).toHaveBeenCalledWith('node_modules/.bin/rimraf', ['package-lock.json'])
})
})
Expand Down

0 comments on commit e9fccd8

Please sign in to comment.