@ms-cloudpack/cli 0.72.46 → 0.72.48
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/commands/bundle/execute.d.ts.map +1 -1
- package/lib/commands/bundle/execute.js +40 -39
- package/lib/commands/bundle/execute.js.map +1 -1
- package/lib/commands/bundle/index.d.ts.map +1 -1
- package/lib/commands/bundle/index.js +1 -0
- package/lib/commands/bundle/index.js.map +1 -1
- package/lib/commands/bundle/types/BundleOptions.d.ts +5 -8
- package/lib/commands/bundle/types/BundleOptions.d.ts.map +1 -1
- package/lib/commands/bundle/types/BundleOptions.js.map +1 -1
- package/lib/commands/init/InitSummaryData.d.ts +21 -8
- package/lib/commands/init/InitSummaryData.d.ts.map +1 -1
- package/lib/commands/init/InitSummaryData.js +27 -10
- package/lib/commands/init/InitSummaryData.js.map +1 -1
- package/lib/commands/init/evaluatePath.d.ts.map +1 -1
- package/lib/commands/init/evaluatePath.js +3 -3
- package/lib/commands/init/evaluatePath.js.map +1 -1
- package/lib/commands/init/execute.d.ts.map +1 -1
- package/lib/commands/init/execute.js +8 -3
- package/lib/commands/init/execute.js.map +1 -1
- package/lib/commands/init/formatInitSummary.d.ts +5 -3
- package/lib/commands/init/formatInitSummary.d.ts.map +1 -1
- package/lib/commands/init/formatInitSummary.js +62 -56
- package/lib/commands/init/formatInitSummary.js.map +1 -1
- package/lib/commands/init/index.d.ts.map +1 -1
- package/lib/commands/init/index.js +2 -1
- package/lib/commands/init/index.js.map +1 -1
- package/lib/commands/init/init.js +3 -13
- package/lib/commands/init/init.js.map +1 -1
- package/lib/commands/init/types/GeneratedChange.d.ts +7 -2
- package/lib/commands/init/types/GeneratedChange.d.ts.map +1 -1
- package/lib/commands/init/types/GeneratedChange.js +12 -6
- package/lib/commands/init/types/GeneratedChange.js.map +1 -1
- package/lib/commands/init/types/InitOptions.d.ts +2 -10
- package/lib/commands/init/types/InitOptions.d.ts.map +1 -1
- package/lib/commands/init/types/InitOptions.js.map +1 -1
- package/lib/commands/init/types/InitPackageResult.d.ts +3 -1
- package/lib/commands/init/types/InitPackageResult.d.ts.map +1 -1
- package/lib/commands/init/types/InitPackageResult.js.map +1 -1
- package/lib/commands/init/types/InitSummary.d.ts +4 -4
- package/lib/commands/init/types/InitSummary.d.ts.map +1 -1
- package/lib/commands/init/types/InitSummary.js.map +1 -1
- package/lib/commands/init/verifyExports.d.ts.map +1 -1
- package/lib/commands/init/verifyExports.js +4 -4
- package/lib/commands/init/verifyExports.js.map +1 -1
- package/lib/commands/link/types/LinkOptions.d.ts +2 -3
- package/lib/commands/link/types/LinkOptions.d.ts.map +1 -1
- package/lib/commands/link/types/LinkOptions.js.map +1 -1
- package/lib/commands/start/getStartingAppPath.d.ts +0 -1
- package/lib/commands/start/getStartingAppPath.d.ts.map +1 -1
- package/lib/commands/start/getStartingAppPath.js +7 -6
- package/lib/commands/start/getStartingAppPath.js.map +1 -1
- package/lib/commands/start/index.d.ts.map +1 -1
- package/lib/commands/start/index.js +2 -1
- package/lib/commands/start/index.js.map +1 -1
- package/lib/commands/start/types/StartOptions.d.ts +2 -11
- package/lib/commands/start/types/StartOptions.d.ts.map +1 -1
- package/lib/commands/start/types/StartOptions.js.map +1 -1
- package/lib/commands/sync/execute.d.ts.map +1 -1
- package/lib/commands/sync/execute.js +5 -3
- package/lib/commands/sync/execute.js.map +1 -1
- package/lib/commands/sync/types/SyncOptions.d.ts +2 -3
- package/lib/commands/sync/types/SyncOptions.d.ts.map +1 -1
- package/lib/commands/sync/types/SyncOptions.js.map +1 -1
- package/lib/types/ReusedOptions.d.ts +16 -0
- package/lib/types/ReusedOptions.d.ts.map +1 -0
- package/lib/types/ReusedOptions.js +2 -0
- package/lib/types/ReusedOptions.js.map +1 -0
- package/lib/utilities/CommandExecutor.d.ts.map +1 -1
- package/lib/utilities/CommandExecutor.js +4 -2
- package/lib/utilities/CommandExecutor.js.map +1 -1
- package/lib/utilities/findCloudpackAppPaths.d.ts.map +1 -1
- package/lib/utilities/findCloudpackAppPaths.js +2 -1
- package/lib/utilities/findCloudpackAppPaths.js.map +1 -1
- package/lib/utilities/getConfigOptionsFromCliOptions.d.ts +1 -1
- package/lib/utilities/getConfigOptionsFromCliOptions.d.ts.map +1 -1
- package/lib/utilities/getConfigOptionsFromCliOptions.js +1 -0
- package/lib/utilities/getConfigOptionsFromCliOptions.js.map +1 -1
- package/lib/utilities/reusedOptions.d.ts +5 -1
- package/lib/utilities/reusedOptions.d.ts.map +1 -1
- package/lib/utilities/reusedOptions.js +6 -1
- package/lib/utilities/reusedOptions.js.map +1 -1
- package/package.json +16 -16
- package/lib/commands/init/types/InitPackageResultErrors.d.ts +0 -6
- package/lib/commands/init/types/InitPackageResultErrors.d.ts.map +0 -1
- package/lib/commands/init/types/InitPackageResultErrors.js +0 -2
- package/lib/commands/init/types/InitPackageResultErrors.js.map +0 -1
- package/lib/commands/init/types/InitPackageResultWarnings.d.ts +0 -6
- package/lib/commands/init/types/InitPackageResultWarnings.d.ts.map +0 -1
- package/lib/commands/init/types/InitPackageResultWarnings.js +0 -2
- package/lib/commands/init/types/InitPackageResultWarnings.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findCloudpackAppPaths.js","sourceRoot":"","sources":["../../src/utilities/findCloudpackAppPaths.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,YAAoB;IACxD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"findCloudpackAppPaths.js","sourceRoot":"","sources":["../../src/utilities/findCloudpackAppPaths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,YAAoB;IACxD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,iBAAiB,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAC9G,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CACtD,CAAC;AACJ,CAAC","sourcesContent":["import { appConfigFileName } from '@ms-cloudpack/config';\nimport glob from 'fast-glob';\nimport path from 'path';\n\n/**\n * Find folders in the repo containing a `cloudpack.config.json` file.\n * @param startingPath The path to start searching from when finding Cloudpack apps\n * @returns An array of app paths corresponding to all discovered Cloudpack apps\n */\nexport function findCloudpackAppPaths(startingPath: string): string[] {\n return (glob.sync([`**/${appConfigFileName}`], { cwd: startingPath, ignore: ['**/node_modules/**'] }) ?? []).map(\n (file) => path.join(startingPath, path.dirname(file)),\n );\n}\n"]}
|
|
@@ -4,5 +4,5 @@ import type { BundleOptions } from '../commands/bundle/types/BundleOptions.js';
|
|
|
4
4
|
* Translate CLI options into `readConfig` options. (This currently uses partial `BundleOptions` as
|
|
5
5
|
* the type, but it works for anything with at least one of the listed properties.)
|
|
6
6
|
*/
|
|
7
|
-
export declare function getConfigOptionsFromCliOptions(options: Partial<Pick<BundleOptions, 'mode' | 'bundler'>>): ReadConfigOptions;
|
|
7
|
+
export declare function getConfigOptionsFromCliOptions(options: Partial<Pick<BundleOptions, 'mode' | 'bundler' | 'logBundleInfo'>>): ReadConfigOptions;
|
|
8
8
|
//# sourceMappingURL=getConfigOptionsFromCliOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfigOptionsFromCliOptions.d.ts","sourceRoot":"","sources":["../../src/utilities/getConfigOptionsFromCliOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAE/E;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"getConfigOptionsFromCliOptions.d.ts","sourceRoot":"","sources":["../../src/utilities/getConfigOptionsFromCliOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAE/E;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,eAAe,CAAC,CAAC,GAC1E,iBAAiB,CAQnB"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export function getConfigOptionsFromCliOptions(options) {
|
|
6
6
|
return {
|
|
7
7
|
mode: options.mode,
|
|
8
|
+
logBundleInfo: options.logBundleInfo,
|
|
8
9
|
// Handle --bundler by passing it as a universal package override, which will be appended
|
|
9
10
|
// to any user-provided packageSettings so that it takes precedence.
|
|
10
11
|
extraPackageSettings: options.bundler ? [{ match: '*', bundler: options.bundler }] : undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfigOptionsFromCliOptions.js","sourceRoot":"","sources":["../../src/utilities/getConfigOptionsFromCliOptions.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,UAAU,8BAA8B,CAC5C,
|
|
1
|
+
{"version":3,"file":"getConfigOptionsFromCliOptions.js","sourceRoot":"","sources":["../../src/utilities/getConfigOptionsFromCliOptions.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,UAAU,8BAA8B,CAC5C,OAA2E;IAE3E,OAAO;QACL,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,yFAAyF;QACzF,oEAAoE;QACpE,oBAAoB,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;KAC/F,CAAC;AACJ,CAAC","sourcesContent":["import type { ReadConfigOptions } from '@ms-cloudpack/config';\nimport type { BundleOptions } from '../commands/bundle/types/BundleOptions.js';\n\n/**\n * Translate CLI options into `readConfig` options. (This currently uses partial `BundleOptions` as\n * the type, but it works for anything with at least one of the listed properties.)\n */\nexport function getConfigOptionsFromCliOptions(\n options: Partial<Pick<BundleOptions, 'mode' | 'bundler' | 'logBundleInfo'>>,\n): ReadConfigOptions {\n return {\n mode: options.mode,\n logBundleInfo: options.logBundleInfo,\n // Handle --bundler by passing it as a universal package override, which will be appended\n // to any user-provided packageSettings so that it takes precedence.\n extraPackageSettings: options.bundler ? [{ match: '*', bundler: options.bundler }] : undefined,\n };\n}\n"]}
|
|
@@ -3,6 +3,9 @@ import { Option } from 'commander';
|
|
|
3
3
|
* These options are used by multiple commands, but should be manually added.
|
|
4
4
|
*/
|
|
5
5
|
export declare const reusedOptions: {
|
|
6
|
+
readonly logBundleInfo: (options?: {
|
|
7
|
+
requiresNoCache?: boolean;
|
|
8
|
+
}) => Option;
|
|
6
9
|
readonly logResolveMap: () => Option;
|
|
7
10
|
/**
|
|
8
11
|
* @param descriptionStart Start of description for this command, e.g. "Bundle specific package(s)"
|
|
@@ -12,7 +15,8 @@ export declare const reusedOptions: {
|
|
|
12
15
|
readonly mode: (options: {
|
|
13
16
|
action: "bundle" | "run";
|
|
14
17
|
}) => Option;
|
|
15
|
-
|
|
18
|
+
/** `--no-cache` option */
|
|
19
|
+
readonly cache: () => Option;
|
|
16
20
|
readonly login: () => Option;
|
|
17
21
|
};
|
|
18
22
|
//# sourceMappingURL=reusedOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reusedOptions.d.ts","sourceRoot":"","sources":["../../src/utilities/reusedOptions.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,MAAM,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"reusedOptions.d.ts","sourceRoot":"","sources":["../../src/utilities/reusedOptions.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,MAAM,EAAE,MAAM,WAAW,CAAC;AAKzD;;GAEG;AACH,eAAO,MAAM,aAAa;uCACE;QAAE,eAAe,CAAC,EAAE,OAAO,CAAA;KAAE;;IAOvD;;;OAGG;uCACuB,MAAM;6BAKhB;QAAE,MAAM,EAAE,QAAQ,GAAG,KAAK,CAAA;KAAE;IAO5C,0BAA0B;;;CAQgD,CAAC"}
|
|
@@ -5,6 +5,8 @@ import { environmentInfo } from '@ms-cloudpack/environment';
|
|
|
5
5
|
* These options are used by multiple commands, but should be manually added.
|
|
6
6
|
*/
|
|
7
7
|
export const reusedOptions = {
|
|
8
|
+
logBundleInfo: (options) => new Option('--log-bundle-info', 'For each package, write log files in its output folder with bundle input, output, and analyzed info.' +
|
|
9
|
+
(options?.requiresNoCache ? ' (Note: requires --no-cache option if bundle output already exists.)' : '')),
|
|
8
10
|
logResolveMap: () => new Option('--log-resolve-map', 'Log the resolve map to "resolve-map.json" for diagnostics.'),
|
|
9
11
|
/**
|
|
10
12
|
* @param descriptionStart Start of description for this command, e.g. "Bundle specific package(s)"
|
|
@@ -14,10 +16,13 @@ export const reusedOptions = {
|
|
|
14
16
|
mode: (options) => new Option('--mode <mode>', `The mode to ${options.action === 'bundle' ? 'bundle the package' : 'run the app'} in. (library | production)`)
|
|
15
17
|
.argParser(parseBundleMode)
|
|
16
18
|
.default('library'),
|
|
17
|
-
|
|
19
|
+
/** `--no-cache` option */
|
|
20
|
+
cache: () => new Option('--no-cache', 'Rebuild all packages, rather than using cached assets.'),
|
|
18
21
|
login: () => new Option('--login <method>', 'How to authenticate against the remote cache.')
|
|
19
22
|
.choices(['interactive', 'azure-cli', 'device-code'])
|
|
20
23
|
.default(getDefaultLogin(), '"azure-cli" in CI, "device-code" in Github Codespaces, "interactive" otherwise'),
|
|
24
|
+
// Verify the type with `satisfies` to preserve individual function signatures.
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
26
|
};
|
|
22
27
|
/** Parse the session mode based on user input (e.g. --mode argument in start.) */
|
|
23
28
|
function parseBundleMode(mode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reusedOptions.js","sourceRoot":"","sources":["../../src/utilities/reusedOptions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"reusedOptions.js","sourceRoot":"","sources":["../../src/utilities/reusedOptions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,aAAa,EAAE,CAAC,OAAuC,EAAE,EAAE,CACzD,IAAI,MAAM,CACR,mBAAmB,EACnB,sGAAsG;QACpG,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,sEAAsE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC3G;IACH,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,MAAM,CAAC,mBAAmB,EAAE,4DAA4D,CAAC;IAClH;;;OAGG;IACH,KAAK,EAAE,CAAC,gBAAwB,EAAE,EAAE,CAClC,IAAI,MAAM,CACR,oBAAoB,EACpB,GAAG,gBAAgB,gEAAgE,CACpF,CAAC,SAAS,CAAC,UAAU,CAAC;IACzB,IAAI,EAAE,CAAC,OAAqC,EAAE,EAAE,CAC9C,IAAI,MAAM,CACR,eAAe,EACf,eAAe,OAAO,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,aAAa,6BAA6B,CAC/G;SACE,SAAS,CAAC,eAAe,CAAC;SAC1B,OAAO,CAAC,SAAS,CAAC;IACvB,0BAA0B;IAC1B,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,MAAM,CAAC,YAAY,EAAE,wDAAwD,CAAC;IAC/F,KAAK,EAAE,GAAG,EAAE,CACV,IAAI,MAAM,CAAC,kBAAkB,EAAE,+CAA+C,CAAC;SAC5E,OAAO,CAAC,CAAC,aAAa,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;SACpD,OAAO,CAAC,eAAe,EAAE,EAAE,gFAAgF,CAAC;IACjH,+EAA+E;IAC/E,8DAA8D;CACY,CAAC;AAE7E,kFAAkF;AAClF,SAAS,eAAe,CAAC,IAAY;IACnC,QAAQ,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;QAC3B,KAAK,KAAK,CAAC;QACX,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,KAAK,CAAC;QACX,KAAK,aAAa;YAChB,OAAO,aAAa,CAAC;QACvB,KAAK,MAAM,CAAC;QACZ,KAAK,YAAY;YACf,OAAO,YAAY,CAAC;QACtB;YACE,MAAM,IAAI,oBAAoB,CAAC,4CAA4C,CAAC,CAAC;IACjF,CAAC;AACH,CAAC;AAED,SAAS,eAAe;IACtB,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC;AAC3G,CAAC","sourcesContent":["import type { BundleMode } from '@ms-cloudpack/common-types';\nimport { InvalidArgumentError, Option } from 'commander';\nimport { parseMatch } from './parseMatch.js';\nimport { environmentInfo } from '@ms-cloudpack/environment';\nimport type { ReusedOptions } from '../types/ReusedOptions.js';\n\n/**\n * These options are used by multiple commands, but should be manually added.\n */\nexport const reusedOptions = {\n logBundleInfo: (options?: { requiresNoCache?: boolean }) =>\n new Option(\n '--log-bundle-info',\n 'For each package, write log files in its output folder with bundle input, output, and analyzed info.' +\n (options?.requiresNoCache ? ' (Note: requires --no-cache option if bundle output already exists.)' : ''),\n ),\n logResolveMap: () => new Option('--log-resolve-map', 'Log the resolve map to \"resolve-map.json\" for diagnostics.'),\n /**\n * @param descriptionStart Start of description for this command, e.g. \"Bundle specific package(s)\"\n * (it will automatically include an optional version note and examples)\n */\n match: (descriptionStart: string) =>\n new Option(\n '--match <match...>',\n `${descriptionStart}, optionally with a version: e.g. \"foo\", \"@foo/*\", \"foo@1.2.3\"`,\n ).argParser(parseMatch),\n mode: (options: { action: 'bundle' | 'run' }) =>\n new Option(\n '--mode <mode>',\n `The mode to ${options.action === 'bundle' ? 'bundle the package' : 'run the app'} in. (library | production)`,\n )\n .argParser(parseBundleMode)\n .default('library'),\n /** `--no-cache` option */\n cache: () => new Option('--no-cache', 'Rebuild all packages, rather than using cached assets.'),\n login: () =>\n new Option('--login <method>', 'How to authenticate against the remote cache.')\n .choices(['interactive', 'azure-cli', 'device-code'])\n .default(getDefaultLogin(), '\"azure-cli\" in CI, \"device-code\" in Github Codespaces, \"interactive\" otherwise'),\n // Verify the type with `satisfies` to preserve individual function signatures.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n} as const satisfies Record<keyof ReusedOptions, (...args: any[]) => Option>;\n\n/** Parse the session mode based on user input (e.g. --mode argument in start.) */\nfunction parseBundleMode(mode: string): BundleMode {\n switch (mode.toLowerCase()) {\n case 'lib':\n case 'library':\n return 'library';\n case 'dev':\n case 'development':\n return 'development';\n case 'prod':\n case 'production':\n return 'production';\n default:\n throw new InvalidArgumentError(`Valid options are 'lib', 'dev', or 'prod'.`);\n }\n}\n\nfunction getDefaultLogin(): string {\n return environmentInfo.isCI ? 'azure-cli' : environmentInfo.isCodespaces ? 'device-code' : 'interactive';\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/cli",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.48",
|
|
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",
|
|
@@ -10,34 +10,34 @@
|
|
|
10
10
|
"cloudpack": "./bin/cloudpack.js"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@ms-cloudpack/api-server": "^0.58.
|
|
14
|
-
"@ms-cloudpack/app-server": "^0.17.
|
|
15
|
-
"@ms-cloudpack/bundler": "^0.23.
|
|
16
|
-
"@ms-cloudpack/common-types": "^0.24.
|
|
17
|
-
"@ms-cloudpack/config": "^0.33.
|
|
13
|
+
"@ms-cloudpack/api-server": "^0.58.13",
|
|
14
|
+
"@ms-cloudpack/app-server": "^0.17.43",
|
|
15
|
+
"@ms-cloudpack/bundler": "^0.23.36",
|
|
16
|
+
"@ms-cloudpack/common-types": "^0.24.5",
|
|
17
|
+
"@ms-cloudpack/config": "^0.33.12",
|
|
18
18
|
"@ms-cloudpack/environment": "^0.1.1",
|
|
19
19
|
"@ms-cloudpack/json-utilities": "^0.1.10",
|
|
20
|
-
"@ms-cloudpack/overlay": "^0.17.
|
|
21
|
-
"@ms-cloudpack/package-utilities": "^11.3.
|
|
20
|
+
"@ms-cloudpack/overlay": "^0.17.124",
|
|
21
|
+
"@ms-cloudpack/package-utilities": "^11.3.2",
|
|
22
22
|
"@ms-cloudpack/path-string-parsing": "^1.2.6",
|
|
23
|
-
"@ms-cloudpack/path-utilities": "^3.0.
|
|
24
|
-
"@ms-cloudpack/remote-cache": "^0.10.
|
|
25
|
-
"@ms-cloudpack/setup-utilities": "^0.5.
|
|
26
|
-
"@ms-cloudpack/task-reporter": "^0.
|
|
27
|
-
"@ms-cloudpack/telemetry": "^0.10.
|
|
23
|
+
"@ms-cloudpack/path-utilities": "^3.0.2",
|
|
24
|
+
"@ms-cloudpack/remote-cache": "^0.10.8",
|
|
25
|
+
"@ms-cloudpack/setup-utilities": "^0.5.12",
|
|
26
|
+
"@ms-cloudpack/task-reporter": "^0.15.0",
|
|
27
|
+
"@ms-cloudpack/telemetry": "^0.10.12",
|
|
28
28
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
29
|
-
"commander": "^
|
|
29
|
+
"commander": "^13.0.0",
|
|
30
30
|
"cross-spawn": "^7.0.3",
|
|
31
31
|
"didyoumean": "^1.2.2",
|
|
32
32
|
"fast-glob": "^3.2.12",
|
|
33
33
|
"get-port": "^7.0.0",
|
|
34
|
-
"open": "^
|
|
34
|
+
"open": "^10.0.0",
|
|
35
35
|
"prompts": "^2.4.2",
|
|
36
36
|
"semver": "^7.6.0",
|
|
37
37
|
"workspace-tools": "^0.38.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ms-cloudpack/common-types": "^0.24.
|
|
40
|
+
"@ms-cloudpack/common-types": "^0.24.5",
|
|
41
41
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
42
42
|
"@ms-cloudpack/scripts": "^0.0.1",
|
|
43
43
|
"@ms-cloudpack/test-utilities": "^0.5.0",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BundleMessage } from '@ms-cloudpack/common-types';
|
|
2
|
-
import type { InitPackageIdentifier } from './InitPackageIdentifier.js';
|
|
3
|
-
export interface InitPackageResultErrors extends InitPackageIdentifier {
|
|
4
|
-
errors: BundleMessage[];
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=InitPackageResultErrors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InitPackageResultErrors.d.ts","sourceRoot":"","sources":["../../../../src/commands/init/types/InitPackageResultErrors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InitPackageResultErrors.js","sourceRoot":"","sources":["../../../../src/commands/init/types/InitPackageResultErrors.ts"],"names":[],"mappings":"","sourcesContent":["import type { BundleMessage } from '@ms-cloudpack/common-types';\nimport type { InitPackageIdentifier } from './InitPackageIdentifier.js';\n\nexport interface InitPackageResultErrors extends InitPackageIdentifier {\n errors: BundleMessage[];\n}\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BundleMessage } from '@ms-cloudpack/common-types';
|
|
2
|
-
import type { InitPackageIdentifier } from './InitPackageIdentifier.js';
|
|
3
|
-
export interface InitPackageResultWarnings extends InitPackageIdentifier {
|
|
4
|
-
warnings: BundleMessage[];
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=InitPackageResultWarnings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InitPackageResultWarnings.d.ts","sourceRoot":"","sources":["../../../../src/commands/init/types/InitPackageResultWarnings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,yBAA0B,SAAQ,qBAAqB;IACtE,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InitPackageResultWarnings.js","sourceRoot":"","sources":["../../../../src/commands/init/types/InitPackageResultWarnings.ts"],"names":[],"mappings":"","sourcesContent":["import type { BundleMessage } from '@ms-cloudpack/common-types';\nimport type { InitPackageIdentifier } from './InitPackageIdentifier.js';\n\nexport interface InitPackageResultWarnings extends InitPackageIdentifier {\n warnings: BundleMessage[];\n}\n"]}
|