@ms-cloudpack/cli 0.56.8 → 0.56.9

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.
@@ -17,7 +17,7 @@ export async function getRepositoryName(appPath) {
17
17
  return packageJsonContent.name;
18
18
  }
19
19
  catch (e) {
20
- console.warn('An error occurred while getting repository name. This is not a critical error. You man continue to work.', e);
20
+ console.warn('An error occurred while getting repository name. This is not a critical error. You can continue to work.', e);
21
21
  return undefined;
22
22
  }
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getRepositoryName.js","sourceRoot":"","sources":["../../src/utilities/getRepositoryName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,OAAe;IACrD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,eAAe,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC;QACrD,MAAM,mBAAmB,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,kBAAkB,GAAG,CAAC,MAAM,QAAQ,CAAC,mBAAmB,CAAC,CAAsB,CAAC;QACtF,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACxB,OAAO,CAAC,IAAI,CAAC,kBAAkB,mBAAmB,GAAG,CAAC,CAAC;YACvD,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACjC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,IAAI,CACV,0GAA0G,EAC1G,CAAC,CACF,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC","sourcesContent":["import { readJson } from '@ms-cloudpack/json-utilities';\nimport { findProjectRoot } from '@ms-cloudpack/package-utilities';\nimport path from 'path';\n\n/**\n * Gets the name of the workspace or git repository from the root package.json.\n * @returns The name of the workspace or repository. If the name is not found, undefined is returned.\n */\nexport async function getRepositoryName(appPath: string) {\n try {\n const rootPath = findProjectRoot(appPath) || appPath;\n const rootPackageJsonPath = path.join(rootPath, 'package.json');\n const packageJsonContent = (await readJson(rootPackageJsonPath)) as { name?: string };\n if (!packageJsonContent) {\n console.warn(`Could not read ${rootPackageJsonPath}.`);\n return undefined;\n }\n\n return packageJsonContent.name;\n } catch (e) {\n console.warn(\n 'An error occurred while getting repository name. This is not a critical error. You man continue to work.',\n e,\n );\n return undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"getRepositoryName.js","sourceRoot":"","sources":["../../src/utilities/getRepositoryName.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,OAAe;IACrD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,eAAe,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC;QACrD,MAAM,mBAAmB,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QAChE,MAAM,kBAAkB,GAAG,CAAC,MAAM,QAAQ,CAAC,mBAAmB,CAAC,CAAsB,CAAC;QACtF,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACxB,OAAO,CAAC,IAAI,CAAC,kBAAkB,mBAAmB,GAAG,CAAC,CAAC;YACvD,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACjC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,IAAI,CACV,0GAA0G,EAC1G,CAAC,CACF,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC","sourcesContent":["import { readJson } from '@ms-cloudpack/json-utilities';\nimport { findProjectRoot } from '@ms-cloudpack/package-utilities';\nimport path from 'path';\n\n/**\n * Gets the name of the workspace or git repository from the root package.json.\n * @returns The name of the workspace or repository. If the name is not found, undefined is returned.\n */\nexport async function getRepositoryName(appPath: string) {\n try {\n const rootPath = findProjectRoot(appPath) || appPath;\n const rootPackageJsonPath = path.join(rootPath, 'package.json');\n const packageJsonContent = (await readJson(rootPackageJsonPath)) as { name?: string };\n if (!packageJsonContent) {\n console.warn(`Could not read ${rootPackageJsonPath}.`);\n return undefined;\n }\n\n return packageJsonContent.name;\n } catch (e) {\n console.warn(\n 'An error occurred while getting repository name. This is not a critical error. You can continue to work.',\n e,\n );\n return undefined;\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/cli",
3
- "version": "0.56.8",
3
+ "version": "0.56.9",
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,20 +10,20 @@
10
10
  "cloudpack": "./bin/cloudpack.js"
11
11
  },
12
12
  "dependencies": {
13
- "@ms-cloudpack/api-server": "^0.32.0",
14
- "@ms-cloudpack/bundle-server": "^0.2.31",
15
- "@ms-cloudpack/config": "^0.17.34",
13
+ "@ms-cloudpack/api-server": "^0.32.1",
14
+ "@ms-cloudpack/bundle-server": "^0.2.32",
15
+ "@ms-cloudpack/config": "^0.17.35",
16
16
  "@ms-cloudpack/config-types": "^0.6.0",
17
17
  "@ms-cloudpack/feature-flags": "^0.1.1",
18
18
  "@ms-cloudpack/json-utilities": "^0.1.4",
19
- "@ms-cloudpack/package-utilities": "^6.0.0",
20
- "@ms-cloudpack/path-string-parsing": "^1.2.0",
21
- "@ms-cloudpack/path-utilities": "^2.6.0",
22
- "@ms-cloudpack/remote-cache": "^0.5.0",
23
- "@ms-cloudpack/app-server": "^0.2.1",
24
- "@ms-cloudpack/task-reporter": "^0.11.1",
19
+ "@ms-cloudpack/package-utilities": "^6.0.1",
20
+ "@ms-cloudpack/path-string-parsing": "^1.2.1",
21
+ "@ms-cloudpack/path-utilities": "^2.6.1",
22
+ "@ms-cloudpack/remote-cache": "^0.5.1",
23
+ "@ms-cloudpack/app-server": "^0.2.2",
24
+ "@ms-cloudpack/task-reporter": "^0.11.2",
25
25
  "@ms-cloudpack/telemetry": "^0.4.6",
26
- "@ms-cloudpack/overlay": "^0.16.80",
26
+ "@ms-cloudpack/overlay": "^0.16.81",
27
27
  "@yarnpkg/lockfile": "^1.1.0",
28
28
  "commander": "^11.1.0",
29
29
  "cross-spawn": "^7.0.3",