@ms-cloudpack/cli 0.76.4 → 0.76.5

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.
@@ -3,5 +3,8 @@ import { type ReadConfigOptions } from '@ms-cloudpack/config';
3
3
  export declare class InvalidCloudpackConfigError extends Error {
4
4
  constructor(message: string);
5
5
  }
6
- export declare const readLocalConfigs: (appPaths: string[], readConfigOptions: ReadConfigOptions) => Promise<Record<string, CloudpackConfig>>;
6
+ /**
7
+ * Read local cloudpack configs for multiple apps, and augment with the given options.
8
+ */
9
+ export declare function readLocalConfigs(appPaths: string[], readConfigOptions: ReadConfigOptions): Promise<Record<string, CloudpackConfig>>;
7
10
  //# sourceMappingURL=readLocalConfigs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readLocalConfigs.d.ts","sourceRoot":"","sources":["../../src/utilities/readLocalConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE1E,qBAAa,2BAA4B,SAAQ,KAAK;gBACxC,OAAO,EAAE,MAAM;CAI5B;AAED,eAAO,MAAM,gBAAgB,GAC3B,UAAU,MAAM,EAAE,EAClB,mBAAmB,iBAAiB,KACnC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAgBzC,CAAC"}
1
+ {"version":3,"file":"readLocalConfigs.d.ts","sourceRoot":"","sources":["../../src/utilities/readLocalConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE1E,qBAAa,2BAA4B,SAAQ,KAAK;gBACxC,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,MAAM,EAAE,EAClB,iBAAiB,EAAE,iBAAiB,GACnC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAgB1C"}
@@ -5,7 +5,10 @@ export class InvalidCloudpackConfigError extends Error {
5
5
  this.name = 'InvalidCloudpackConfigError';
6
6
  }
7
7
  }
