@ms-cloudpack/cli 0.54.16 → 0.54.18

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/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYzC;;;GAGG;AACH,wBAAsB,IAAI,CAAC,IAAI,GAAE,MAAM,EAAiB,EAAE,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,iBA+BvG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBzC;;;GAGG;AACH,wBAAsB,IAAI,CAAC,IAAI,GAAE,MAAM,EAAiB,EAAE,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,iBA+BvG"}
package/lib/index.js CHANGED
@@ -3,10 +3,14 @@ import glob from 'fast-glob';
3
3
  import path from 'path';
4
4
  import { fileURLToPath, pathToFileURL } from 'url';
5
5
  import { PerfMarkerCliEntry } from './performance/markers.js';
6
- import { dynamicImportExtension } from './utilities/dynamicImportExtension.js';
7
6
  import { createCommand } from './common/createCommand.js';
8
7
  const currentFilePath = fileURLToPath(import.meta.url);
9
8
  const currentPath = path.dirname(currentFilePath);
9
+ /**
10
+ * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:
11
+ * compiled (`.js`) or Jest test in this package (`.ts`).
12
+ */
13
+ const dynamicImportExtension = path.extname(currentFilePath);
10
14
  /**
11
15
  * Entry point for the cloudpack CLI.
12
16
  * Resolves all commands defined within the "./commands" folder.
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAA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AAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QACnF,MAAM,aAAa,GAAG,CAAC,MAAM,MAAM,CAAC,YAAY,CAAC,CAAsB,CAAC;QAExE,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,iBAAiB,EAAE,CAAC,OAAO,CAAC,CAAC;IAE7B,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAE/B,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,CAAC,IAAI,EAAE,CAAC;IACjB,CAAC;AACH,CAAC","sourcesContent":["import { getVersion } from '@ms-cloudpack/package-utilities';\nimport type { Command } from 'commander';\nimport glob from 'fast-glob';\nimport path from 'path';\nimport { fileURLToPath, pathToFileURL } from 'url';\nimport { PerfMarkerCliEntry } from './performance/markers.js';\nimport type { CommandInitModule } from './types/CommandInitFunction.js';\nimport { dynamicImportExtension } from './utilities/dynamicImportExtension.js';\nimport { createCommand } from './common/createCommand.js';\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(argv: string[] = process.argv, preParseOverrides?: (program: Command) => void) {\n performance.mark(PerfMarkerCliEntry);\n\n const version = getVersion(import.meta.url);\n\n // Create the top-level command and apply common options\n // (avoids \"unknown option\" errors if they're specified without a verb)\n const program = createCommand('cloudpack');\n program.version(version).usage('<command> [options]');\n\n // Get all the available commands (with the correct extension for runtime context)\n const commands = await glob(`commands/*/index${dynamicImportExtension}`, { 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 resolvedPath = pathToFileURL(path.join(currentPath, commandPath)).toString();\n const commandModule = (await import(resolvedPath)) as CommandInitModule;\n\n commandModule.init(program);\n }\n\n preParseOverrides?.(program);\n\n await program.parseAsync(argv);\n\n if (program.args.length === 0) {\n program.help();\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,eAAe,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACvD,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;AAClD;;;GAGG;AACH,MAAM,sBAAsB,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,OAAiB,OAAO,CAAC,IAAI,EAAE,iBAA8C;IACtG,WAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAErC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE5C,wDAAwD;IACxD,uEAAuE;IACvE,MAAM,OAAO,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;IAC3C,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAEtD,kFAAkF;IAClF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,sBAAsB,EAAE,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC,CAAC;IAC/F,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QACrB,sGAAsG;QACtG,MAAM,IAAI,KAAK,CAAC,4BAA4B,WAAW,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,MAAM,WAAW,IAAI,QAAQ,EAAE,CAAC;QACnC,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QACnF,MAAM,aAAa,GAAG,CAAC,MAAM,MAAM,CAAC,YAAY,CAAC,CAAsB,CAAC;QAExE,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,iBAAiB,EAAE,CAAC,OAAO,CAAC,CAAC;IAE7B,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAE/B,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,CAAC,IAAI,EAAE,CAAC;IACjB,CAAC;AACH,CAAC","sourcesContent":["import { getVersion } from '@ms-cloudpack/package-utilities';\nimport type { Command } from 'commander';\nimport glob from 'fast-glob';\nimport path from 'path';\nimport { fileURLToPath, pathToFileURL } from 'url';\nimport { PerfMarkerCliEntry } from './performance/markers.js';\nimport type { CommandInitModule } from './types/CommandInitFunction.js';\nimport { createCommand } from './common/createCommand.js';\n\nconst currentFilePath = fileURLToPath(import.meta.url);\nconst currentPath = path.dirname(currentFilePath);\n/**\n * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:\n * compiled (`.js`) or Jest test in this package (`.ts`).\n */\nconst dynamicImportExtension = path.extname(currentFilePath);\n\n/**\n * Entry point for the cloudpack CLI.\n * Resolves all commands defined within the \"./commands\" folder.\n */\nexport async function main(argv: string[] = process.argv, preParseOverrides?: (program: Command) => void) {\n performance.mark(PerfMarkerCliEntry);\n\n const version = getVersion(import.meta.url);\n\n // Create the top-level command and apply common options\n // (avoids \"unknown option\" errors if they're specified without a verb)\n const program = createCommand('cloudpack');\n program.version(version).usage('<command> [options]');\n\n // Get all the available commands (with the correct extension for runtime context)\n const commands = await glob(`commands/*/index${dynamicImportExtension}`, { 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 resolvedPath = pathToFileURL(path.join(currentPath, commandPath)).toString();\n const commandModule = (await import(resolvedPath)) as CommandInitModule;\n\n commandModule.init(program);\n }\n\n preParseOverrides?.(program);\n\n await program.parseAsync(argv);\n\n if (program.args.length === 0) {\n program.help();\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/cli",
3
- "version": "0.54.16",
3
+ "version": "0.54.18",
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,15 +10,15 @@
10
10
  "cloudpack": "./bin/cloudpack.js"
11
11
  },
12
12
  "dependencies": {
13
- "@ms-cloudpack/api-server": "^0.29.10",
14
- "@ms-cloudpack/bundle-server": "^0.2.3",
13
+ "@ms-cloudpack/api-server": "^0.29.11",
14
+ "@ms-cloudpack/bundle-server": "^0.2.4",
15
15
  "@ms-cloudpack/config": "^0.17.14",
16
16
  "@ms-cloudpack/config-types": "^0.4.0",
17
17
  "@ms-cloudpack/json-utilities": "^0.1.3",
18
18
  "@ms-cloudpack/package-utilities": "^5.7.8",
19
19
  "@ms-cloudpack/path-string-parsing": "^1.1.3",
20
- "@ms-cloudpack/remote-cache": "^0.4.3",
21
- "@ms-cloudpack/app-server": "^0.1.3",
20
+ "@ms-cloudpack/remote-cache": "^0.4.4",
21
+ "@ms-cloudpack/app-server": "^0.1.5",
22
22
  "@ms-cloudpack/task-reporter": "^0.11.0",
23
23
  "@ms-cloudpack/telemetry": "^0.4.5",
24
24
  "@yarnpkg/lockfile": "^1.1.0",
@@ -1,6 +0,0 @@
1
- /**
2
- * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:
3
- * compiled (`.js`) or Jest test in this package (`.ts`).
4
- */
5
- export declare const dynamicImportExtension: string;
6
- //# sourceMappingURL=dynamicImportExtension.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamicImportExtension.d.ts","sourceRoot":"","sources":["../../src/utilities/dynamicImportExtension.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAA+C,CAAC"}
@@ -1,8 +0,0 @@
1
- import path from 'path';
2
- import { fileURLToPath } from 'url';
3
- /**
4
- * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:
5
- * compiled (`.js`) or Jest test in this package (`.ts`).
6
- */
7
- export const dynamicImportExtension = path.extname(fileURLToPath(import.meta.url));
8
- //# sourceMappingURL=dynamicImportExtension.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamicImportExtension.js","sourceRoot":"","sources":["../../src/utilities/dynamicImportExtension.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC","sourcesContent":["import path from 'path';\nimport { fileURLToPath } from 'url';\n\n/**\n * Correct file extension (`.js` or `.ts`) depending on the context the code is running in:\n * compiled (`.js`) or Jest test in this package (`.ts`).\n */\nexport const dynamicImportExtension = path.extname(fileURLToPath(import.meta.url));\n"]}