What version of pkg are you using?
6.0.0, 5.16.0
Which version(s) of pkg work for you?
5.15.0
What version of Node.js are you using?
20.18.0
What operating system are you using?
Windows
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
node20-linux-x64
Describe the Bug
I have a pnpm project using workspaces. build time is significantly slower in pkg 5.16 onwards. Our project builds in 22 seconds using pkg 5.15, and 35 minutes when using pkg 5.16 or later.
Expected Behavior
Build time should be similar for both. Or at least in the same order of magnitude.
To Reproduce
Unzip the reproduce.zip folder.
reproduce.zip
run these commands:
pnpm install
time pnpm -r artifacts
then in packages/foo/package.json change the version to ~5.16.0, and repeat the above commands.
For me this are the execution times:
| pkg version |
build time |
| ~5.15.0 |
0m5.618s |
| ~5.16.0 |
0m28.320s |
| ~6.0.0 |
0m30.630s |
What version of pkg are you using?
6.0.0, 5.16.0
Which version(s) of pkg work for you?
5.15.0
What version of Node.js are you using?
20.18.0
What operating system are you using?
Windows
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
node20-linux-x64
Describe the Bug
I have a pnpm project using workspaces. build time is significantly slower in pkg 5.16 onwards. Our project builds in 22 seconds using pkg 5.15, and 35 minutes when using pkg 5.16 or later.
Expected Behavior
Build time should be similar for both. Or at least in the same order of magnitude.
To Reproduce
Unzip the reproduce.zip folder.
reproduce.zip
run these commands:
pnpm install time pnpm -r artifactsthen in packages/foo/package.json change the version to ~5.16.0, and repeat the above commands.
For me this are the execution times: