Skip to content

Commit 2f97ab2

Browse files
adityag221milewski
andauthored
Fix cross-os to work with workspaces (#26)
* Add --no-workspace to maiintain backwards compatibility * npm install * Delete package-lock.json Co-authored-by: Rafael Milewski <[email protected]>
1 parent ced907d commit 2f97ab2

File tree

2 files changed

+1
-338
lines changed

2 files changed

+1
-338
lines changed

package-lock.json

-337
This file was deleted.

source/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { platform } = process
99
* Grab package.json
1010
*/
1111
const pipeline = new Promise<string>(resolve => {
12-
exec('npm prefix').stdout.on('data', (root: Buffer) => {
12+
exec('npm prefix --no-workspaces').stdout.on('data', (root: Buffer) => {
1313
resolve(require(path.resolve(root.toString('utf8').trim(), 'package.json')))
1414
})
1515
}).then<{ command: string, params: Array<string>, script: string }>(config => {

0 commit comments

Comments
 (0)