Skip to content

Commit

Permalink
Fix cross-os to work with workspaces (#26)
Browse files Browse the repository at this point in the history
* Add --no-workspace to maiintain backwards compatibility

* npm install

* Delete package-lock.json

Co-authored-by: Rafael Milewski <[email protected]>
  • Loading branch information
adityag221 and milewski authored Jun 17, 2022
1 parent ced907d commit 2f97ab2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 338 deletions.
337 changes: 0 additions & 337 deletions package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { platform } = process
* Grab package.json
*/
const pipeline = new Promise<string>(resolve => {
exec('npm prefix').stdout.on('data', (root: Buffer) => {
exec('npm prefix --no-workspaces').stdout.on('data', (root: Buffer) => {
resolve(require(path.resolve(root.toString('utf8').trim(), 'package.json')))
})
}).then<{ command: string, params: Array<string>, script: string }>(config => {
Expand Down

0 comments on commit 2f97ab2

Please sign in to comment.