Skip to content

Commit

Permalink
fix: os is not working, disable registry-js use .pnpmfile.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Dec 29, 2023
1 parent 75789b5 commit 02ea731
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
13 changes: 13 additions & 0 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function readPackage(pkg, context) {
if (process.platform !== 'win32') {
delete pkg.optionalDependencies['registry-js'];
}

return pkg
}

module.exports = {
hooks: {
readPackage
}
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,6 @@
"overrides": {
"node-abi": "latest",
"prebuild-install": "latest"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
},
"private": false
Expand Down
12 changes: 0 additions & 12 deletions patches/[email protected]

This file was deleted.

10 changes: 2 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02ea731

Please sign in to comment.