8
- export const readLocalConfigs = async (appPaths, readConfigOptions) => {
8
+ /**
9
+ * Read local cloudpack configs for multiple apps, and augment with the given options.
10
+ */
11
+ export async function readLocalConfigs(appPaths, readConfigOptions) {
9
12
  const configs = {};
10
13
  for (const appPath of appPaths) {
11
14
  let config;
@@ -18,5 +21,5 @@ export const readLocalConfigs = async (appPaths, readConfigOptions) => {
18
21
  configs[appPath] = config;
19
22
  }
20
23
  return configs;
21
- };
24
+ }
22
25
  //# sourceMappingURL=readLocalConfigs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"readLocalConfigs.js","sourceRoot":"","sources":["../../src/utilities/readLocalConfigs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA0B,MAAM,sBAAsB,CAAC;AAE1E,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IACpD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,QAAkB,EAClB,iBAAoC,EACM,EAAE;IAC5C,MAAM,OAAO,GAAoC,EAAE,CAAC;IAEpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,MAAuB,CAAC;QAE5B,IAAI,CAAC;YACH,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QACxD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,2BAA2B,CAAC,+BAA+B,OAAO,KAAM,GAAa,CAAC,OAAO,IAAI,GAAG,EAAE,CAAC,CAAC;QACpH,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC;IAC5B,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import type { CloudpackConfig } from '@ms-cloudpack/common-types';\nimport { readConfig, type ReadConfigOptions } from '@ms-cloudpack/config';\n\nexport class InvalidCloudpackConfigError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'InvalidCloudpackConfigError';\n }\n}\n\nexport const readLocalConfigs = async (\n appPaths: string[],\n readConfigOptions: ReadConfigOptions,\n): Promise<Record<string, CloudpackConfig>> => {\n const configs: Record<string, CloudpackConfig> = {};\n\n for (const appPath of appPaths) {\n let config: CloudpackConfig;\n\n try {\n config = await readConfig(appPath, readConfigOptions);\n } catch (err) {\n throw new InvalidCloudpackConfigError(`Invalid cloudpack config in ${appPath}: ${(err as Error).message || err}`);\n }\n\n configs[appPath] = config;\n }\n\n return configs;\n};\n"]}
1
+ {"version":3,"file":"readLocalConfigs.js","sourceRoot":"","sources":["../../src/utilities/readLocalConfigs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAA0B,MAAM,sBAAsB,CAAC;AAE1E,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IACpD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,QAAkB,EAClB,iBAAoC;IAEpC,MAAM,OAAO,GAAoC,EAAE,CAAC;IAEpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,MAAuB,CAAC;QAE5B,IAAI,CAAC;YACH,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QACxD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,2BAA2B,CAAC,+BAA+B,OAAO,KAAM,GAAa,CAAC,OAAO,IAAI,GAAG,EAAE,CAAC,CAAC;QACpH,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC;IAC5B,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import type { CloudpackConfig } from '@ms-cloudpack/common-types';\nimport { readConfig, type ReadConfigOptions } from '@ms-cloudpack/config';\n\nexport class InvalidCloudpackConfigError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'InvalidCloudpackConfigError';\n }\n}\n\n/**\n * Read local cloudpack configs for multiple apps, and augment with the given options.\n */\nexport async function readLocalConfigs(\n appPaths: string[],\n readConfigOptions: ReadConfigOptions,\n): Promise<Record<string, CloudpackConfig>> {\n const configs: Record<string, CloudpackConfig> = {};\n\n for (const appPath of appPaths) {\n let config: CloudpackConfig;\n\n try {\n config = await readConfig(appPath, readConfigOptions);\n } catch (err) {\n throw new InvalidCloudpackConfigError(`Invalid cloudpack config in ${appPath}: ${(err as Error).message || err}`);\n }\n\n configs[appPath] = config;\n }\n\n return configs;\n}\n"]}
@@ -1,4 +1,8 @@
1
1
  import type { CloudpackConfig } from '@ms-cloudpack/common-types';
2
2
  import { type ReadConfigOptions } from '@ms-cloudpack/config';
3
- export declare const readRemoteConfigs: (appPaths: string[], readConfigOptions: ReadConfigOptions) => Promise<Record<string, CloudpackConfig>>;
3
+ /**
4
+ * Read remote configs from the `cloudpack-context.json` from multiple paths, and augment with
5
+ * the given options.
6
+ */
7
+ export declare function readRemoteConfigs(appPaths: string[], readConfigOptions: ReadConfigOptions): Promise<Record<string, CloudpackConfig>>;
4
8
  //# sourceMappingURL=readRemoteConfigs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readRemoteConfigs.d.ts","sourceRoot":"","sources":["../../src/utilities/readRemoteConfigs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGvF,eAAO,MAAM,iBAAiB,GAC5B,UAAU,MAAM,EAAE,EAClB,mBAAmB,iBAAiB,KACnC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAezC,CAAC"}
1
+ {"version":3,"file":"readRemoteConfigs.d.ts","sourceRoot":"","sources":["../../src/utilities/readRemoteConfigs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAoB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEhF;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,QAAQ,EAAE,MAAM,EAAE,EAClB,iBAAiB,EAAE,iBAAiB,GACnC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAS1C"}
@@ -1,14 +1,15 @@
1
- import { addReadAppConfigOptions } from '@ms-cloudpack/config';
2
- import { readJson } from '@ms-cloudpack/json-utilities';
3
- export const readRemoteConfigs = async (appPaths, readConfigOptions) => {
1
+ import { readSerializedContext } from '@ms-cloudpack/api-server';
2
+ import { augmentAppConfig } from '@ms-cloudpack/config';
3
+ /**
4
+ * Read remote configs from the `cloudpack-context.json` from multiple paths, and augment with
5
+ * the given options.
6
+ */
7
+ export async function readRemoteConfigs(appPaths, readConfigOptions) {
4
8
  const configs = {};
5
9
  for (const appPath of appPaths) {
6
- const cloudAppContext = await readJson(`${appPath}/cloudpack-context.json`);
7
- if (!cloudAppContext) {
8
- throw new Error(`Could not find cloudpack-context.json in ${appPath}. This must be a Cloudpack bug, please report it.`);
9
- }
10
- configs[appPath] = addReadAppConfigOptions(cloudAppContext.config, readConfigOptions);
10
+ const cloudAppContext = await readSerializedContext(appPath);
11
+ configs[appPath] = augmentAppConfig(cloudAppContext.config, readConfigOptions);
11
12
  }
12
13
  return configs;
13
- };
14
+ }
14
15
  //# sourceMappingURL=readRemoteConfigs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"readRemoteConfigs.js","sourceRoot":"","sources":["../../src/utilities/readRemoteConfigs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAA0B,MAAM,sBAAsB,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EACpC,QAAkB,EAClB,iBAAoC,EACM,EAAE;IAC5C,MAAM,OAAO,GAAoC,EAAE,CAAC;IAEpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,eAAe,GAAG,MAAM,QAAQ,CAAkB,GAAG,OAAO,yBAAyB,CAAC,CAAC;QAC7F,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CACb,4CAA4C,OAAO,mDAAmD,CACvG,CAAC;QACJ,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,GAAG,uBAAuB,CAAC,eAAe,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACxF,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import type { CloudAppContext } from '@ms-cloudpack/api-server';\nimport type { CloudpackConfig } from '@ms-cloudpack/common-types';\nimport { addReadAppConfigOptions, type ReadConfigOptions } from '@ms-cloudpack/config';\nimport { readJson } from '@ms-cloudpack/json-utilities';\n\nexport const readRemoteConfigs = async (\n appPaths: string[],\n readConfigOptions: ReadConfigOptions,\n): Promise<Record<string, CloudpackConfig>> => {\n const configs: Record<string, CloudpackConfig> = {};\n\n for (const appPath of appPaths) {\n const cloudAppContext = await readJson<CloudAppContext>(`${appPath}/cloudpack-context.json`);\n if (!cloudAppContext) {\n throw new Error(\n `Could not find cloudpack-context.json in ${appPath}. This must be a Cloudpack bug, please report it.`,\n );\n }\n\n configs[appPath] = addReadAppConfigOptions(cloudAppContext.config, readConfigOptions);\n }\n\n return configs;\n};\n"]}
1
+ {"version":3,"file":"readRemoteConfigs.js","sourceRoot":"","sources":["../../src/utilities/readRemoteConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAA0B,MAAM,sBAAsB,CAAC;AAEhF;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,QAAkB,EAClB,iBAAoC;IAEpC,MAAM,OAAO,GAAoC,EAAE,CAAC;IAEpD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,eAAe,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC7D,OAAO,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAC,eAAe,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACjF,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import { readSerializedContext } from '@ms-cloudpack/api-server';\nimport type { CloudpackConfig } from '@ms-cloudpack/common-types';\nimport { augmentAppConfig, type ReadConfigOptions } from '@ms-cloudpack/config';\n\n/**\n * Read remote configs from the `cloudpack-context.json` from multiple paths, and augment with\n * the given options.\n */\nexport async function readRemoteConfigs(\n appPaths: string[],\n readConfigOptions: ReadConfigOptions,\n): Promise<Record<string, CloudpackConfig>> {\n const configs: Record<string, CloudpackConfig> = {};\n\n for (const appPath of appPaths) {\n const cloudAppContext = await readSerializedContext(appPath);\n configs[appPath] = augmentAppConfig(cloudAppContext.config, readConfigOptions);\n }\n\n return configs;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/cli",
3
- "version": "0.76.4",
3
+ "version": "0.76.5",
4
4
  "description": "The Cloudpack command line interface - a tool for managing fast inner and outer looping in web apps.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,24 +18,24 @@
18
18
  "cloudpack": "./bin/cloudpack.js"
19
19
  },
20
20
  "dependencies": {
21
- "@ms-cloudpack/api-server": "^0.64.4",
22
- "@ms-cloudpack/app-server": "^0.19.1",
23
- "@ms-cloudpack/bundler": "^0.25.18",
24
- "@ms-cloudpack/bundler-capabilities": "^0.2.31",
25
- "@ms-cloudpack/common-types": "^0.26.1",
26
- "@ms-cloudpack/config": "^0.35.15",
27
- "@ms-cloudpack/create-express-app": "^1.10.40",
21
+ "@ms-cloudpack/api-server": "^0.64.5",
22
+ "@ms-cloudpack/app-server": "^0.19.2",
23
+ "@ms-cloudpack/bundler": "^0.25.19",
24
+ "@ms-cloudpack/bundler-capabilities": "^0.2.32",
25
+ "@ms-cloudpack/common-types": "^0.26.2",
26
+ "@ms-cloudpack/config": "^0.36.0",
27
+ "@ms-cloudpack/create-express-app": "^1.10.41",
28
28
  "@ms-cloudpack/environment": "^0.1.1",
29
29
  "@ms-cloudpack/json-utilities": "^0.1.10",
30
- "@ms-cloudpack/link-proxy": "^0.2.18",
31
- "@ms-cloudpack/overlay": "^0.19.14",
32
- "@ms-cloudpack/package-utilities": "^12.3.17",
30
+ "@ms-cloudpack/link-proxy": "^0.2.19",
31
+ "@ms-cloudpack/overlay": "^0.19.15",
32
+ "@ms-cloudpack/package-utilities": "^12.3.18",
33
33
  "@ms-cloudpack/path-string-parsing": "^1.2.7",
34
- "@ms-cloudpack/path-utilities": "^3.1.11",
35
- "@ms-cloudpack/remote-cache": "^0.11.27",
36
- "@ms-cloudpack/setup-utilities": "^0.5.32",
34
+ "@ms-cloudpack/path-utilities": "^3.1.12",
35
+ "@ms-cloudpack/remote-cache": "^0.11.28",
36
+ "@ms-cloudpack/setup-utilities": "^0.5.33",
37
37
  "@ms-cloudpack/task-reporter": "^0.17.2",
38
- "@ms-cloudpack/telemetry": "^0.11.29",
38
+ "@ms-cloudpack/telemetry": "^0.11.30",
39
39
  "@yarnpkg/lockfile": "^1.1.0",
40
40
  "commander": "^14.0.0",
41
41
  "cross-spawn": "^7.0.3",
@@ -48,7 +48,7 @@
48
48
  "workspace-tools": "^0.38.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@ms-cloudpack/common-types": "^0.26.1",
51
+ "@ms-cloudpack/common-types": "^0.26.2",
52
52
  "@ms-cloudpack/common-types-browser": "^0.6.2",
53
53
  "@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
54
54
  "@ms-cloudpack/scripts": "^0.0.1",