@ms-cloudpack/cli 0.72.0 → 0.72.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/bundle/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/bundle/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAK9E,iCAAiC;AACjC,eAAO,MAAM,IAAI,EAAE,mBAuBlB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { bundlerNames } from '@ms-cloudpack/bundler';
|
|
1
2
|
import { InvalidArgumentError, Option } from 'commander';
|
|
2
3
|
import { parseMatch } from '../../utilities/parseMatch.js';
|
|
3
4
|
import { reusedOptions } from '../../utilities/reusedOptions.js';
|
|
@@ -8,7 +9,7 @@ export const init = (program) => {
|
|
|
8
9
|
description: 'Bundles a package.',
|
|
9
10
|
options: {
|
|
10
11
|
mode: reusedOptions.mode({ action: 'bundle' }),
|
|
11
|
-
bundler: new Option('--bundler <name>', 'Force using a specific bundler.').choices(
|
|
12
|
+
bundler: new Option('--bundler <name>', 'Force using a specific bundler.').choices(bundlerNames),
|
|
12
13
|
match: new Option('--match <match...>', 'Bundle specific package(s), optionally with a version: e.g. "foo", "@foo/*", "foo@1.2.3"').argParser(parseMatch),
|
|
13
14
|
package: new Option('--package <package>').hideHelp().argParser(() => {
|
|
14
15
|
throw new InvalidArgumentError('Use --match instead of --package');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/bundle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGzD,OAAO,EAAE,UAAU,EAAE,M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AS,CAAC,GAAG,EAAE;gBACnE,MAAM,IAAI,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;YACrE,CAAC,CAAC;YACF,MAAM,EAAE,IAAI,MAAM,CAChB,iBAAiB,EACjB,yGAAyG;gBACvG,8CAA8C,CACjD;YACD,iBAAiB,EAAE,IAAI,MAAM,CAAC,uBAAuB,EAAE,sBAAsB,CAAC;SAC/E;QACD,WAAW,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["import { bundlerNames } from '@ms-cloudpack/bundler';\nimport { InvalidArgumentError, Option } from 'commander';\nimport type { CommandInitFunction } from '../../types/CommandInitFunction.js';\nimport type { BundleOptions } from './types/BundleOptions.js';\nimport { parseMatch } from '../../utilities/parseMatch.js';\nimport { reusedOptions } from '../../utilities/reusedOptions.js';\n\n/** Defines the \"bundle\" verb. */\nexport const init: CommandInitFunction = (program) => {\n program.addSubCommand<BundleOptions>({\n name: 'bundle',\n description: 'Bundles a package.',\n options: {\n mode: reusedOptions.mode({ action: 'bundle' }),\n bundler: new Option('--bundler <name>', 'Force using a specific bundler.').choices(bundlerNames),\n match: new Option(\n '--match <match...>',\n 'Bundle specific package(s), optionally with a version: e.g. \"foo\", \"@foo/*\", \"foo@1.2.3\"',\n ).argParser(parseMatch),\n package: new Option('--package <package>').hideHelp().argParser(() => {\n throw new InvalidArgumentError('Use --match instead of --package');\n }),\n outdir: new Option(\n '--outdir <path>',\n 'Path for the bundle output, relative to current path (or the resolved path to --package if specified). ' +\n 'Default is a path under the cloudpack cache.',\n ),\n disableSourceMaps: new Option('--disable-source-maps', 'Disable source maps.'),\n },\n getExecutor: () => import('./execute.js'),\n });\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.2",
|
|
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,17 +10,18 @@
|
|
|
10
10
|
"cloudpack": "./bin/cloudpack.js"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@ms-cloudpack/api-server": "^0.54.
|
|
14
|
-
"@ms-cloudpack/app-server": "^0.16.
|
|
15
|
-
"@ms-cloudpack/
|
|
16
|
-
"@ms-cloudpack/
|
|
13
|
+
"@ms-cloudpack/api-server": "^0.54.2",
|
|
14
|
+
"@ms-cloudpack/app-server": "^0.16.6",
|
|
15
|
+
"@ms-cloudpack/bundler": "^0.23.3",
|
|
16
|
+
"@ms-cloudpack/common-types": "^0.21.1",
|
|
17
|
+
"@ms-cloudpack/config": "^0.31.2",
|
|
17
18
|
"@ms-cloudpack/json-utilities": "^0.1.7",
|
|
18
|
-
"@ms-cloudpack/overlay": "^0.17.
|
|
19
|
-
"@ms-cloudpack/package-utilities": "^10.2.
|
|
19
|
+
"@ms-cloudpack/overlay": "^0.17.78",
|
|
20
|
+
"@ms-cloudpack/package-utilities": "^10.2.2",
|
|
20
21
|
"@ms-cloudpack/path-string-parsing": "^1.2.4",
|
|
21
|
-
"@ms-cloudpack/path-utilities": "^2.7.
|
|
22
|
-
"@ms-cloudpack/remote-cache": "^0.8.
|
|
23
|
-
"@ms-cloudpack/setup-utilities": "^0.4.
|
|
22
|
+
"@ms-cloudpack/path-utilities": "^2.7.47",
|
|
23
|
+
"@ms-cloudpack/remote-cache": "^0.8.14",
|
|
24
|
+
"@ms-cloudpack/setup-utilities": "^0.4.3",
|
|
24
25
|
"@ms-cloudpack/task-reporter": "^0.14.5",
|
|
25
26
|
"@ms-cloudpack/telemetry": "^0.6.3",
|
|
26
27
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"workspace-tools": "^0.36.4"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@ms-cloudpack/common-types": "^0.21.
|
|
39
|
+
"@ms-cloudpack/common-types": "^0.21.1",
|
|
39
40
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
40
41
|
"@ms-cloudpack/scripts": "^0.0.1",
|
|
41
42
|
"@ms-cloudpack/test-utilities": "^0.5.0",
|