type-fest 2.11.2 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/source/package-json.d.ts +16 -2
package/package.json
CHANGED
package/source/package-json.d.ts
CHANGED
|
@@ -232,6 +232,13 @@ declare namespace PackageJson {
|
|
|
232
232
|
| {[key in ExportCondition]: Exports}
|
|
233
233
|
| {[key: string]: Exports}; // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
|
|
234
234
|
|
|
235
|
+
/**
|
|
236
|
+
Import map entries of a module, optionally with conditions.
|
|
237
|
+
*/
|
|
238
|
+
export type Imports = { // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
|
|
239
|
+
[key: string]: string | {[key in ExportCondition]: Exports};
|
|
240
|
+
};
|
|
241
|
+
|
|
235
242
|
export interface NonStandardEntryPoints {
|
|
236
243
|
/**
|
|
237
244
|
An ECMAScript module ID that is the primary entry point to the program.
|
|
@@ -416,12 +423,19 @@ declare namespace PackageJson {
|
|
|
416
423
|
main?: string;
|
|
417
424
|
|
|
418
425
|
/**
|
|
419
|
-
|
|
426
|
+
Subpath exports to define entry points of the package.
|
|
420
427
|
|
|
421
|
-
[Read more.](https://nodejs.org/api/
|
|
428
|
+
[Read more.](https://nodejs.org/api/packages.html#subpath-exports)
|
|
422
429
|
*/
|
|
423
430
|
exports?: Exports;
|
|
424
431
|
|
|
432
|
+
/**
|
|
433
|
+
Subpath imports to define internal package import maps that only apply to import specifiers from within the package itself.
|
|
434
|
+
|
|
435
|
+
[Read more.](https://nodejs.org/api/packages.html#subpath-imports)
|
|
436
|
+
*/
|
|
437
|
+
imports?: Imports;
|
|
438
|
+
|
|
425
439
|
/**
|
|
426
440
|
The executable files that should be installed into the `PATH`.
|
|
427
441
|
*/
|