@@ -101,7 +101,7 @@ export * from "./greet.ts";
101
101
### Importing npm packages
102
102
103
103
You may import npm packages specified in the ` "dependencies" ` of a
104
- ` package.json ` , ones specified in an import map or ` deno.json ` , or ones
104
+ ` package.json ` , ones specified in an import map or ` deno.json(c) ` , or ones
105
105
specified in source code using ` npm: ` specifiers.
106
106
107
107
``` json
@@ -123,7 +123,7 @@ import * as express from "npm:express@4";
123
123
### Importing JSR packages
124
124
125
125
You may import JSR packages specified in the ` "dependencies" ` of a
126
- ` package.json ` , ones specified in an import map or ` deno.json ` , or ones
126
+ ` package.json ` , ones specified in an import map or ` deno.json(c) ` , or ones
127
127
specified in source code using ` jsr: ` specifiers.
128
128
[ Learn more about using packages.] ( /docs/using-packages )
129
129
@@ -161,13 +161,13 @@ export function readJsonFile(path: string) {
161
161
162
162
You may use a dependency manifest like a ` package.json ` , or an
163
163
[ import map] ( https://docs.deno.com/runtime/manual/basics/import_maps ) (like the
164
- ` deno.json ` file) to simplify your imports. During publishing, ` jsr publish ` /
165
- ` deno publish ` will automatically rewrite the specifiers in your source code to
166
- fully qualified specifiers that do not require an import map / ` package.json `
164
+ ` deno.json(c) ` file) to simplify your imports. During publishing, ` jsr publish `
165
+ / ` deno publish ` will automatically rewrite the specifiers in your source code
166
+ to fully qualified specifiers that do not require an import map / ` package.json `
167
167
anymore.
168
168
169
169
``` json
170
- // import_map.json / deno.json
170
+ // import_map.json / deno.json(c)
171
171
{
172
172
"imports" : {
173
173
"@luca/greet" : " jsr:@luca/greet@1" ,
@@ -201,10 +201,10 @@ consumers of your package.
201
201
After you have written your code, you must add a config file to your package.
202
202
This file contains package metadata like the name, version, and entrypoint(s).
203
203
This file should be named ` jsr.json ` . Deno users can also include the required
204
- JSR properties in their ` deno.json ` to avoid having to create another file.
204
+ JSR properties in their ` deno.json(c) ` to avoid having to create another file.
205
205
206
206
``` json
207
- // jsr.json / deno.json
207
+ // jsr.json / deno.json(c)
208
208
{
209
209
"name" : " @luca/greet" ,
210
210
"version" : " 1.0.0" ,
@@ -354,8 +354,8 @@ file. `jsr publish` will not attempt to publish if the version specified in your
354
354
355
355
` jsr publish` will ignore files that are listed in a `.gitignore` file in the
356
356
root of your package. Additionally, you can specify the `include` and `exclude`
357
- fields in your `jsr.json` / `deno.json` file to include, ignore, or un-gitignore
358
- specific files.
357
+ fields in your `jsr.json` / `deno.json(c) ` file to include, ignore, or
358
+ un-gitignore specific files.
359
359
360
360
For example, to only selectively include certain files, you can specify a glob
361
361
that matches all files by using the `include` option :
@@ -398,13 +398,13 @@ You may also exclude certain files via the `exclude` option:
398
398
}
399
399
` ` `
400
400
401
- When using Deno, the `include` and `exclude` options in `deno.json` are used for
402
- many other Deno subcommands as well, such as `deno test`, `deno lint` and
401
+ When using Deno, the `include` and `exclude` options in `deno.json(c) ` are used
402
+ for many other Deno subcommands as well, such as `deno test`, `deno lint` and
403
403
` deno fmt` . You can use `publish.include` and `publish.exclude` in your
404
- ` deno.json` file to specify options that only apply to `deno publish`.
404
+ ` deno.json(c) ` file to specify options that only apply to `deno publish`.
405
405
406
406
` ` ` json
407
- // deno.json
407
+ // deno.json(c)
408
408
{
409
409
"name": "@luca/greet",
410
410
"version": "1.0.0",
@@ -431,7 +431,7 @@ be ignored when publishing.
431
431
This may however be inconvenient if you want to publish the `dist/` directory,
432
432
because you have `"exports"` pointing to it (or a subdirectory of it). In this
433
433
case, you can un-ignore the `dist/` directory by using a negation in the
434
- ` exclude` field in your `jsr.json` / `deno.json` file.
434
+ ` exclude` field in your `jsr.json` / `deno.json(c) ` file.
435
435
436
436
` ` ` json
437
437
// jsr.json
0 commit comments