@ms-cloudpack/common-types 0.5.1 → 0.5.3
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/lib/PackageDefinitionsCache.d.ts +4 -0
- package/lib/PackageDefinitionsCache.d.ts.map +1 -1
- package/lib/PackageDefinitionsCache.js.map +1 -1
- package/lib/PackageSettings.d.ts +2 -1
- package/lib/PackageSettings.d.ts.map +1 -1
- package/lib/PackageSettings.js.map +1 -1
- package/lib/allFeatures.d.ts +1 -1
- package/lib/allFeatures.js +1 -1
- package/lib/allFeatures.js.map +1 -1
- package/package.json +1 -1
- package/schema/AppConfig.json +3 -3
- package/schema/GeneratedConfig.json +2 -2
- package/schema/UserConfig.json +3 -3
|
@@ -42,6 +42,10 @@ export interface PackageDefinitionsCache {
|
|
|
42
42
|
reset(options?: {
|
|
43
43
|
newConfig?: unknown;
|
|
44
44
|
}): void;
|
|
45
|
+
/**
|
|
46
|
+
* This is a helper function for testing, to get all package definitions in the cache.
|
|
47
|
+
*/
|
|
48
|
+
_getAll(options?: Pick<GetPackageDefinitionOptions, 'disableTransforms'>): Record<string, PackageJson>;
|
|
45
49
|
/**
|
|
46
50
|
* Remove one package from the cache.
|
|
47
51
|
* @deprecated Not used.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageDefinitionsCache.d.ts","sourceRoot":"","sources":["../src/PackageDefinitionsCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,sFAAsF;AACtF,MAAM,WAAW,sBAAsB;IACrC,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,kEAAkE;AAClE,MAAM,MAAM,0BAA0B,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names":[],"mappings":"","sourcesContent":["import type { PackageJson } from './PackageJson.js';\n\n/** Provides context about how a parent package imports/depends on another package. */\nexport interface PackageImporterContext {\n /** Actual name of the package that requested this package. */\n parentName: string;\n /** Actual version of the package that requested this package. */\n parentVersion: string;\n /** Name under which this package is imported by the parent. */\n importedName: string;\n /** Version spec the parent requested for this package. */\n versionRequirement: string;\n}\n\n/** Transform applied to a `package.json` file after it's read. */\nexport type PackageDefinitionTransform = (params: {\n definition: PackageJson;\n packagePath: string;\n packages: PackageDefinitionsCache;\n importerContext?: PackageImporterContext;\n}) => PackageJson | undefined | Promise<PackageJson | undefined>;\n\nexport interface GetPackageDefinitionOptions {\n /** If true, the package definition will be re-read from disk. */\n refresh?: boolean;\n /** If true, transforms will not be applied. */\n disableTransforms?: boolean;\n /** Info about the package that is importing this package, if known. */\n importerContext?: PackageImporterContext;\n}\n\n/**\n * Utility class for reading and caching package definition (`package.json`) objects,\n * and optionally applying transforms.\n */\nexport interface PackageDefinitionsCache {\n /** Get a package definition (either from cache or disk) and apply transforms. */\n get(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson | undefined>;\n\n /** Register a new transform. */\n registerTransform(factory: (config?: unknown) => PackageDefinitionTransform): void;\n\n /**\n * Resets the cache. If a `newConfig` value is provided, the transform factories will be called with the new value\n * to give them an opportunity to reflect changes to the config. It is `unknown` because the config type is\n * application-specific.\n */\n reset(options?: { newConfig?: unknown }): void;\n\n /**\n * Remove one package from the cache.\n * @deprecated Not used.\n */\n resetPackage(packagePath: string): void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"PackageDefinitionsCache.js","sourceRoot":"","sources":["../src/PackageDefinitionsCache.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageJson } from './PackageJson.js';\n\n/** Provides context about how a parent package imports/depends on another package. */\nexport interface PackageImporterContext {\n /** Actual name of the package that requested this package. */\n parentName: string;\n /** Actual version of the package that requested this package. */\n parentVersion: string;\n /** Name under which this package is imported by the parent. */\n importedName: string;\n /** Version spec the parent requested for this package. */\n versionRequirement: string;\n}\n\n/** Transform applied to a `package.json` file after it's read. */\nexport type PackageDefinitionTransform = (params: {\n definition: PackageJson;\n packagePath: string;\n packages: PackageDefinitionsCache;\n importerContext?: PackageImporterContext;\n}) => PackageJson | undefined | Promise<PackageJson | undefined>;\n\nexport interface GetPackageDefinitionOptions {\n /** If true, the package definition will be re-read from disk. */\n refresh?: boolean;\n /** If true, transforms will not be applied. */\n disableTransforms?: boolean;\n /** Info about the package that is importing this package, if known. */\n importerContext?: PackageImporterContext;\n}\n\n/**\n * Utility class for reading and caching package definition (`package.json`) objects,\n * and optionally applying transforms.\n */\nexport interface PackageDefinitionsCache {\n /** Get a package definition (either from cache or disk) and apply transforms. */\n get(packagePath: string, options?: GetPackageDefinitionOptions): Promise<PackageJson | undefined>;\n\n /** Register a new transform. */\n registerTransform(factory: (config?: unknown) => PackageDefinitionTransform): void;\n\n /**\n * Resets the cache. If a `newConfig` value is provided, the transform factories will be called with the new value\n * to give them an opportunity to reflect changes to the config. It is `unknown` because the config type is\n * application-specific.\n */\n reset(options?: { newConfig?: unknown }): void;\n\n /**\n * This is a helper function for testing, to get all package definitions in the cache.\n */\n _getAll(options?: Pick<GetPackageDefinitionOptions, 'disableTransforms'>): Record<string, PackageJson>;\n\n /**\n * Remove one package from the cache.\n * @deprecated Not used.\n */\n resetPackage(packagePath: string): void;\n}\n"]}
|
package/lib/PackageSettings.d.ts
CHANGED
|
@@ -19,12 +19,13 @@ export interface PackageSettings {
|
|
|
19
19
|
/**
|
|
20
20
|
* The dependencies which should be included when computing the import map. This is primarily used when
|
|
21
21
|
* devDependencies are needed by the app. This often happens when a library has a demo app which relies
|
|
22
|
-
* on devDependencies.
|
|
22
|
+
* on devDependencies. Accepts `devDependencies` as a special value to include all devDependencies.
|
|
23
23
|
*/
|
|
24
24
|
includedDependencies?: string[];
|
|
25
25
|
/**
|
|
26
26
|
* The dependencies which should be ignored by Cloudpack verbs. For example, if "react-native" is a dependency
|
|
27
27
|
* which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it.
|
|
28
|
+
* Accepts `peerDependencies` as a special value to exclude all peerDependencies.
|
|
28
29
|
*/
|
|
29
30
|
excludedDependencies?: string[];
|
|
30
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageSettings.d.ts","sourceRoot":"","sources":["../src/PackageSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EACD;QACE;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,GAED,MAAM,CAAC;IAEX;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC
|
|
1
|
+
{"version":3,"file":"PackageSettings.d.ts","sourceRoot":"","sources":["../src/PackageSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EACD;QACE;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,GAED,MAAM,CAAC;IAEX;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEzC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtB;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAE1D;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageSettings.js","sourceRoot":"","sources":["../src/PackageSettings.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageJsonExports } from './PackageJson.js';\n\n/**\n * Settings which apply to a single package (app or library) as it pertains to the Cloudpack start experience.\n */\nexport interface PackageSettings {\n /**\n * A match to indicate the target for the settings to be applied to.\n */\n match:\n | {\n /**\n * Name of the package. Can use a trailing wildcard (e.g. \"\\@scope/*\").\n */\n name: string;\n\n /**\n * Version of the package. Unspecified matches any version.\n */\n version?: string;\n }\n // Match can be a string, which is a shortcut for the name.\n | string;\n\n /**\n * The dependencies which should be included when computing the import map. This is primarily used when\n * devDependencies are needed by the app. This often happens when a library has a demo app which relies\n * on devDependencies.\n */\n includedDependencies?: string[];\n\n /**\n * The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency\n * which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it.\n */\n excludedDependencies?: string[];\n\n /**\n * Dependencies which should be inlined in the library bundled by Cloudpack. This is useful for libraries which\n * are small and don't need to be loaded separately, or ones which have issues being resolved by the browser.\n */\n inlinedDependencies?: string[];\n\n /**\n * The exports map that should be used for this package, ignoring entries which are defined in the original\n * package.json. This is useful for libraries which have a missing or broken exports map, or when we want to\n * trim the exports to reduce the api surface we expose to the inner loop experience.\n */\n exports?: PackageJsonExports;\n\n /**\n * Forces the package to be bundled using a specific bundler.\n */\n bundlerType?: string;\n\n /**\n * Options to pass to the bundler.\n */\n bundlerOptions?: Record<string, unknown>;\n\n /**\n * Paths used for file monitoring and input hashing. Supports glob matching.\n * Defaults to `[/src/**, *.json]` and excludes node_modules.\n * Use `...` to include the default paths.\n */\n inputPaths?: string[];\n\n /**\n * Controls the behavior of the `verifyExports` feature when checking consumed exports from this package:\n * - If true, don't check this package's exports at all.\n * - If an object, this is a mapping from package import paths to export names to ignore. Examples:\n * - To ignore top-level exports: `{ \".\": [\"badName\"] }`\n * - To ignore exports from another path: `{ \"./lib/foo\": [\"badName\"] }`\n */\n ignoreMissingExports?: boolean | Record<string, string[]>;\n\n /**\n * Paths to files that include dynamic imports. These are used by ori to determine which files should be\n * processed by the dynamic-imports plugin.\n */\n dynamicImports?: string[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"PackageSettings.js","sourceRoot":"","sources":["../src/PackageSettings.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageJsonExports } from './PackageJson.js';\n\n/**\n * Settings which apply to a single package (app or library) as it pertains to the Cloudpack start experience.\n */\nexport interface PackageSettings {\n /**\n * A match to indicate the target for the settings to be applied to.\n */\n match:\n | {\n /**\n * Name of the package. Can use a trailing wildcard (e.g. \"\\@scope/*\").\n */\n name: string;\n\n /**\n * Version of the package. Unspecified matches any version.\n */\n version?: string;\n }\n // Match can be a string, which is a shortcut for the name.\n | string;\n\n /**\n * The dependencies which should be included when computing the import map. This is primarily used when\n * devDependencies are needed by the app. This often happens when a library has a demo app which relies\n * on devDependencies. Accepts `devDependencies` as a special value to include all devDependencies.\n */\n includedDependencies?: string[];\n\n /**\n * The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency\n * which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it.\n * Accepts `peerDependencies` as a special value to exclude all peerDependencies.\n */\n excludedDependencies?: string[];\n\n /**\n * Dependencies which should be inlined in the library bundled by Cloudpack. This is useful for libraries which\n * are small and don't need to be loaded separately, or ones which have issues being resolved by the browser.\n */\n inlinedDependencies?: string[];\n\n /**\n * The exports map that should be used for this package, ignoring entries which are defined in the original\n * package.json. This is useful for libraries which have a missing or broken exports map, or when we want to\n * trim the exports to reduce the api surface we expose to the inner loop experience.\n */\n exports?: PackageJsonExports;\n\n /**\n * Forces the package to be bundled using a specific bundler.\n */\n bundlerType?: string;\n\n /**\n * Options to pass to the bundler.\n */\n bundlerOptions?: Record<string, unknown>;\n\n /**\n * Paths used for file monitoring and input hashing. Supports glob matching.\n * Defaults to `[/src/**, *.json]` and excludes node_modules.\n * Use `...` to include the default paths.\n */\n inputPaths?: string[];\n\n /**\n * Controls the behavior of the `verifyExports` feature when checking consumed exports from this package:\n * - If true, don't check this package's exports at all.\n * - If an object, this is a mapping from package import paths to export names to ignore. Examples:\n * - To ignore top-level exports: `{ \".\": [\"badName\"] }`\n * - To ignore exports from another path: `{ \"./lib/foo\": [\"badName\"] }`\n */\n ignoreMissingExports?: boolean | Record<string, string[]>;\n\n /**\n * Paths to files that include dynamic imports. These are used by ori to determine which files should be\n * processed by the dynamic-imports plugin.\n */\n dynamicImports?: string[];\n}\n"]}
|
package/lib/allFeatures.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { Feature } from './Feature.js';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const allFeatures: {
|
|
7
7
|
/** Enables the use of builtin dynamic imports. */
|
|
8
|
-
|
|
8
|
+
evaluateDynamicImports: Feature;
|
|
9
9
|
/** Disables the generation of source-maps during build. */
|
|
10
10
|
disableSourceMaps: Feature;
|
|
11
11
|
/** Enables the preemptive enqueueing of dependencies during build. */
|
package/lib/allFeatures.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export const allFeatures = {
|
|
6
6
|
// The comments provide intellisense, and the description strings are used in the help output.
|
|
7
7
|
/** Enables the use of builtin dynamic imports. */
|
|
8
|
-
|
|
8
|
+
evaluateDynamicImports: { description: 'Enables the use of builtin dynamic imports.' },
|
|
9
9
|
/** Disables the generation of source-maps during build. */
|
|
10
10
|
disableSourceMaps: { description: 'Disables the generation of source-maps during build.' },
|
|
11
11
|
/** Enables the preemptive enqueueing of dependencies during build. */
|
package/lib/allFeatures.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8FAA8F;IAE9F,kDAAkD;IAClD,
|
|
1
|
+
{"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,8FAA8F;IAE9F,kDAAkD;IAClD,sBAAsB,EAAE,EAAE,WAAW,EAAE,6CAA6C,EAAa;IAEjG,2DAA2D;IAC3D,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IAErG,sEAAsE;IACtE,mBAAmB,EAAE,EAAE,WAAW,EAAE,iEAAiE,EAAa;IAElH;;;OAGG;IACH,oBAAoB,EAAE;QACpB,WAAW,EACT,iKAAiK;KACzJ;IAEZ,kEAAkE;IAClE,oBAAoB,EAAE,EAAE,WAAW,EAAE,6DAA6D,EAAa;IAE/G,sCAAsC;IACtC,WAAW,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAa;IAE1E,2DAA2D;IAC3D,kBAAkB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IAEtG,uDAAuD;IACvD,aAAa,EAAE,EAAE,WAAW,EAAE,kDAAkD,EAAa;CAC9F,CAAC","sourcesContent":["import type { Feature } from './Feature.js';\n\n/**\n * A set of options for configuring the experience.\n * Features can be set to true to change the default behavior.\n */\nexport const allFeatures = {\n // The comments provide intellisense, and the description strings are used in the help output.\n\n /** Enables the use of builtin dynamic imports. */\n evaluateDynamicImports: { description: 'Enables the use of builtin dynamic imports.' } as Feature,\n\n /** Disables the generation of source-maps during build. */\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n\n /** Enables the preemptive enqueueing of dependencies during build. */\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n\n /**\n * Excludes unused dependencies in the generated config during an init run.\n * This helps trim the dependency graph, reduce the import map, and speed up performance.\n */\n optimizeDependencies: {\n description:\n 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',\n } as Feature,\n\n /** Enables React Native type resolution of .web.ts extensions. */\n resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' } as Feature,\n\n /** Enables the syncing of bundles. */\n syncBundles: { description: 'Enables the syncing of bundles.' } as Feature,\n\n /** Use a single server for both bundles and app assets. */\n useSingleWebServer: { description: 'Use a single server for both bundles and app assets.' } as Feature,\n\n /** Enables the verification of exports during init. */\n verifyExports: { description: 'Enables the verification of exports during init.' } as Feature,\n};\n"]}
|
package/package.json
CHANGED
package/schema/AppConfig.json
CHANGED
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
"Features": {
|
|
472
472
|
"type": "object",
|
|
473
473
|
"properties": {
|
|
474
|
-
"
|
|
474
|
+
"evaluateDynamicImports": {
|
|
475
475
|
"type": "boolean"
|
|
476
476
|
},
|
|
477
477
|
"disableSourceMaps": {
|
|
@@ -532,14 +532,14 @@
|
|
|
532
532
|
"items": {
|
|
533
533
|
"type": "string"
|
|
534
534
|
},
|
|
535
|
-
"description": "The dependencies which should be included when computing the import map. This is primarily used when devDependencies are needed by the app. This often happens when a library has a demo app which relies on devDependencies."
|
|
535
|
+
"description": "The dependencies which should be included when computing the import map. This is primarily used when devDependencies are needed by the app. This often happens when a library has a demo app which relies on devDependencies. Accepts `devDependencies` as a special value to include all devDependencies."
|
|
536
536
|
},
|
|
537
537
|
"excludedDependencies": {
|
|
538
538
|
"type": "array",
|
|
539
539
|
"items": {
|
|
540
540
|
"type": "string"
|
|
541
541
|
},
|
|
542
|
-
"description": "The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it."
|
|
542
|
+
"description": "The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it. Accepts `peerDependencies` as a special value to exclude all peerDependencies."
|
|
543
543
|
},
|
|
544
544
|
"inlinedDependencies": {
|
|
545
545
|
"type": "array",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"items": {
|
|
57
57
|
"type": "string"
|
|
58
58
|
},
|
|
59
|
-
"description": "The dependencies which should be included when computing the import map. This is primarily used when devDependencies are needed by the app. This often happens when a library has a demo app which relies on devDependencies."
|
|
59
|
+
"description": "The dependencies which should be included when computing the import map. This is primarily used when devDependencies are needed by the app. This often happens when a library has a demo app which relies on devDependencies. Accepts `devDependencies` as a special value to include all devDependencies."
|
|
60
60
|
},
|
|
61
61
|
"excludedDependencies": {
|
|
62
62
|
"type": "array",
|
|
63
63
|
"items": {
|
|
64
64
|
"type": "string"
|
|
65
65
|
},
|
|
66
|
-
"description": "The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it."
|
|
66
|
+
"description": "The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it. Accepts `peerDependencies` as a special value to exclude all peerDependencies."
|
|
67
67
|
},
|
|
68
68
|
"inlinedDependencies": {
|
|
69
69
|
"type": "array",
|
package/schema/UserConfig.json
CHANGED
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
"Features": {
|
|
473
473
|
"type": "object",
|
|
474
474
|
"properties": {
|
|
475
|
-
"
|
|
475
|
+
"evaluateDynamicImports": {
|
|
476
476
|
"type": "boolean"
|
|
477
477
|
},
|
|
478
478
|
"disableSourceMaps": {
|
|
@@ -533,14 +533,14 @@
|
|
|
533
533
|
"items": {
|
|
534
534
|
"type": "string"
|
|
535
535
|
},
|
|
536
|
-
"description": "The dependencies which should be included when computing the import map. This is primarily used when devDependencies are needed by the app. This often happens when a library has a demo app which relies on devDependencies."
|
|
536
|
+
"description": "The dependencies which should be included when computing the import map. This is primarily used when devDependencies are needed by the app. This often happens when a library has a demo app which relies on devDependencies. Accepts `devDependencies` as a special value to include all devDependencies."
|
|
537
537
|
},
|
|
538
538
|
"excludedDependencies": {
|
|
539
539
|
"type": "array",
|
|
540
540
|
"items": {
|
|
541
541
|
"type": "string"
|
|
542
542
|
},
|
|
543
|
-
"description": "The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it."
|
|
543
|
+
"description": "The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it. Accepts `peerDependencies` as a special value to exclude all peerDependencies."
|
|
544
544
|
},
|
|
545
545
|
"inlinedDependencies": {
|
|
546
546
|
"type": "array",
|