@@ -210,30 +210,6 @@ Because the configuration loader depends on this setting, its output is not
210210affected by this setting. If you want to debug the configuration set
211211` DEBUG_ISOLATE_CONFIG=true ` before you run ` isolate `
212212
213- ### forceNpm
214-
215- Type: ` boolean ` , default: ` false `
216-
217- By default the isolate process will generate output based on the package manager
218- that you are using for your monorepo. But your deployment target might not be
219- compatible with that package manager, or it might not be the best choice given
220- the available tooling.
221-
222- Also, it should not really matter what package manager is used in de deployment
223- as long as the versions match your original lockfile.
224-
225- By setting this option to ` true ` you are forcing the isolate output to use NPM.
226- A package-lock file will be generated based on the contents of node_modules and
227- therefore should match the versions in your original lockfile.
228-
229- This way you can enjoy using PNPM or Yarn for your monorepo, while your
230- deployment uses NPM with modules locked to the same versions.
231-
232- > !! Warning: Generating an NPM lockfile currently requires moving the
233- > node_modules from the root of the monorepo temporarily into the isolate
234- > directory. This will not be compatible with setups that run multiple isolation
235- > processes in parallel.
236-
237213### buildDirName
238214
239215Type: ` string | undefined ` , default: ` undefined `
@@ -341,13 +317,8 @@ When you use the `targetPackagePath` option, this setting will be ignored.
341317## Lockfiles
342318
343319The isolate process tries to generate an isolated / pruned lockfile for the
344- package manager that you use in your monorepo. If the package manager is not
345- supported (modern Yarn versions), it can still generate a matching NPM lockfile
346- based on the installed versions in node_modules.
347-
348- In case your package manager is not supported by your deployment target you can
349- also choose NPM to be used by setting the ` makeNpmLockfile ` to ` true ` in your
350- configuration.
320+ package manager that you use in your monorepo. The strategy is different for
321+ each package manager, with NPM currently being the least attractive.
351322
352323### NPM
353324
@@ -366,13 +337,8 @@ after Arborist has finished doing its thing.
366337
367338### PNPM
368339
369- The PNPM lockfile format is very readable (YAML) but getting it adapted to the
370- isolate output was a bit of a trip.
371-
372- It turns out, at least up to v10, that the isolated output has to be formatted
373- as a workspace itself, otherwise dependencies of internally linked packages are
374- not installed by PNPM. Therefore, the output looks a bit different from other
375- package managers:
340+ For PNPM, the isolated output will be formatted as a workspace itself, otherwise
341+ dependencies of internally linked packages are not installed by PNPM.
376342
377343- Links are preserved
378344- Versions specifiers like "workspace:\* " are preserved
0 commit comments