Open phenomen opened 1 year ago
Doesn't seem to support pnpm currently.
The loadGlobalPnpmPackage method throws an exception
Current environment
pnpm ls --global --depth=0 --json
is
[
{
"path": "C:\\Users\\simexce\\AppData\\Local\\pnpm\\global\\5",
"private": false
}
]
Reason
pnpmOut => Object.entries(pnpmOut.dependencies)
,pnpmOut.dependencies is undefined.
Also, does not work on Node 22 when taze
is installed with bun
. taze
is installed with npm
works.
PS C:\Windows\System32> taze -g
TypeError: Cannot convert undefined or null to object
at Function.entries (<anonymous>)
at loadGlobalNpmPackage (file:///C:/Users/User/.bun/install/global/node_modules/taze/dist/cli.mjs:942:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
at async checkGlobal (file:///C:/Users/User/.bun/install/global/node_modules/taze/dist/cli.mjs:850:22)
at async Object.handler (file:///C:/Users/User/.bun/install/global/node_modules/taze/dist/cli.mjs:1060:18)
Clear and concise description of the problem
There is no way to check updates for packages installed in a global scope (
npm/pnpm install * -g
).Suggested solution
Add
-g
option to check/write updates for packages installed globally.Alternative
No response
Additional context
No response
Validations