@ms-cloudpack/cli 0.40.6 → 0.42.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/commands/bundle/bundle.d.ts.map +1 -1
- package/lib/commands/bundle/bundle.js +3 -0
- package/lib/commands/bundle/bundle.js.map +1 -1
- package/lib/commands/init/bundleAndGetImports.d.ts.map +1 -1
- package/lib/commands/init/bundleAndGetImports.js +2 -1
- package/lib/commands/init/bundleAndGetImports.js.map +1 -1
- package/lib/commands/init/evaluateImportsForOverrides.d.ts.map +1 -1
- package/lib/commands/init/evaluateImportsForOverrides.js +11 -1
- package/lib/commands/init/evaluateImportsForOverrides.js.map +1 -1
- package/lib/commands/init/init.d.ts.map +1 -1
- package/lib/commands/init/init.js +22 -8
- package/lib/commands/init/init.js.map +1 -1
- package/lib/commands/start/appServer/startAppServer.js +1 -1
- package/lib/commands/start/appServer/startAppServer.js.map +1 -1
- package/lib/commands/start/createBundleRequestForPackage.js +2 -2
- package/lib/commands/start/createBundleRequestForPackage.js.map +1 -1
- package/lib/commands/start/createPathToChoiceMap.d.ts +16 -0
- package/lib/commands/start/createPathToChoiceMap.d.ts.map +1 -0
- package/lib/commands/start/createPathToChoiceMap.js +35 -0
- package/lib/commands/start/createPathToChoiceMap.js.map +1 -0
- package/lib/commands/start/getAppPathFromUser.d.ts +9 -0
- package/lib/commands/start/getAppPathFromUser.d.ts.map +1 -0
- package/lib/commands/start/getAppPathFromUser.js +28 -0
- package/lib/commands/start/getAppPathFromUser.js.map +1 -0
- package/lib/commands/start/getMatchingApps.d.ts +9 -0
- package/lib/commands/start/getMatchingApps.d.ts.map +1 -0
- package/lib/commands/start/getMatchingApps.js +10 -0
- package/lib/commands/start/getMatchingApps.js.map +1 -0
- package/lib/commands/start/getStartingAppPath.d.ts +10 -0
- package/lib/commands/start/getStartingAppPath.d.ts.map +1 -0
- package/lib/commands/start/getStartingAppPath.js +29 -0
- package/lib/commands/start/getStartingAppPath.js.map +1 -0
- package/lib/commands/start/index.d.ts.map +1 -1
- package/lib/commands/start/index.js +1 -0
- package/lib/commands/start/index.js.map +1 -1
- package/lib/commands/start/runPrereqs.d.ts +7 -0
- package/lib/commands/start/runPrereqs.d.ts.map +1 -0
- package/lib/commands/start/runPrereqs.js +15 -0
- package/lib/commands/start/runPrereqs.js.map +1 -0
- package/lib/commands/start/setupReporting.d.ts +3 -0
- package/lib/commands/start/setupReporting.d.ts.map +1 -0
- package/lib/commands/start/setupReporting.js +25 -0
- package/lib/commands/start/setupReporting.js.map +1 -0
- package/lib/commands/start/start.d.ts +3 -1
- package/lib/commands/start/start.d.ts.map +1 -1
- package/lib/commands/start/start.js +21 -2
- package/lib/commands/start/start.js.map +1 -1
- package/lib/commands/start/types/StartOptions.d.ts +1 -0
- 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/Task.d.ts +6 -0
- package/lib/commands/sync/Task.d.ts.map +1 -0
- package/lib/commands/sync/Task.js +2 -0
- package/lib/commands/sync/Task.js.map +1 -0
- package/lib/commands/sync/createDownloadTask.d.ts +5 -0
- package/lib/commands/sync/createDownloadTask.d.ts.map +1 -0
- package/lib/commands/sync/createDownloadTask.js +22 -0
- package/lib/commands/sync/createDownloadTask.js.map +1 -0
- package/lib/commands/sync/createUploadTask.d.ts +5 -0
- package/lib/commands/sync/createUploadTask.d.ts.map +1 -0
- package/lib/commands/sync/createUploadTask.js +18 -0
- package/lib/commands/sync/createUploadTask.js.map +1 -0
- package/lib/commands/sync/getPackagesToSync.d.ts +9 -0
- package/lib/commands/sync/getPackagesToSync.d.ts.map +1 -0
- package/lib/commands/sync/getPackagesToSync.js +24 -0
- package/lib/commands/sync/getPackagesToSync.js.map +1 -0
- package/lib/commands/sync/index.d.ts +4 -0
- package/lib/commands/sync/index.d.ts.map +1 -0
- package/lib/commands/sync/index.js +12 -0
- package/lib/commands/sync/index.js.map +1 -0
- package/lib/commands/sync/sync.d.ts +4 -0
- package/lib/commands/sync/sync.d.ts.map +1 -0
- package/lib/commands/sync/sync.js +21 -0
- package/lib/commands/sync/sync.js.map +1 -0
- package/lib/commands/sync/syncInternal.d.ts +10 -0
- package/lib/commands/sync/syncInternal.d.ts.map +1 -0
- package/lib/commands/sync/syncInternal.js +39 -0
- package/lib/commands/sync/syncInternal.js.map +1 -0
- package/lib/commands/sync/types/SyncOptions.d.ts +4 -0
- package/lib/commands/sync/types/SyncOptions.d.ts.map +1 -0
- package/lib/commands/sync/types/SyncOptions.js +2 -0
- package/lib/commands/sync/types/SyncOptions.js.map +1 -0
- package/lib/common/findCloudpackAppPaths.d.ts +7 -0
- package/lib/common/findCloudpackAppPaths.d.ts.map +1 -0
- package/lib/common/findCloudpackAppPaths.js +11 -0
- package/lib/common/findCloudpackAppPaths.js.map +1 -0
- package/lib/common/getBundleDetails.d.ts +4 -1
- package/lib/common/getBundleDetails.d.ts.map +1 -1
- package/lib/common/getBundleDetails.js +6 -2
- package/lib/common/getBundleDetails.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -21
- package/lib/index.js.map +1 -1
- package/lib/performance/markers.d.ts +12 -0
- package/lib/performance/markers.d.ts.map +1 -1
- package/lib/performance/markers.js +12 -0
- package/lib/performance/markers.js.map +1 -1
- package/package.json +15 -11
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAcpC;;;GAGG;AACH,wBAAsB,IAAI,CAAC,WAAW,CAAC,EAAE;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;IACvB,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD,iBAkDA"}
|
package/lib/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getVersion } from '@ms-cloudpack/package-utilities';
|
|
2
|
-
import { TaskReporter
|
|
2
|
+
import { TaskReporter } from '@ms-cloudpack/task-reporter';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
import glob from 'glob';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from 'url';
|
|
7
|
-
import {
|
|
7
|
+
import { setSharedTelemetryAttributes } from './initTelemetry.js';
|
|
8
8
|
import { PerfMarkerCliEntry } from './performance/markers.js';
|
|
9
9
|
import { readConfig } from '@ms-cloudpack/config';
|
|
10
10
|
import { readJson } from '@ms-cloudpack/json-utilities';
|
|
@@ -21,33 +21,15 @@ export async function main(testOptions) {
|
|
|
21
21
|
const reporter = testOptions?.reporter || new TaskReporter();
|
|
22
22
|
const config = await readConfig(appPath);
|
|
23
23
|
const program = new Command();
|
|
24
|
-
const plainTextMode = argv.includes('--no-color') || argv.includes('-n');
|
|
25
24
|
const version = getVersion(import.meta.url);
|
|
26
|
-
const useDebugLogging = argv.includes('--debug') || argv.includes('-d');
|
|
27
25
|
const verb = argv[2];
|
|
28
|
-
const useVerboseLogging = argv.includes('--verbose') || argv.includes('-v') || verb === 'bundle';
|
|
29
26
|
program.name('cloudpack').version(version).usage('<command> [options]');
|
|
30
|
-
reporter.setOptions({
|
|
31
|
-
productName: 'Cloudpack',
|
|
32
|
-
version,
|
|
33
|
-
plainTextMode,
|
|
34
|
-
description: () => `Running "${bold(argv.slice(2).join(' '))}"`,
|
|
35
|
-
helpMessage: config.helpMessage,
|
|
36
|
-
...defaultLoggingConfig,
|
|
37
|
-
...(useVerboseLogging && verboseLoggingConfig),
|
|
38
|
-
...(useDebugLogging && debugLoggingConfig),
|
|
39
|
-
});
|
|
40
|
-
await initTelemetry({
|
|
41
|
-
useDebugLogging,
|
|
42
|
-
useVerboseLogging,
|
|
43
|
-
telemetryConfig: config.telemetry,
|
|
44
|
-
}, reporter);
|
|
45
27
|
const definition = (await readJson(path.join(appPath, 'package.json')));
|
|
46
28
|
setSharedTelemetryAttributes({
|
|
47
29
|
verb,
|
|
48
30
|
arguments: argv.slice(3).join(' '),
|
|
49
31
|
environment: process.env.CI || process.env.TF_BUILD ? 'ci' : 'local',
|
|
50
|
-
appName: definition
|
|
32
|
+
appName: definition?.name || '<unknown>',
|
|
51
33
|
});
|
|
52
34
|
// Ensure the glob works in tests
|
|
53
35
|
const commandsGlob = `commands/*/index${path.extname(currentFilePath)}`;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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","sourcesContent":["import { getVersion } from '@ms-cloudpack/package-utilities';\nimport { TaskReporter } from '@ms-cloudpack/task-reporter';\nimport { Command } from 'commander';\nimport glob from 'glob';\nimport path from 'path';\nimport { fileURLToPath, pathToFileURL } from 'url';\nimport { setSharedTelemetryAttributes } from './initTelemetry.js';\nimport { PerfMarkerCliEntry } from './performance/markers.js';\nimport { readConfig } from '@ms-cloudpack/config';\nimport type { CommandFunction } from './types/CommandFunction.js';\nimport { readJson } from '@ms-cloudpack/json-utilities';\nimport type { PackageJson } from '@ms-cloudpack/bundler-types';\n\nconst currentFilePath = fileURLToPath(import.meta.url);\nconst currentPath = path.dirname(currentFilePath);\n\n/**\n * Entry point for the cloudpack CLI.\n * Resolves all commands defined within the \"./commands\" folder.\n */\nexport async function main(testOptions?: {\n appPath: string;\n argv: string[];\n reporter: TaskReporter;\n preParseOverrides?: (program: Command) => void;\n}) {\n performance.mark(PerfMarkerCliEntry);\n\n const argv = testOptions?.argv || process.argv;\n const appPath = testOptions?.appPath || process.cwd();\n const reporter = testOptions?.reporter || new TaskReporter();\n const config = await readConfig(appPath);\n\n const program = new Command();\n const version = getVersion(import.meta.url);\n const verb = argv[2];\n\n program.name('cloudpack').version(version).usage('<command> [options]');\n\n const definition = (await readJson(path.join(appPath, 'package.json'))) as PackageJson;\n\n setSharedTelemetryAttributes({\n verb,\n arguments: argv.slice(3).join(' '),\n environment: process.env.CI || process.env.TF_BUILD ? 'ci' : 'local',\n appName: definition?.name || '<unknown>',\n });\n\n // Ensure the glob works in tests\n const commandsGlob = `commands/*/index${path.extname(currentFilePath)}`;\n const commands = glob.sync(commandsGlob, { cwd: currentPath });\n if (!commands.length) {\n // There was an issue with the glob above not working in tests, so make sure that doesn't happen again\n throw new Error(`No commands found under \"${currentPath}\".`);\n }\n\n for (const commandPath of commands) {\n const commandFunction = (await import(pathToFileURL(path.join(currentPath, commandPath)).toString())) as {\n init: CommandFunction;\n };\n\n commandFunction.init(program, { reporter, appPath, config });\n }\n\n program.option('-v, --verbose', 'Show additional details about the running tasks. (default: false)');\n program.option('-d, --debug', 'Show debug information (superset of --verbose). (default: false)');\n program.option('-n, --no-color', 'Disable colors in the output. (default: false)');\n\n testOptions?.preParseOverrides?.(program);\n\n await program.parseAsync(argv);\n\n if (program.args.length === 0) {\n program.help();\n }\n}\n"]}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Marks the start of the CLI entry point.
|
|
3
3
|
*/
|
|
4
4
|
export declare const PerfMarkerCliEntry = "CLI_ENTRY";
|
|
5
|
+
/**
|
|
6
|
+
* Marks the start of the sync download/upload operations.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PerfMarkerSyncStart = "SYNC_START";
|
|
5
9
|
/**
|
|
6
10
|
* Measures the time it takes to open the browser.
|
|
7
11
|
*/
|
|
@@ -10,4 +14,12 @@ export declare const PerfMeasurementOpenBrowser = "OPEN_BROWSER";
|
|
|
10
14
|
* Measures the time it takes to start resolving dependencies.
|
|
11
15
|
*/
|
|
12
16
|
export declare const PerfMeasurementTimeToResolveDependencies = "TIME_TO_RESOLVE_DEPENDENCIES";
|
|
17
|
+
/**
|
|
18
|
+
* Measures the time it takes to complete the download sync operation.
|
|
19
|
+
*/
|
|
20
|
+
export declare const PerfMeasurementSyncDownload = "SYNC_DOWNLOAD";
|
|
21
|
+
/**
|
|
22
|
+
* Measures the time it takes to complete the upload sync operation.
|
|
23
|
+
*/
|
|
24
|
+
export declare const PerfMeasurementSyncUpload = "SYNC_UPLOAD";
|
|
13
25
|
//# sourceMappingURL=markers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markers.d.ts","sourceRoot":"","sources":["../../src/performance/markers.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,kBAAkB,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"markers.d.ts","sourceRoot":"","sources":["../../src/performance/markers.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAIhD;;GAEG;AACH,eAAO,MAAM,0BAA0B,iBAAiB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,wCAAwC,iCAAiC,CAAC;AAEvF;;GAEG;AACH,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,yBAAyB,gBAAgB,CAAC"}
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
* Marks the start of the CLI entry point.
|
|
4
4
|
*/
|
|
5
5
|
export const PerfMarkerCliEntry = 'CLI_ENTRY';
|
|
6
|
+
/**
|
|
7
|
+
* Marks the start of the sync download/upload operations.
|
|
8
|
+
*/
|
|
9
|
+
export const PerfMarkerSyncStart = 'SYNC_START';
|
|
6
10
|
// Measurements
|
|
7
11
|
/**
|
|
8
12
|
* Measures the time it takes to open the browser.
|
|
@@ -12,4 +16,12 @@ export const PerfMeasurementOpenBrowser = 'OPEN_BROWSER';
|
|
|
12
16
|
* Measures the time it takes to start resolving dependencies.
|
|
13
17
|
*/
|
|
14
18
|
export const PerfMeasurementTimeToResolveDependencies = 'TIME_TO_RESOLVE_DEPENDENCIES';
|
|
19
|
+
/**
|
|
20
|
+
* Measures the time it takes to complete the download sync operation.
|
|
21
|
+
*/
|
|
22
|
+
export const PerfMeasurementSyncDownload = 'SYNC_DOWNLOAD';
|
|
23
|
+
/**
|
|
24
|
+
* Measures the time it takes to complete the upload sync operation.
|
|
25
|
+
*/
|
|
26
|
+
export const PerfMeasurementSyncUpload = 'SYNC_UPLOAD';
|
|
15
27
|
//# sourceMappingURL=markers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markers.js","sourceRoot":"","sources":["../../src/performance/markers.ts"],"names":[],"mappings":"AAAA,UAAU;AAEV;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE9C,eAAe;AAEf;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,cAAc,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,8BAA8B,CAAC","sourcesContent":["// Markers\n\n/**\n * Marks the start of the CLI entry point.\n */\nexport const PerfMarkerCliEntry = 'CLI_ENTRY';\n\n// Measurements\n\n/**\n * Measures the time it takes to open the browser.\n */\nexport const PerfMeasurementOpenBrowser = 'OPEN_BROWSER';\n\n/**\n * Measures the time it takes to start resolving dependencies.\n */\nexport const PerfMeasurementTimeToResolveDependencies = 'TIME_TO_RESOLVE_DEPENDENCIES';\n"]}
|
|
1
|
+
{"version":3,"file":"markers.js","sourceRoot":"","sources":["../../src/performance/markers.ts"],"names":[],"mappings":"AAAA,UAAU;AAEV;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAEhD,eAAe;AAEf;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,cAAc,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,8BAA8B,CAAC;AAEvF;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAC","sourcesContent":["// Markers\n\n/**\n * Marks the start of the CLI entry point.\n */\nexport const PerfMarkerCliEntry = 'CLI_ENTRY';\n\n/**\n * Marks the start of the sync download/upload operations.\n */\nexport const PerfMarkerSyncStart = 'SYNC_START';\n\n// Measurements\n\n/**\n * Measures the time it takes to open the browser.\n */\nexport const PerfMeasurementOpenBrowser = 'OPEN_BROWSER';\n\n/**\n * Measures the time it takes to start resolving dependencies.\n */\nexport const PerfMeasurementTimeToResolveDependencies = 'TIME_TO_RESOLVE_DEPENDENCIES';\n\n/**\n * Measures the time it takes to complete the download sync operation.\n */\nexport const PerfMeasurementSyncDownload = 'SYNC_DOWNLOAD';\n\n/**\n * Measures the time it takes to complete the upload sync operation.\n */\nexport const PerfMeasurementSyncUpload = 'SYNC_UPLOAD';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
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",
|
|
@@ -11,18 +11,20 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@lage-run/target-graph": "^0.8.6",
|
|
14
|
-
"@ms-cloudpack/api-server": "^0.
|
|
15
|
-
"@ms-cloudpack/bundler": "^0.14.
|
|
16
|
-
"@ms-cloudpack/config": "^0.
|
|
17
|
-
"@ms-cloudpack/create-express-app": "^1.3.
|
|
14
|
+
"@ms-cloudpack/api-server": "^0.12.1",
|
|
15
|
+
"@ms-cloudpack/bundler": "^0.14.5",
|
|
16
|
+
"@ms-cloudpack/config": "^0.11.0",
|
|
17
|
+
"@ms-cloudpack/create-express-app": "^1.3.9",
|
|
18
18
|
"@ms-cloudpack/json-utilities": "^0.0.7",
|
|
19
|
-
"@ms-cloudpack/overlay": "^0.14.
|
|
20
|
-
"@ms-cloudpack/package-utilities": "^5.0
|
|
19
|
+
"@ms-cloudpack/overlay": "^0.14.2",
|
|
20
|
+
"@ms-cloudpack/package-utilities": "^5.1.0",
|
|
21
21
|
"@ms-cloudpack/path-string-parsing": "^1.0.3",
|
|
22
|
-
"@ms-cloudpack/path-utilities": "^2.3.
|
|
23
|
-
"@ms-cloudpack/task-reporter": "^0.
|
|
22
|
+
"@ms-cloudpack/path-utilities": "^2.3.2",
|
|
23
|
+
"@ms-cloudpack/task-reporter": "^0.7.0",
|
|
24
24
|
"@ms-cloudpack/telemetry": "^0.3.6",
|
|
25
|
+
"@ms-cloudpack/remote-cache": "^0.0.1",
|
|
25
26
|
"commander": "^11.0.0",
|
|
27
|
+
"cross-spawn": "^7.0.3",
|
|
26
28
|
"es-module-lexer": "^1.0.3",
|
|
27
29
|
"fast-glob": "^3.2.12",
|
|
28
30
|
"filenamify": "^6.0.0",
|
|
@@ -32,6 +34,7 @@
|
|
|
32
34
|
"jsdom": "^22.0.0",
|
|
33
35
|
"object-hash": "^3.0.0",
|
|
34
36
|
"open": "^9.0.0",
|
|
37
|
+
"prompts": "^2.4.2",
|
|
35
38
|
"semver": "^7.3.7",
|
|
36
39
|
"uuid": "^9.0.0"
|
|
37
40
|
},
|
|
@@ -40,11 +43,12 @@
|
|
|
40
43
|
"@ms-cloudpack/eslint-plugin-internal": "*",
|
|
41
44
|
"@ms-cloudpack/scripts": "*",
|
|
42
45
|
"@ms-cloudpack/test-utilities": "*",
|
|
46
|
+
"@types/cross-spawn": "^6.0.2",
|
|
43
47
|
"@types/glob": "^8.1.0",
|
|
44
48
|
"@types/jsdom": "^21.1.1",
|
|
45
49
|
"@types/object-hash": "^3.0.2",
|
|
46
|
-
"@types/
|
|
47
|
-
"@types/
|
|
50
|
+
"@types/prompts": "^2.4.4",
|
|
51
|
+
"@types/uuid": "^9.0.1"
|
|
48
52
|
},
|
|
49
53
|
"scripts": {
|
|
50
54
|
"build:watch": "cloudpack-scripts build-watch",
|