@ms-cloudpack/config 0.14.8 → 0.16.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/lib/compareOverrides.d.ts +1 -1
- package/lib/compareOverrides.d.ts.map +1 -1
- package/lib/compareOverrides.js.map +1 -1
- package/lib/compareSettings.d.ts +1 -1
- package/lib/compareSettings.js.map +1 -1
- package/lib/configTemplate.d.ts +1 -1
- package/lib/configTemplate.d.ts.map +1 -1
- package/lib/configTemplate.js.map +1 -1
- package/lib/createPackageDefinitions.d.ts +2 -2
- package/lib/createPackageDefinitions.d.ts.map +1 -1
- package/lib/createPackageDefinitions.js +2 -1
- package/lib/createPackageDefinitions.js.map +1 -1
- package/lib/createPackageOverrideTransform.d.ts +1 -1
- package/lib/createPackageOverrideTransform.d.ts.map +1 -1
- package/lib/createPackageOverrideTransform.js +5 -4
- package/lib/createPackageOverrideTransform.js.map +1 -1
- package/lib/getPackageSettings.d.ts +2 -3
- package/lib/getPackageSettings.d.ts.map +1 -1
- package/lib/getPackageSettings.js +14 -20
- package/lib/getPackageSettings.js.map +1 -1
- package/lib/index.d.ts +0 -11
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/mergePackageSettings.d.ts +1 -1
- package/lib/mergePackageSettings.d.ts.map +1 -1
- package/lib/mergePackageSettings.js.map +1 -1
- package/lib/processConfig.d.ts +1 -1
- package/lib/processConfig.d.ts.map +1 -1
- package/lib/processConfig.js.map +1 -1
- package/lib/readConfig.d.ts +1 -1
- package/lib/readConfig.js.map +1 -1
- package/lib/readGeneratedConfig.d.ts +1 -1
- package/lib/readGeneratedConfig.js.map +1 -1
- package/lib/readUserConfig.d.ts +1 -1
- package/lib/readUserConfig.d.ts.map +1 -1
- package/lib/readUserConfig.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/lib/writeGeneratedConfig.d.ts +1 -1
- package/lib/writeGeneratedConfig.js.map +1 -1
- package/lib/writeUserConfig.d.ts +1 -1
- package/lib/writeUserConfig.d.ts.map +1 -1
- package/lib/writeUserConfig.js.map +1 -1
- package/package.json +4 -4
- package/lib/allFeatures.d.ts +0 -13
- package/lib/allFeatures.d.ts.map +0 -1
- package/lib/allFeatures.js +0 -12
- package/lib/allFeatures.js.map +0 -1
- package/lib/types/CloudpackConfig.d.ts +0 -9
- package/lib/types/CloudpackConfig.d.ts.map +0 -1
- package/lib/types/CloudpackConfig.js +0 -2
- package/lib/types/CloudpackConfig.js.map +0 -1
- package/lib/types/DevServer.d.ts +0 -33
- package/lib/types/DevServer.d.ts.map +0 -1
- package/lib/types/DevServer.js +0 -2
- package/lib/types/DevServer.js.map +0 -1
- package/lib/types/Feature.d.ts +0 -4
- package/lib/types/Feature.d.ts.map +0 -1
- package/lib/types/Feature.js +0 -2
- package/lib/types/Feature.js.map +0 -1
- package/lib/types/Features.d.ts +0 -8
- package/lib/types/Features.d.ts.map +0 -1
- package/lib/types/Features.js +0 -2
- package/lib/types/Features.js.map +0 -1
- package/lib/types/GeneratedConfig.d.ts +0 -20
- package/lib/types/GeneratedConfig.d.ts.map +0 -1
- package/lib/types/GeneratedConfig.js +0 -2
- package/lib/types/GeneratedConfig.js.map +0 -1
- package/lib/types/PackageOverride.d.ts +0 -8
- package/lib/types/PackageOverride.d.ts.map +0 -1
- package/lib/types/PackageOverride.js +0 -2
- package/lib/types/PackageOverride.js.map +0 -1
- package/lib/types/PackageSettings.d.ts +0 -50
- package/lib/types/PackageSettings.d.ts.map +0 -1
- package/lib/types/PackageSettings.js +0 -2
- package/lib/types/PackageSettings.js.map +0 -1
- package/lib/types/Route.d.ts +0 -23
- package/lib/types/Route.d.ts.map +0 -1
- package/lib/types/Route.js +0 -2
- package/lib/types/Route.js.map +0 -1
- package/lib/types/TelemetryConfig.d.ts +0 -7
- package/lib/types/TelemetryConfig.d.ts.map +0 -1
- package/lib/types/TelemetryConfig.js +0 -2
- package/lib/types/TelemetryConfig.js.map +0 -1
- package/lib/types/UserConfig.d.ts +0 -56
- package/lib/types/UserConfig.d.ts.map +0 -1
- package/lib/types/UserConfig.js +0 -2
- package/lib/types/UserConfig.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compareOverrides.d.ts","sourceRoot":"","sources":["../src/compareOverrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"compareOverrides.d.ts","sourceRoot":"","sources":["../src/compareOverrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,eAAe,GAAG,MAAM,CAS/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compareOverrides.js","sourceRoot":"","sources":["../src/compareOverrides.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,gBAAgB,CAAC,CAAkB,EAAE,CAAkB;IACrE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,kBAAkB,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC;IACnE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,kBAAkB,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC;IAEnE,IAAI,KAAK,KAAK,KAAK,EAAE;QACnB,OAAO,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;KACzC;IAED,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import type { PackageOverride } from '
|
|
1
|
+
{"version":3,"file":"compareOverrides.js","sourceRoot":"","sources":["../src/compareOverrides.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,gBAAgB,CAAC,CAAkB,EAAE,CAAkB;IACrE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,kBAAkB,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC;IACnE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,kBAAkB,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC;IAEnE,IAAI,KAAK,KAAK,KAAK,EAAE;QACnB,OAAO,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;KACzC;IAED,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import type { PackageOverride } from '@ms-cloudpack/config-types';\n\nexport function compareOverrides(a: PackageOverride, b: PackageOverride): number {\n const { name: aName = '', versionRequirement: aVersion = '*' } = a;\n const { name: bName = '', versionRequirement: bVersion = '*' } = b;\n\n if (aName === bName) {\n return aVersion.localeCompare(bVersion);\n }\n\n return aName.localeCompare(bName);\n}\n"]}
|
package/lib/compareSettings.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { PackageSettings } from '
|
|
1
|
+
import type { PackageSettings } from '@ms-cloudpack/config-types';
|
|
2
2
|
export declare function compareSettings(a: PackageSettings, b: PackageSettings): number;
|
|
3
3
|
//# sourceMappingURL=compareSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compareSettings.js","sourceRoot":"","sources":["../src/compareSettings.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,CAAkB,EAAE,CAAkB;IACpE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;IACpE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;IAEpE,IAAI,KAAK,KAAK,KAAK,EAAE;QACnB,OAAO,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;KACzC;IAED,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import type { PackageSettings } from '
|
|
1
|
+
{"version":3,"file":"compareSettings.js","sourceRoot":"","sources":["../src/compareSettings.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,CAAkB,EAAE,CAAkB;IACpE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;IACpE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;IAEpE,IAAI,KAAK,KAAK,KAAK,EAAE;QACnB,OAAO,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;KACzC;IAED,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import type { PackageSettings } from '@ms-cloudpack/config-types';\n\nexport function compareSettings(a: PackageSettings, b: PackageSettings): number {\n const { name: aName = '', version: aVersion = '*' } = a.match || {};\n const { name: bName = '', version: bVersion = '*' } = b.match || {};\n\n if (aName === bName) {\n return aVersion.localeCompare(bVersion);\n }\n\n return aName.localeCompare(bName);\n}\n"]}
|
package/lib/configTemplate.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configTemplate.d.ts","sourceRoot":"","sources":["../src/configTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"configTemplate.d.ts","sourceRoot":"","sources":["../src/configTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,eAAO,MAAM,cAAc,EAAE,UAuB5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configTemplate.js","sourceRoot":"","sources":["../src/configTemplate.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAe;IACxC,eAAe,EAAE;QACf;YACE,KAAK,EAAE;gBACL,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,GAAG;aACb;YAED,OAAO,EAAE;gBACP,GAAG,EAAE,YAAY;gBACjB,QAAQ,EAAE,WAAW;gBACrB,cAAc,EAAE,iBAAiB;aAClC;YAED,mBAAmB,EAAE,EAAE;YAEvB,oBAAoB,EAAE,EAAE;YACxB,oBAAoB,EAAE,EAAE;YAExB,WAAW,EAAE,SAAS;YACtB,cAAc,EAAE,SAAS;SAC1B;KACF;CACF,CAAC","sourcesContent":["import type { UserConfig } from '
|
|
1
|
+
{"version":3,"file":"configTemplate.js","sourceRoot":"","sources":["../src/configTemplate.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAe;IACxC,eAAe,EAAE;QACf;YACE,KAAK,EAAE;gBACL,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,GAAG;aACb;YAED,OAAO,EAAE;gBACP,GAAG,EAAE,YAAY;gBACjB,QAAQ,EAAE,WAAW;gBACrB,cAAc,EAAE,iBAAiB;aAClC;YAED,mBAAmB,EAAE,EAAE;YAEvB,oBAAoB,EAAE,EAAE;YACxB,oBAAoB,EAAE,EAAE;YAExB,WAAW,EAAE,SAAS;YACtB,cAAc,EAAE,SAAS;SAC1B;KACF;CACF,CAAC","sourcesContent":["import type { UserConfig } from '@ms-cloudpack/config-types';\n\nexport const configTemplate: UserConfig = {\n packageSettings: [\n {\n match: {\n name: 'package-name',\n version: '*',\n },\n\n exports: {\n '.': './index.js',\n './path': './path.js',\n './other-path': './other-path.js',\n },\n\n inlinedDependencies: [],\n\n includedDependencies: [],\n excludedDependencies: [],\n\n bundlerType: undefined,\n bundlerOptions: undefined,\n },\n ],\n};\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';
|
|
2
|
-
import type { CloudpackConfig } from '
|
|
2
|
+
import type { CloudpackConfig } from '@ms-cloudpack/config-types';
|
|
3
3
|
/**
|
|
4
4
|
* Given a Cloudpack config, create a package definitions cache with transforms resulting from settings defined
|
|
5
5
|
* within the config.
|
|
6
6
|
*/
|
|
7
|
-
export declare function createPackageDefinitions(
|
|
7
|
+
export declare function createPackageDefinitions(params: {
|
|
8
8
|
config: CloudpackConfig;
|
|
9
9
|
}): PackageDefinitionsCache;
|
|
10
10
|
//# sourceMappingURL=createPackageDefinitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPackageDefinitions.d.ts","sourceRoot":"","sources":["../src/createPackageDefinitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,
|
|
1
|
+
{"version":3,"file":"createPackageDefinitions.d.ts","sourceRoot":"","sources":["../src/createPackageDefinitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,GAAG,uBAAuB,CAOrG"}
|
|
@@ -4,7 +4,8 @@ import { createPackageOverrideTransform } from './createPackageOverrideTransform
|
|
|
4
4
|
* Given a Cloudpack config, create a package definitions cache with transforms resulting from settings defined
|
|
5
5
|
* within the config.
|
|
6
6
|
*/
|
|
7
|
-
export function createPackageDefinitions(
|
|
7
|
+
export function createPackageDefinitions(params) {
|
|
8
|
+
const { config } = params;
|
|
8
9
|
const packages = new PackageDefinitions(undefined, config);
|
|
9
10
|
packages.registerTransform((newConfig) => createPackageOverrideTransform(newConfig));
|
|
10
11
|
return packages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPackageDefinitions.js","sourceRoot":"","sources":["../src/createPackageDefinitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAGrF;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createPackageDefinitions.js","sourceRoot":"","sources":["../src/createPackageDefinitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAGrF;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAmC;IAC1E,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,MAAM,QAAQ,GAAG,IAAI,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAE3D,QAAQ,CAAC,iBAAiB,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,8BAA8B,CAAC,SAA4B,CAAC,CAAC,CAAC;IAExG,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\nimport { PackageDefinitions } from '@ms-cloudpack/package-utilities';\nimport { createPackageOverrideTransform } from './createPackageOverrideTransform.js';\nimport type { CloudpackConfig } from '@ms-cloudpack/config-types';\n\n/**\n * Given a Cloudpack config, create a package definitions cache with transforms resulting from settings defined\n * within the config.\n */\nexport function createPackageDefinitions(params: { config: CloudpackConfig }): PackageDefinitionsCache {\n const { config } = params;\n const packages = new PackageDefinitions(undefined, config);\n\n packages.registerTransform((newConfig) => createPackageOverrideTransform(newConfig as CloudpackConfig));\n\n return packages;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PackageDefinitionTransform } from '@ms-cloudpack/bundler-types';
|
|
2
|
-
import type { CloudpackConfig } from '
|
|
2
|
+
import type { CloudpackConfig } from '@ms-cloudpack/config-types';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a transform to be registered with a PackageDefinitions registry for applying overrides to from the config
|
|
5
5
|
* to package.json definitions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPackageOverrideTransform.d.ts","sourceRoot":"","sources":["../src/createPackageOverrideTransform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"createPackageOverrideTransform.d.ts","sourceRoot":"","sources":["../src/createPackageOverrideTransform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAIlE;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,eAAe,GAAG,0BAA0B,CAoDlG"}
|
|
@@ -5,15 +5,16 @@ import { getExportsMap } from '@ms-cloudpack/package-utilities';
|
|
|
5
5
|
* to package.json definitions.
|
|
6
6
|
*/
|
|
7
7
|
export function createPackageOverrideTransform(config) {
|
|
8
|
-
return async (
|
|
9
|
-
const { name = '', version = '' } =
|
|
8
|
+
return async ({ definition, packagePath, packages }) => {
|
|
9
|
+
const { name = '', version = '' } = definition;
|
|
10
10
|
const { userPackageSettings, generatedPackageSettings } = getPackageSettings({ name, version, config });
|
|
11
11
|
if (!userPackageSettings && !generatedPackageSettings) {
|
|
12
12
|
return undefined;
|
|
13
13
|
}
|
|
14
14
|
const result = {
|
|
15
|
-
...
|
|
16
|
-
exports: userPackageSettings?.exports ||
|
|
15
|
+
...definition,
|
|
16
|
+
exports: userPackageSettings?.exports ||
|
|
17
|
+
(await getExportsMap({ packagePath, disableTransforms: true }, { packages, config })),
|
|
17
18
|
};
|
|
18
19
|
// If we have generated overrides, apply them.
|
|
19
20
|
if (generatedPackageSettings?.exports) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPackageOverrideTransform.js","sourceRoot":"","sources":["../src/createPackageOverrideTransform.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE;;;GAGG;AACH,MAAM,UAAU,8BAA8B,CAAC,MAAuB;IACpE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"createPackageOverrideTransform.js","sourceRoot":"","sources":["../src/createPackageOverrideTransform.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE;;;GAGG;AACH,MAAM,UAAU,8BAA8B,CAAC,MAAuB;IACpE,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE;QACrD,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,GAAG,UAAU,CAAC;QAC/C,MAAM,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,GAAG,kBAAkB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;QAExG,IAAI,CAAC,mBAAmB,IAAI,CAAC,wBAAwB,EAAE;YACrD,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,MAAM,GAAG;YACb,GAAG,UAAU;YACb,OAAO,EACL,mBAAmB,EAAE,OAAO;gBAC5B,CAAC,MAAM,aAAa,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;SACxF,CAAC;QAEF,8CAA8C;QAC9C,IAAI,wBAAwB,EAAE,OAAO,EAAE;YACrC,MAAM,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;SACrE;QAED,8CAA8C;QAC9C,MAAM,oBAAoB,GAAG;YAC3B,GAAG,CAAC,mBAAmB,EAAE,oBAAoB,IAAI,EAAE,CAAC;YACpD,GAAG,CAAC,wBAAwB,EAAE,oBAAoB,IAAI,EAAE,CAAC;SAC1D,CAAC;QAEF,KAAK,MAAM,GAAG,IAAI,oBAAoB,EAAE;YACtC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,GAAG,CAAC,EAAE;gBAC/B,mDAAmD;gBACnD,MAAM,CAAC,YAAY,KAAK,EAAE,CAAC;gBAE3B,4DAA4D;gBAC5D,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC;oBACtB,MAAM,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,gBAAgB,EAAE,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,oBAAoB,EAAE,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;aAChH;SACF;QAED,iDAAiD;QACjD,MAAM,oBAAoB,GAAG;YAC3B,GAAG,CAAC,mBAAmB,EAAE,oBAAoB,IAAI,EAAE,CAAC;YACpD,GAAG,CAAC,wBAAwB,EAAE,oBAAoB,IAAI,EAAE,CAAC;SAC1D,CAAC;QAEF,IAAI,oBAAoB,EAAE,MAAM,EAAE;YAChC,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,WAAW,CACtC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,oBAAoB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAClG,CAAC;SACH;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import type { PackageDefinitionTransform } from '@ms-cloudpack/bundler-types';\nimport type { CloudpackConfig } from '@ms-cloudpack/config-types';\nimport { getPackageSettings } from './getPackageSettings.js';\nimport { getExportsMap } from '@ms-cloudpack/package-utilities';\n\n/**\n * Creates a transform to be registered with a PackageDefinitions registry for applying overrides to from the config\n * to package.json definitions.\n */\nexport function createPackageOverrideTransform(config: CloudpackConfig): PackageDefinitionTransform {\n return async ({ definition, packagePath, packages }) => {\n const { name = '', version = '' } = definition;\n const { userPackageSettings, generatedPackageSettings } = getPackageSettings({ name, version, config });\n\n if (!userPackageSettings && !generatedPackageSettings) {\n return undefined;\n }\n\n const result = {\n ...definition,\n exports:\n userPackageSettings?.exports ||\n (await getExportsMap({ packagePath, disableTransforms: true }, { packages, config })),\n };\n\n // If we have generated overrides, apply them.\n if (generatedPackageSettings?.exports) {\n result.exports = [result.exports, generatedPackageSettings.exports];\n }\n\n // If we have included dependencies, add them.\n const includedDependencies = [\n ...(userPackageSettings?.includedDependencies || []),\n ...(generatedPackageSettings?.includedDependencies || []),\n ];\n\n for (const dep of includedDependencies) {\n if (!result.dependencies?.[dep]) {\n // Initialize dependencies map if it doesn't exist.\n result.dependencies ??= {};\n\n // Add the dependency from other sources, or use a wildcard.\n result.dependencies[dep] =\n result.devDependencies?.[dep] || result.peerDependencies?.[dep] || result.optionalDependencies?.[dep] || '*';\n }\n }\n\n // If we have excluded dependencies, remove them.\n const excludedDependencies = [\n ...(userPackageSettings?.excludedDependencies || []),\n ...(generatedPackageSettings?.excludedDependencies || []),\n ];\n\n if (excludedDependencies?.length) {\n result.dependencies = Object.fromEntries(\n Object.entries(result.dependencies || {}).filter(([dep]) => !excludedDependencies?.includes(dep)),\n );\n }\n\n return result;\n };\n}\n"]}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { CloudpackConfig } from '
|
|
2
|
-
import type { PackageSettings } from './types/PackageSettings.js';
|
|
1
|
+
import type { PackageSettings, CloudpackConfig } from '@ms-cloudpack/config-types';
|
|
3
2
|
/**
|
|
4
3
|
* Gets the single set of package settings for a given package using the given config.
|
|
5
4
|
*/
|
|
6
|
-
export declare function getPackageSettings(
|
|
5
|
+
export declare function getPackageSettings(params: {
|
|
7
6
|
name: string;
|
|
8
7
|
version: string;
|
|
9
8
|
config: CloudpackConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPackageSettings.d.ts","sourceRoot":"","sources":["../src/getPackageSettings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"getPackageSettings.d.ts","sourceRoot":"","sources":["../src/getPackageSettings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEnF;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG;IACF,mBAAmB,EAAE,eAAe,GAAG,SAAS,CAAC;IACjD,wBAAwB,EAAE,eAAe,GAAG,SAAS,CAAC;CACvD,CAOA"}
|
|
@@ -3,29 +3,23 @@ import { mergePackageSettings } from './mergePackageSettings.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Gets the single set of package settings for a given package using the given config.
|
|
5
5
|
*/
|
|
6
|
-
export function getPackageSettings(
|
|
7
|
-
const
|
|
8
|
-
const generatedPackageSettings = config.generated?.packageSettings?.filter(filterPackageSettings(name, version));
|
|
6
|
+
export function getPackageSettings(params) {
|
|
7
|
+
const { config } = params;
|
|
9
8
|
return {
|
|
10
|
-
userPackageSettings:
|
|
11
|
-
|
|
12
|
-
? userPackageSettings?.[0]
|
|
13
|
-
: mergePackageSettings(userPackageSettings)
|
|
14
|
-
: undefined,
|
|
15
|
-
generatedPackageSettings: generatedPackageSettings?.length
|
|
16
|
-
? firstMatch
|
|
17
|
-
? generatedPackageSettings?.[0]
|
|
18
|
-
: mergePackageSettings(generatedPackageSettings)
|
|
19
|
-
: undefined,
|
|
9
|
+
userPackageSettings: filterSettings({ ...params, packageSettings: config.packageSettings }),
|
|
10
|
+
generatedPackageSettings: filterSettings({ ...params, packageSettings: config.generated?.packageSettings }),
|
|
20
11
|
};
|
|
21
12
|
}
|
|
22
13
|
/**
|
|
23
|
-
*
|
|
14
|
+
* Get the package settings for a given package name and version.
|
|
24
15
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
function filterSettings(params) {
|
|
17
|
+
const { name, version, packageSettings, firstMatch } = params;
|
|
18
|
+
const filteredSettings = packageSettings?.filter(({ match }) => match?.name === name && (!match.version || satisfies(version, match.version)));
|
|
19
|
+
return filteredSettings?.length
|
|
20
|
+
? firstMatch
|
|
21
|
+
? filteredSettings[0]
|
|
22
|
+
: mergePackageSettings(filteredSettings)
|
|
23
|
+
: undefined;
|
|
24
|
+
}
|
|
31
25
|
//# sourceMappingURL=getPackageSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPackageSettings.js","sourceRoot":"","sources":["../src/getPackageSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"getPackageSettings.js","sourceRoot":"","sources":["../src/getPackageSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,MASlC;IAIC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAE1B,OAAO;QACL,mBAAmB,EAAE,cAAc,CAAC,EAAE,GAAG,MAAM,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC;QAC3F,wBAAwB,EAAE,cAAc,CAAC,EAAE,GAAG,MAAM,EAAE,eAAe,EAAE,MAAM,CAAC,SAAS,EAAE,eAAe,EAAE,CAAC;KAC5G,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CACrB,MAEC;IAED,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAE9D,MAAM,gBAAgB,GAAG,eAAe,EAAE,MAAM,CAC9C,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAC7F,CAAC;IAEF,OAAO,gBAAgB,EAAE,MAAM;QAC7B,CAAC,CAAC,UAAU;YACV,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;YACrB,CAAC,CAAC,oBAAoB,CAAC,gBAAgB,CAAC;QAC1C,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC","sourcesContent":["import { satisfies } from 'semver';\nimport { mergePackageSettings } from './mergePackageSettings.js';\nimport type { PackageSettings, CloudpackConfig } from '@ms-cloudpack/config-types';\n\n/**\n * Gets the single set of package settings for a given package using the given config.\n */\nexport function getPackageSettings(params: {\n name: string;\n version: string;\n config: CloudpackConfig;\n /**\n * If true, only the first matching package settings will be returned, rather than the merge of all viable settings.\n * This is useful in the `init` case, where we want to attach new settings to the first matching entry.\n */\n firstMatch?: boolean;\n}): {\n userPackageSettings: PackageSettings | undefined;\n generatedPackageSettings: PackageSettings | undefined;\n} {\n const { config } = params;\n\n return {\n userPackageSettings: filterSettings({ ...params, packageSettings: config.packageSettings }),\n generatedPackageSettings: filterSettings({ ...params, packageSettings: config.generated?.packageSettings }),\n };\n}\n\n/**\n * Get the package settings for a given package name and version.\n */\nfunction filterSettings(\n params: Omit<Parameters<typeof getPackageSettings>[0], 'config'> & {\n packageSettings: PackageSettings[] | undefined;\n },\n): PackageSettings | undefined {\n const { name, version, packageSettings, firstMatch } = params;\n\n const filteredSettings = packageSettings?.filter(\n ({ match }) => match?.name === name && (!match.version || satisfies(version, match.version)),\n );\n\n return filteredSettings?.length\n ? firstMatch\n ? filteredSettings[0]\n : mergePackageSettings(filteredSettings)\n : undefined;\n}\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { allFeatures } from './allFeatures.js';
|
|
2
1
|
export { configTemplate } from './configTemplate.js';
|
|
3
2
|
export { generatedConfigFileName, userConfigFileName } from './constants.js';
|
|
4
3
|
export { createPackageDefinitions } from './createPackageDefinitions.js';
|
|
@@ -7,16 +6,6 @@ export { getPackageSettings } from './getPackageSettings.js';
|
|
|
7
6
|
export { readConfig } from './readConfig.js';
|
|
8
7
|
export { readGeneratedConfig } from './readGeneratedConfig.js';
|
|
9
8
|
export { readUserConfig } from './readUserConfig.js';
|
|
10
|
-
export type { CloudpackConfig } from './types/CloudpackConfig.js';
|
|
11
|
-
export type { DevServer } from './types/DevServer.js';
|
|
12
|
-
export type { Feature } from './types/Feature.js';
|
|
13
|
-
export type { Features } from './types/Features.js';
|
|
14
|
-
export type { GeneratedConfig } from './types/GeneratedConfig.js';
|
|
15
|
-
export type { PackageOverride } from './types/PackageOverride.js';
|
|
16
|
-
export type { PackageSettings } from './types/PackageSettings.js';
|
|
17
|
-
export type { Route } from './types/Route.js';
|
|
18
|
-
export type { TelemetryConfig } from './types/TelemetryConfig.js';
|
|
19
|
-
export type { UserConfig } from './types/UserConfig.js';
|
|
20
9
|
export { writeGeneratedConfig } from './writeGeneratedConfig.js';
|
|
21
10
|
export { writeUserConfig } from './writeUserConfig.js';
|
|
22
11
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export { configTemplate } from './configTemplate.js';\nexport { generatedConfigFileName, userConfigFileName } from './constants.js';\nexport { createPackageDefinitions } from './createPackageDefinitions.js';\nexport { getConfigPath } from './getConfigPath.js';\nexport { getPackageSettings } from './getPackageSettings.js';\nexport { readConfig } from './readConfig.js';\nexport { readGeneratedConfig } from './readGeneratedConfig.js';\nexport { readUserConfig } from './readUserConfig.js';\nexport { writeGeneratedConfig } from './writeGeneratedConfig.js';\nexport { writeUserConfig } from './writeUserConfig.js';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergePackageSettings.d.ts","sourceRoot":"","sources":["../src/mergePackageSettings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mergePackageSettings.d.ts","sourceRoot":"","sources":["../src/mergePackageSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAsB,MAAM,4BAA4B,CAAC;AAEtF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,eAAe,EAAE,GAAG,eAAe,CA+CjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergePackageSettings.js","sourceRoot":"","sources":["../src/mergePackageSettings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mergePackageSettings.js","sourceRoot":"","sources":["../src/mergePackageSettings.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAA2B;IAC9D,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QAC9C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAE5B,IAAI,OAAO,EAAE;YACX,iDAAiD;YACjD,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE;gBAChB,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;aACvB;iBAAM;gBACL,iEAAiE;gBACjE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;oBAC/B,GAAG,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;iBAC7B;gBAED,iGAAiG;gBACjG,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;oBACzB,GAAG,CAAC,OAAgC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;iBACxD;qBAAM;oBACJ,GAAG,CAAC,OAAgC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;iBACrD;aACF;SACF;QAED,IAAI,OAAO,CAAC,oBAAoB,EAAE;YAChC,GAAG,CAAC,oBAAoB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,oBAAoB,IAAI,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;SACnG;QAED,IAAI,OAAO,CAAC,oBAAoB,EAAE;YAChC,GAAG,CAAC,oBAAoB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,oBAAoB,IAAI,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;SACnG;QAED,IAAI,OAAO,CAAC,mBAAmB,EAAE;YAC/B,GAAG,CAAC,mBAAmB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,mBAAmB,IAAI,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;SAChG;QAED,IAAI,OAAO,CAAC,WAAW,EAAE;YACvB,GAAG,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;SACvC;QAED,IAAI,OAAO,CAAC,cAAc,EAAE;YAC1B,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;SAC7C;QAED,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAqB,CAAC,CAAC;IAE1B,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type { PackageSettings, PackageJsonExports } from '@ms-cloudpack/config-types';\n\n/**\n * Merges package settings together. Takes care to merge exports maps correctly.\n */\nexport function mergePackageSettings(settings: PackageSettings[]): PackageSettings {\n const result = settings.reduce((acc, setting) => {\n const { exports } = setting;\n\n if (exports) {\n // If we don't have any exports yet, just set it.\n if (!acc.exports) {\n acc.exports = exports;\n } else {\n // If we have an exports but it's not an array, make it an array.\n if (!Array.isArray(acc.exports)) {\n acc.exports = [acc.exports];\n }\n\n // If the accumulated exports is an array, expand the array to `push`; else push the single item.\n if (Array.isArray(exports)) {\n (acc.exports as PackageJsonExports[]).push(...exports);\n } else {\n (acc.exports as PackageJsonExports[]).push(exports);\n }\n }\n }\n\n if (setting.includedDependencies) {\n acc.includedDependencies = [...(acc.includedDependencies || []), ...setting.includedDependencies];\n }\n\n if (setting.excludedDependencies) {\n acc.excludedDependencies = [...(acc.excludedDependencies || []), ...setting.excludedDependencies];\n }\n\n if (setting.inlinedDependencies) {\n acc.inlinedDependencies = [...(acc.inlinedDependencies || []), ...setting.inlinedDependencies];\n }\n\n if (setting.bundlerType) {\n acc.bundlerType = setting.bundlerType;\n }\n\n if (setting.bundlerOptions) {\n acc.bundlerOptions = setting.bundlerOptions;\n }\n\n return acc;\n }, {} as PackageSettings);\n\n return result;\n}\n"]}
|
package/lib/processConfig.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processConfig.d.ts","sourceRoot":"","sources":["../src/processConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,
|
|
1
|
+
{"version":3,"file":"processConfig.d.ts","sourceRoot":"","sources":["../src/processConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,4BAA4B,CAAC;AAEnF;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,eAAe,QAmBrD"}
|
package/lib/processConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processConfig.js","sourceRoot":"","sources":["../src/processConfig.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,MAAwB;IACpD,6CAA6C;IAC7C,MAAM,gBAAgB,GAAG,MAAM,EAAE,gBAAgB,CAAC;IAElD,8EAA8E;IAC9E,IAAI,gBAAgB,EAAE;QACpB,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC;QAEtD,KAAK,MAAM,QAAQ,IAAI,gBAAgB,IAAI,EAAE,EAAE;YAC7C,MAAM,QAAQ,GAAoB;gBAChC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,kBAAkB,EAAE;gBACpE,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,OAAO;aACpC,CAAC;YACF,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACvC;QAED,6CAA6C;QAC7C,OAAO,MAAM,CAAC,gBAAgB,CAAC;KAChC;AACH,CAAC","sourcesContent":["import type { GeneratedConfig, PackageSettings } from '
|
|
1
|
+
{"version":3,"file":"processConfig.js","sourceRoot":"","sources":["../src/processConfig.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,MAAwB;IACpD,6CAA6C;IAC7C,MAAM,gBAAgB,GAAG,MAAM,EAAE,gBAAgB,CAAC;IAElD,8EAA8E;IAC9E,IAAI,gBAAgB,EAAE;QACpB,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI,EAAE,CAAC;QAEtD,KAAK,MAAM,QAAQ,IAAI,gBAAgB,IAAI,EAAE,EAAE;YAC7C,MAAM,QAAQ,GAAoB;gBAChC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,kBAAkB,EAAE;gBACpE,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,OAAO;aACpC,CAAC;YACF,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACvC;QAED,6CAA6C;QAC7C,OAAO,MAAM,CAAC,gBAAgB,CAAC;KAChC;AACH,CAAC","sourcesContent":["import type { GeneratedConfig, PackageSettings } from '@ms-cloudpack/config-types';\n\n/**\n * An internal function for processing a config object after reading the json values.\n */\nexport function processConfig(config?: GeneratedConfig) {\n // eslint-disable-next-line etc/no-deprecated\n const packageOverrides = config?.packageOverrides;\n\n // Convert package overrides into settings to preserve the deprecated support.\n if (packageOverrides) {\n config.packageSettings = config.packageSettings || [];\n\n for (const override of packageOverrides || []) {\n const settings: PackageSettings = {\n match: { name: override.name, version: override.versionRequirement },\n exports: override.overrides.exports,\n };\n config.packageSettings.push(settings);\n }\n\n // eslint-disable-next-line etc/no-deprecated\n delete config.packageOverrides;\n }\n}\n"]}
|
package/lib/readConfig.d.ts
CHANGED
package/lib/readConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readConfig.js","sourceRoot":"","sources":["../src/readConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,OAAe;IAC9C,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACjH,MAAM,MAAM,GAAoB;QAC9B,SAAS,EAAE,eAAe;QAC1B,GAAG,UAAU;KACd,CAAC;IAEF,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAEhC,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type { CloudpackConfig } from '
|
|
1
|
+
{"version":3,"file":"readConfig.js","sourceRoot":"","sources":["../src/readConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,OAAe;IAC9C,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACjH,MAAM,MAAM,GAAoB;QAC9B,SAAS,EAAE,eAAe;QAC1B,GAAG,UAAU;KACd,CAAC;IAEF,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAEhC,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type { CloudpackConfig } from '@ms-cloudpack/config-types';\nimport { processConfig } from './processConfig.js';\nimport { readUserConfig } from './readUserConfig.js';\nimport { readGeneratedConfig } from './readGeneratedConfig.js';\n\n/**\n * Reads the config file asynchronously (and merges generated config into the result.)\n */\nexport async function readConfig(appPath: string): Promise<CloudpackConfig> {\n const [userConfig, generatedConfig] = await Promise.all([readUserConfig(appPath), readGeneratedConfig(appPath)]);\n const config: CloudpackConfig = {\n generated: generatedConfig,\n ...userConfig,\n };\n\n processConfig(config.generated);\n\n return config;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GeneratedConfig } from '
|
|
1
|
+
import type { GeneratedConfig } from '@ms-cloudpack/config-types';
|
|
2
2
|
/**
|
|
3
3
|
* Reads the generated config file asynchronously. This is only useful for the `init` verb generating or updated
|
|
4
4
|
* the generated overrides. For a full merged representation of config, use `readConfig` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readGeneratedConfig.js","sourceRoot":"","sources":["../src/readGeneratedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,OAAe;IACvD,MAAM,EAAE,mBAAmB,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAEvD,OAAO,CAAC,MAAM,QAAQ,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AAC5F,CAAC","sourcesContent":["import { readJson } from '@ms-cloudpack/json-utilities';\nimport { getConfigPath } from './getConfigPath.js';\nimport type { GeneratedConfig } from '
|
|
1
|
+
{"version":3,"file":"readGeneratedConfig.js","sourceRoot":"","sources":["../src/readGeneratedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,OAAe;IACvD,MAAM,EAAE,mBAAmB,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAEvD,OAAO,CAAC,MAAM,QAAQ,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AAC5F,CAAC","sourcesContent":["import { readJson } from '@ms-cloudpack/json-utilities';\nimport { getConfigPath } from './getConfigPath.js';\nimport type { GeneratedConfig } from '@ms-cloudpack/config-types';\n\n/**\n * Reads the generated config file asynchronously. This is only useful for the `init` verb generating or updated\n * the generated overrides. For a full merged representation of config, use `readConfig` instead.\n */\nexport async function readGeneratedConfig(appPath: string): Promise<GeneratedConfig> {\n const { generatedConfigPath } = getConfigPath(appPath);\n\n return (await readJson(generatedConfigPath, { verbose: true, mode: 'permissive' })) || {};\n}\n"]}
|
package/lib/readUserConfig.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UserConfig } from '
|
|
1
|
+
import type { UserConfig } from '@ms-cloudpack/config-types';
|
|
2
2
|
/**
|
|
3
3
|
* Reads the user config file asynchronously. Note this is only useful for making modifications to the user config.
|
|
4
4
|
* For a full merged representation of config, use `readConfig` instead.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readUserConfig.d.ts","sourceRoot":"","sources":["../src/readUserConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"readUserConfig.d.ts","sourceRoot":"","sources":["../src/readUserConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;GAGG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAIzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readUserConfig.js","sourceRoot":"","sources":["../src/readUserConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAAe;IAClD,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAElD,OAAO,CAAC,MAAM,QAAQ,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AACvF,CAAC","sourcesContent":["import { readJson } from '@ms-cloudpack/json-utilities';\nimport { getConfigPath } from './getConfigPath.js';\nimport type { UserConfig } from '
|
|
1
|
+
{"version":3,"file":"readUserConfig.js","sourceRoot":"","sources":["../src/readUserConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAAe;IAClD,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAElD,OAAO,CAAC,MAAM,QAAQ,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AACvF,CAAC","sourcesContent":["import { readJson } from '@ms-cloudpack/json-utilities';\nimport { getConfigPath } from './getConfigPath.js';\nimport type { UserConfig } from '@ms-cloudpack/config-types';\n\n/**\n * Reads the user config file asynchronously. Note this is only useful for making modifications to the user config.\n * For a full merged representation of config, use `readConfig` instead.\n */\nexport async function readUserConfig(appPath: string): Promise<UserConfig> {\n const { userConfigPath } = getConfigPath(appPath);\n\n return (await readJson(userConfigPath, { verbose: true, mode: 'permissive' })) || {};\n}\n"]}
|
package/lib/tsdoc-metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeGeneratedConfig.js","sourceRoot":"","sources":["../src/writeGeneratedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,MAAuB,EAAE,OAAe;IACjF,MAAM,EAAE,mBAAmB,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAEvD,qFAAqF;IACrF,6CAA6C;IAC7C,MAAM,EAAE,gBAAgB,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAE9D,MAAM,cAAc,GAAG,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IAC9D,MAAM,eAAe,GAAG,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAEjE,OAAO,SAAS,CAAC,mBAAmB,EAAE;QACpC,GAAG,IAAI;QACP,eAAe,EAAE,cAAc;QAC/B,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { writeJson } from '@ms-cloudpack/json-utilities';\nimport type { GeneratedConfig } from '
|
|
1
|
+
{"version":3,"file":"writeGeneratedConfig.js","sourceRoot":"","sources":["../src/writeGeneratedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,MAAuB,EAAE,OAAe;IACjF,MAAM,EAAE,mBAAmB,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAEvD,qFAAqF;IACrF,6CAA6C;IAC7C,MAAM,EAAE,gBAAgB,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAE9D,MAAM,cAAc,GAAG,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IAC9D,MAAM,eAAe,GAAG,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAEjE,OAAO,SAAS,CAAC,mBAAmB,EAAE;QACpC,GAAG,IAAI;QACP,eAAe,EAAE,cAAc;QAC/B,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { writeJson } from '@ms-cloudpack/json-utilities';\nimport type { GeneratedConfig } from '@ms-cloudpack/config-types';\nimport { compareSettings } from './compareSettings.js';\nimport { getConfigPath } from './getConfigPath.js';\nimport { compareOverrides } from './compareOverrides.js';\n\n/**\n * Writes generated config. This is used for `init` to provide package overrides needed.\n */\nexport async function writeGeneratedConfig(config: GeneratedConfig, appPath: string) {\n const { generatedConfigPath } = getConfigPath(appPath);\n\n // Ensure package overrides are sorted based on package name and version requirement.\n // eslint-disable-next-line etc/no-deprecated\n const { packageOverrides, packageSettings, ...rest } = config;\n\n const sortedSettings = packageSettings?.sort(compareSettings);\n const sortedOverrides = packageOverrides?.sort(compareOverrides);\n\n return writeJson(generatedConfigPath, {\n ...rest,\n packageSettings: sortedSettings,\n packageOverrides: sortedOverrides,\n });\n}\n"]}
|
package/lib/writeUserConfig.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UserConfig } from '
|
|
1
|
+
import type { UserConfig } from '@ms-cloudpack/config-types';
|
|
2
2
|
/**
|
|
3
3
|
* Writes updates to the user config. Unlike writing generated config, this does not sort existing package settings,
|
|
4
4
|
* with the intent of minimizing churn.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeUserConfig.d.ts","sourceRoot":"","sources":["../src/writeUserConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"writeUserConfig.d.ts","sourceRoot":"","sources":["../src/writeUserConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAG7D;;;GAGG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,iBAIxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeUserConfig.js","sourceRoot":"","sources":["../src/writeUserConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAAkB,EAAE,OAAe;IACvE,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAElD,OAAO,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC","sourcesContent":["import { writeJson } from '@ms-cloudpack/json-utilities';\nimport type { UserConfig } from '
|
|
1
|
+
{"version":3,"file":"writeUserConfig.js","sourceRoot":"","sources":["../src/writeUserConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAAkB,EAAE,OAAe;IACvE,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAElD,OAAO,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC","sourcesContent":["import { writeJson } from '@ms-cloudpack/json-utilities';\nimport type { UserConfig } from '@ms-cloudpack/config-types';\nimport { getConfigPath } from './getConfigPath.js';\n\n/**\n * Writes updates to the user config. Unlike writing generated config, this does not sort existing package settings,\n * with the intent of minimizing churn.\n */\nexport async function writeUserConfig(config: UserConfig, appPath: string) {\n const { userConfigPath } = getConfigPath(appPath);\n\n return writeJson(userConfigPath, config);\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Configuration handling for cloudpack.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@ms-cloudpack/bundler-types": "^0.
|
|
18
|
-
"@ms-cloudpack/
|
|
17
|
+
"@ms-cloudpack/bundler-types": "^1.0.0",
|
|
18
|
+
"@ms-cloudpack/config-types": "^0.1.0",
|
|
19
19
|
"@ms-cloudpack/json-utilities": "^0.1.0",
|
|
20
|
-
"@ms-cloudpack/package-utilities": "^5.
|
|
20
|
+
"@ms-cloudpack/package-utilities": "^5.5.0",
|
|
21
21
|
"semver": "^7.3.7"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
package/lib/allFeatures.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Feature } from './types/Feature.js';
|
|
2
|
-
/**
|
|
3
|
-
* A set of options for configuring the experience. Features can be set to true to change the default
|
|
4
|
-
* behavior.
|
|
5
|
-
*/
|
|
6
|
-
export declare const allFeatures: {
|
|
7
|
-
disableSourceMaps: Feature;
|
|
8
|
-
enqueueDependencies: Feature;
|
|
9
|
-
cacheInternalPackages: Feature;
|
|
10
|
-
enableLage: Feature;
|
|
11
|
-
hashPackages: Feature;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=allFeatures.d.ts.map
|
package/lib/allFeatures.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allFeatures.d.ts","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC"}
|
package/lib/allFeatures.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A set of options for configuring the experience. Features can be set to true to change the default
|
|
3
|
-
* behavior.
|
|
4
|
-
*/
|
|
5
|
-
export const allFeatures = {
|
|
6
|
-
disableSourceMaps: { description: 'Disables the generation of source-maps during build.' },
|
|
7
|
-
enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' },
|
|
8
|
-
cacheInternalPackages: { description: 'Enables the reuse of prebuild assets for internal packages.' },
|
|
9
|
-
enableLage: { description: 'Enables the use of lage for running tasks.' },
|
|
10
|
-
hashPackages: { description: 'Enables the use of hashing to break cache.' },
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=allFeatures.js.map
|
package/lib/allFeatures.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IACrG,mBAAmB,EAAE,EAAE,WAAW,EAAE,iEAAiE,EAAa;IAClH,qBAAqB,EAAE,EAAE,WAAW,EAAE,6DAA6D,EAAa;IAChH,UAAU,EAAE,EAAE,WAAW,EAAE,4CAA4C,EAAa;IACpF,YAAY,EAAE,EAAE,WAAW,EAAE,4CAA4C,EAAa;CACvF,CAAC","sourcesContent":["import type { Feature } from './types/Feature.js';\n\n/**\n * A set of options for configuring the experience. Features can be set to true to change the default\n * behavior.\n */\nexport const allFeatures = {\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n cacheInternalPackages: { description: 'Enables the reuse of prebuild assets for internal packages.' } as Feature,\n enableLage: { description: 'Enables the use of lage for running tasks.' } as Feature,\n hashPackages: { description: 'Enables the use of hashing to break cache.' } as Feature,\n};\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { GeneratedConfig } from './GeneratedConfig.js';
|
|
2
|
-
import type { UserConfig } from './UserConfig.js';
|
|
3
|
-
/**
|
|
4
|
-
* The merged result of user-provided and generated configuration for Cloudpack.
|
|
5
|
-
*/
|
|
6
|
-
export type CloudpackConfig = UserConfig & {
|
|
7
|
-
generated: GeneratedConfig;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=CloudpackConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CloudpackConfig.d.ts","sourceRoot":"","sources":["../../src/types/CloudpackConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;GAEG;AAEH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IACzC,SAAS,EAAE,eAAe,CAAC;CAC5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CloudpackConfig.js","sourceRoot":"","sources":["../../src/types/CloudpackConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { GeneratedConfig } from './GeneratedConfig.js';\nimport type { UserConfig } from './UserConfig.js';\n\n/**\n * The merged result of user-provided and generated configuration for Cloudpack.\n */\n\nexport type CloudpackConfig = UserConfig & {\n generated: GeneratedConfig;\n};\n"]}
|
package/lib/types/DevServer.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { HttpsConfig } from '@ms-cloudpack/create-express-app';
|
|
2
|
-
import type { Route } from './Route.js';
|
|
3
|
-
export interface DevServer {
|
|
4
|
-
/**
|
|
5
|
-
* The domain name of the server.
|
|
6
|
-
*/
|
|
7
|
-
domain?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The ports to be used by the server.
|
|
10
|
-
* It can be a number or an array of numbers.
|
|
11
|
-
* If ports are provided, an error will be thrown if none are available.
|
|
12
|
-
* If no ports are provided, the server will attempt to find an available port.
|
|
13
|
-
*/
|
|
14
|
-
port?: number | number[];
|
|
15
|
-
/**
|
|
16
|
-
* The config settings for the https server.
|
|
17
|
-
* Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings.
|
|
18
|
-
* Everything else is passed directly to the https.createServer() method.
|
|
19
|
-
* If not provided, the server will use http.
|
|
20
|
-
*/
|
|
21
|
-
https?: HttpsConfig;
|
|
22
|
-
/**
|
|
23
|
-
* If provided, will override where the publicDir is located, relative to the app package folder.
|
|
24
|
-
* Defaults to `./public`. The same thing can be achieved with `routes`, using route: '*' and
|
|
25
|
-
* staticPath: './public', so the `publicPath` setting may be removed in the future.
|
|
26
|
-
*/
|
|
27
|
-
publicPath?: string;
|
|
28
|
-
/**
|
|
29
|
-
* If provided, will register routes with the dev server to host various pages.
|
|
30
|
-
*/
|
|
31
|
-
routes?: Route[];
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=DevServer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevServer.d.ts","sourceRoot":"","sources":["../../src/types/DevServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;CAClB"}
|
package/lib/types/DevServer.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevServer.js","sourceRoot":"","sources":["../../src/types/DevServer.ts"],"names":[],"mappings":"","sourcesContent":["import type { HttpsConfig } from '@ms-cloudpack/create-express-app';\nimport type { Route } from './Route.js';\n\nexport interface DevServer {\n /**\n * The domain name of the server.\n */\n domain?: string;\n\n /**\n * The ports to be used by the server.\n * It can be a number or an array of numbers.\n * If ports are provided, an error will be thrown if none are available.\n * If no ports are provided, the server will attempt to find an available port.\n */\n port?: number | number[];\n\n /**\n * The config settings for the https server.\n * Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings.\n * Everything else is passed directly to the https.createServer() method.\n * If not provided, the server will use http.\n */\n https?: HttpsConfig;\n\n /**\n * If provided, will override where the publicDir is located, relative to the app package folder.\n * Defaults to `./public`. The same thing can be achieved with `routes`, using route: '*' and\n * staticPath: './public', so the `publicPath` setting may be removed in the future.\n */\n publicPath?: string;\n\n /**\n * If provided, will register routes with the dev server to host various pages.\n */\n routes?: Route[];\n}\n"]}
|
package/lib/types/Feature.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["../../src/types/Feature.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/lib/types/Feature.js
DELETED
package/lib/types/Feature.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Feature.js","sourceRoot":"","sources":["../../src/types/Feature.ts"],"names":[],"mappings":"","sourcesContent":["export interface Feature {\n description: string;\n}\n"]}
|
package/lib/types/Features.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../src/types/Features.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;KAAG,GAAG,IAAI,MAAM,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO;CAAE,CAAC"}
|
package/lib/types/Features.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Features.js","sourceRoot":"","sources":["../../src/types/Features.ts"],"names":[],"mappings":"","sourcesContent":["import type { allFeatures } from '../allFeatures.js';\n\n/**\n * Represents all features that can be enabled or disabled for Cloudpack.\n */\nexport type Features = { [key in keyof typeof allFeatures]?: boolean };\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { PackageOverride } from './PackageOverride.js';
|
|
2
|
-
import type { PackageSettings } from './PackageSettings.js';
|
|
3
|
-
/**
|
|
4
|
-
* Per-application generated configuration for Cloudpack.
|
|
5
|
-
*/
|
|
6
|
-
export interface GeneratedConfig {
|
|
7
|
-
/**
|
|
8
|
-
* An array of PackageSettings objects, used to provide settings for how we bundle packages.
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
packageSettings?: PackageSettings[];
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated - Use packageSettings instead.
|
|
14
|
-
*
|
|
15
|
-
* An array of PackageOverride objects, used to provide overrides for packages without modifying their
|
|
16
|
-
* definitions directly. This is primarily used for providing exports maps for packages that don't have them.
|
|
17
|
-
*/
|
|
18
|
-
packageOverrides?: PackageOverride[];
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=GeneratedConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GeneratedConfig.d.ts","sourceRoot":"","sources":["../../src/types/GeneratedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IAEpC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;CACtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GeneratedConfig.js","sourceRoot":"","sources":["../../src/types/GeneratedConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageOverride } from './PackageOverride.js';\nimport type { PackageSettings } from './PackageSettings.js';\n\n/**\n * Per-application generated configuration for Cloudpack.\n */\n\nexport interface GeneratedConfig {\n /**\n * An array of PackageSettings objects, used to provide settings for how we bundle packages.\n *\n */\n packageSettings?: PackageSettings[];\n\n /**\n * @deprecated - Use packageSettings instead.\n *\n * An array of PackageOverride objects, used to provide overrides for packages without modifying their\n * definitions directly. This is primarily used for providing exports maps for packages that don't have them.\n */\n packageOverrides?: PackageOverride[];\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PackageOverride.d.ts","sourceRoot":"","sources":["../../src/types/PackageOverride.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,WAAW,CAAC;CACxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PackageOverride.js","sourceRoot":"","sources":["../../src/types/PackageOverride.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageJson } from '@ms-cloudpack/bundler-types';\n\nexport interface PackageOverride {\n name: string;\n versionRequirement: string;\n isInternal?: boolean;\n overrides: PackageJson;\n}\n"]}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { PackageJsonExports } from '@ms-cloudpack/bundler-types';
|
|
2
|
-
/**
|
|
3
|
-
* Settings which apply to a single package (app or library) as it pertains to the Cloudpack start experience.
|
|
4
|
-
*/
|
|
5
|
-
export interface PackageSettings {
|
|
6
|
-
/**
|
|
7
|
-
* A match to indicate the target for the settings to be applied to.
|
|
8
|
-
*/
|
|
9
|
-
match: {
|
|
10
|
-
/**
|
|
11
|
-
* Name of the package.
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* Version of the package. Unspecified matches any version.
|
|
16
|
-
*/
|
|
17
|
-
version?: string;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* The dependencies which should be included when computing the import map. This is primarily used when
|
|
21
|
-
* devDependencies are needed by the app. This often happens when a library has a demo app which relies
|
|
22
|
-
* on devDependencies.
|
|
23
|
-
*/
|
|
24
|
-
includedDependencies?: string[];
|
|
25
|
-
/**
|
|
26
|
-
* The dependencies which should be ignored by Cloudpack verbs. For example, if "react-native" is a dependency
|
|
27
|
-
* which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it.
|
|
28
|
-
*/
|
|
29
|
-
excludedDependencies?: string[];
|
|
30
|
-
/**
|
|
31
|
-
* Dependencies which should be inlined in the library bundled by Cloudpack. This is useful for libraries which
|
|
32
|
-
* are small and don't need to be loaded separately, or ones which have issues being resolved by the browser.
|
|
33
|
-
*/
|
|
34
|
-
inlinedDependencies?: string[];
|
|
35
|
-
/**
|
|
36
|
-
* The exports map that should be used for this package, ignoring entries which are defined in the original
|
|
37
|
-
* package.json. This is useful for libraries which have a missing or broken exports map, or when we want to
|
|
38
|
-
* trim the exports to reduce the api surface we expose to the inner loop experience.
|
|
39
|
-
*/
|
|
40
|
-
exports?: PackageJsonExports;
|
|
41
|
-
/**
|
|
42
|
-
* Forces the package to be bundled using a specific bundler.
|
|
43
|
-
*/
|
|
44
|
-
bundlerType?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Options to pass to the bundler.
|
|
47
|
-
*/
|
|
48
|
-
bundlerOptions?: Record<string, unknown>;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=PackageSettings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PackageSettings.d.ts","sourceRoot":"","sources":["../../src/types/PackageSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE;QACL;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC;;;OAGG;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;CAC1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PackageSettings.js","sourceRoot":"","sources":["../../src/types/PackageSettings.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageJsonExports } from '@ms-cloudpack/bundler-types';\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 * Name of the package.\n */\n name: string;\n\n /**\n * Version of the package. Unspecified matches any version.\n */\n version?: string;\n };\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"]}
|
package/lib/types/Route.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface Route {
|
|
2
|
-
/**
|
|
3
|
-
* The url path part to match. Start paths with a leading slash, e.g. `'/my-route'`. You can also
|
|
4
|
-
* use wildcards (`*`), e.g. `'/my-route/*'` to match all paths starting with `'/my-route'`.
|
|
5
|
-
*/
|
|
6
|
-
match: string;
|
|
7
|
-
/**
|
|
8
|
-
* The path relative to the app root to static assets. If this is provided, renderScript/exportEntry
|
|
9
|
-
* will be ignored.
|
|
10
|
-
*/
|
|
11
|
-
staticPath?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Path to a .js or .html file used for rendering the route. If a script is provided, it must
|
|
14
|
-
* export a default function implementing `CreateHtmlFunction` defined in `@ms-cloudpack/cli`.
|
|
15
|
-
*/
|
|
16
|
-
renderScript?: string;
|
|
17
|
-
/**
|
|
18
|
-
* The key in the exports map which represents the entry point app script for this route.
|
|
19
|
-
* Default is '.', meaning the main package export key.
|
|
20
|
-
*/
|
|
21
|
-
exportEntry?: string;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=Route.d.ts.map
|
package/lib/types/Route.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../src/types/Route.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/lib/types/Route.js
DELETED
package/lib/types/Route.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Route.js","sourceRoot":"","sources":["../../src/types/Route.ts"],"names":[],"mappings":"","sourcesContent":["export interface Route {\n /**\n * The url path part to match. Start paths with a leading slash, e.g. `'/my-route'`. You can also\n * use wildcards (`*`), e.g. `'/my-route/*'` to match all paths starting with `'/my-route'`.\n */\n match: string;\n\n /**\n * The path relative to the app root to static assets. If this is provided, renderScript/exportEntry\n * will be ignored.\n */\n staticPath?: string;\n\n /**\n * Path to a .js or .html file used for rendering the route. If a script is provided, it must\n * export a default function implementing `CreateHtmlFunction` defined in `@ms-cloudpack/cli`.\n */\n renderScript?: string;\n\n /**\n * The key in the exports map which represents the entry point app script for this route.\n * Default is '.', meaning the main package export key.\n */\n exportEntry?: string;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TelemetryConfig.d.ts","sourceRoot":"","sources":["../../src/types/TelemetryConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TelemetryConfig.js","sourceRoot":"","sources":["../../src/types/TelemetryConfig.ts"],"names":[],"mappings":"","sourcesContent":["export interface TelemetryConfig {\n /**\n * Application Insights connection string.\n */\n connectionString: string;\n}\n"]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { DevServer } from './DevServer.js';
|
|
2
|
-
import type { Features } from './Features.js';
|
|
3
|
-
import type { PackageSettings } from './PackageSettings.js';
|
|
4
|
-
import type { TelemetryConfig } from './TelemetryConfig.js';
|
|
5
|
-
/**
|
|
6
|
-
* Per-application user-provided configuration for Cloudpack.
|
|
7
|
-
*/
|
|
8
|
-
export interface UserConfig {
|
|
9
|
-
/**
|
|
10
|
-
* A set of options for configuring how the dev server works.
|
|
11
|
-
*/
|
|
12
|
-
devServer?: DevServer;
|
|
13
|
-
/**
|
|
14
|
-
* A set of options for configuring telemetry
|
|
15
|
-
*/
|
|
16
|
-
telemetry?: TelemetryConfig;
|
|
17
|
-
/**
|
|
18
|
-
* A set of options for configuring the experience. Features can be set to true to change the default
|
|
19
|
-
* behavior.
|
|
20
|
-
*/
|
|
21
|
-
features?: Features;
|
|
22
|
-
/**
|
|
23
|
-
* Help message to display when Cloudpack starts up.
|
|
24
|
-
*/
|
|
25
|
-
helpMessage?: string;
|
|
26
|
-
/**
|
|
27
|
-
* An array of PackageSettings objects, used to provide settings for how we bundle packages.
|
|
28
|
-
*/
|
|
29
|
-
packageSettings?: PackageSettings[];
|
|
30
|
-
/**
|
|
31
|
-
* An optional list of commands (followed by a string array of args for that command)
|
|
32
|
-
* to be executed prior to Cloudpack bundle
|
|
33
|
-
*/
|
|
34
|
-
dependsOn?: [string, string[]][];
|
|
35
|
-
/**
|
|
36
|
-
* Azure Blob Storage configuration for remote cache - uploading and downloading packages.
|
|
37
|
-
* If this is not provided, the remote cache will not be used.
|
|
38
|
-
*/
|
|
39
|
-
remoteCache?: {
|
|
40
|
-
/**
|
|
41
|
-
* The name of the Azure Blob Storage account.
|
|
42
|
-
*/
|
|
43
|
-
storageAccount: string;
|
|
44
|
-
/**
|
|
45
|
-
* The name of the container to use for the remote cache. Container must already exist.
|
|
46
|
-
*/
|
|
47
|
-
container: string;
|
|
48
|
-
/**
|
|
49
|
-
* Token expiration time in milliseconds.
|
|
50
|
-
* Default is 7 days.
|
|
51
|
-
* Maximum allowed is 7 days.
|
|
52
|
-
*/
|
|
53
|
-
tokenExpiresInMs?: number;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=UserConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserConfig.d.ts","sourceRoot":"","sources":["../../src/types/UserConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;GAEG;AAEH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IAEpC;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IAEjC;;;OAGG;IACH,WAAW,CAAC,EAAE;QACZ;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QACvB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;WAIG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH"}
|
package/lib/types/UserConfig.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserConfig.js","sourceRoot":"","sources":["../../src/types/UserConfig.ts"],"names":[],"mappings":"","sourcesContent":["import type { DevServer } from './DevServer.js';\nimport type { Features } from './Features.js';\nimport type { PackageSettings } from './PackageSettings.js';\nimport type { TelemetryConfig } from './TelemetryConfig.js';\n\n/**\n * Per-application user-provided configuration for Cloudpack.\n */\n\nexport interface UserConfig {\n /**\n * A set of options for configuring how the dev server works.\n */\n devServer?: DevServer;\n\n /**\n * A set of options for configuring telemetry\n */\n telemetry?: TelemetryConfig;\n\n /**\n * A set of options for configuring the experience. Features can be set to true to change the default\n * behavior.\n */\n features?: Features;\n\n /**\n * Help message to display when Cloudpack starts up.\n */\n helpMessage?: string;\n\n /**\n * An array of PackageSettings objects, used to provide settings for how we bundle packages.\n */\n packageSettings?: PackageSettings[];\n\n /**\n * An optional list of commands (followed by a string array of args for that command)\n * to be executed prior to Cloudpack bundle\n */\n dependsOn?: [string, string[]][];\n\n /**\n * Azure Blob Storage configuration for remote cache - uploading and downloading packages.\n * If this is not provided, the remote cache will not be used.\n */\n remoteCache?: {\n /**\n * The name of the Azure Blob Storage account.\n */\n storageAccount: string;\n /**\n * The name of the container to use for the remote cache. Container must already exist.\n */\n container: string;\n\n /**\n * Token expiration time in milliseconds.\n * Default is 7 days.\n * Maximum allowed is 7 days.\n */\n tokenExpiresInMs?: number;\n };\n}\n"]}
|