Skip to content

Commit 7d030e1

Browse files
authored
Introduce links instead of patch in deno.json docs (#1818)
1 parent 7a6c49d commit 7d030e1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

runtime/fundamentals/configuration.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,12 @@ import map's URL or file path.
130130

131131
### Overriding packages
132132

133-
The `patch` field in `deno.json` allows you to override dependencies without
134-
modifying their source code. It also allows you to use packages stored locally
135-
on disk.
133+
The `links` field in `deno.json` allows you to override dependencies with local
134+
packages stored on disk. This is similar to `npm link`.
136135

137136
```json title="deno.json"
138137
{
139-
"patch": [
138+
"links": [
140139
"../some-package"
141140
]
142141
}
@@ -147,7 +146,6 @@ This capability addresses several common development challenges:
147146
- Dependency bug fixes
148147
- Private local libraries
149148
- Compatibility issues
150-
- Security concerns
151149

152150
The package being referenced doesn't need to be published at all. It just needs
153151
to have the proper package name and metadata in `deno.json` or `package.json`,

0 commit comments

Comments
 (0)