Replies: 10 comments 30 replies
-
Few thoughts:
|
Beta Was this translation helpful? Give feedback.
-
One question, will pnpm shipped as a compiled binary work fine with |
Beta Was this translation helpful? Give feedback.
-
I started to work on this @pnpm/collaborators |
Beta Was this translation helpful? Give feedback.
-
Is this change intended to align with Node.js v12 EOL on 30th of April? https://nodejs.org/en/about/releases if not, I feel like this might make harder the pnpm usage on libraries that need to support Node.js v12 before that happens
I can agree with
This will make the life harder on any people that use React or GraphQL, just go give an example, to this day, Next.js still has peer dependency issues with the missing |
Beta Was this translation helpful? Give feedback.
-
@zkochan In pnpmv6, global packages will install to node installation path. In v7, you need manually define the So, I have two question:
|
Beta Was this translation helpful? Give feedback.
-
Looks like sometimes it causes confusion that pnpm doesn't install dev dependencies, when NODE_ENV is set to |
Beta Was this translation helpful? Give feedback.
-
I think one more breaking change is needed. And this one is needed for implementing a deploy command. Currently, peer dependencies are resolved from the root of the workspace as well. As a result, even when running a filtered installations, the root workspace package should be included. I suggest to change this and don't resolve peer dependencies from the root package.json. |
Beta Was this translation helpful? Give feedback.
-
I have a usecase that is a different type of deploy - we have google cloud functions in our project (aka AWS lambda). This is in practice just source code that is deployed using the gcloud cli tool. It just takes the directory given, with its package.json, uploads it, install the dependencies there and tries to run it. The issue I have then is that I need to have the workspace link resolved prior running my deploy command, but then of course without running publish. Since our source is typescript, we already build this into its own directory, with a customized .npmrc etc (private packages). What I think would be most suitable then is to have a command like pnpm resolve[-workspace] .Since that dir doesn't have a node_modules folder, the command would have to use cwd for resolution (I saw if I could fake this using publish --dry-run, but couldn't as it tried to resolve the workspace links in ). Or maybe there are other existing ways to make this work? |
Beta Was this translation helpful? Give feedback.
-
After running into the usual phantom dep random version issues, I've been trying setting Anyone have a better workaround than listing the plugin packages in |
Beta Was this translation helpful? Give feedback.
-
I have locked this discussion because people are posting random issues here for some reason. |
Beta Was this translation helpful? Give feedback.
-
This is a discussion about pnpm v7 breaking changes.
The biggest breaking change will be that pnpm will be shipped as a compiled binary, so pnpm won't need Node.js preinstalled on a system. This version of pnpm is already shipped as @pnpm/betapnpm dlx
.Turn off hoisting by default (at least in monorepos)pnpm pack
should only pack a file as an executable, if it is a bin or listed in theexecutableFiles
array-W
option.--workspace-root/-w
should be used instead.extend-node-path
should befalse
by default. The setting should be removed.renameuse-node-version
tonode-version
.side-effects-cache
true by default.embed-readme
false by defaultpnpm install -g pkg
write bin commands only to predefined location.pnpm run <script>
, all command line arguments after the script name are passed to the script's argv. Run scripts without--
? #3778Install dev deps even if NODE_ENV is set toproduction
.pnpm init
is non-interactive by default.Review the breaking changes in Yarn v4 and do the same changes, when it makes sense: yarnpkg/berry#3591
Related PRs:
Beta Was this translation helpful? Give feedback.
All reactions