Skip to content

Commit

Permalink
docs(injected): more accurate description (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub authored Oct 27, 2023
1 parent cecaa27 commit 5aed81f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/package_json.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ Additional meta information used for dependencies declared inside `dependencies`

### dependenciesMeta.*.injected

If this is set to true for a local dependency, the package will be hard linked to the modules directory, not symlinked.
If this is set to `true` for a local dependency, the package will be hard linked to the virtual store (`node_modules/.pnpm`) and symlinked from the virtual store to the modules directory.

If this is set to `false` or not set for a local dependency, the package will be symlinked directly from its location in the workspace to the module directory.

For instance, the following `package.json` in a workspace will create a symlink to `button` in the `node_modules` directory of `card`:

Expand Down Expand Up @@ -278,7 +280,7 @@ The referenced package does not need to match the overridden one:
"overrides": {
"bar": "$foo"
}
}
}
}
```

Expand Down

0 comments on commit 5aed81f

Please sign in to comment.