@ms-cloudpack/api-server 0.39.0 → 0.40.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.
@@ -6,12 +6,12 @@ import { getConfigPath, configTemplate } from '@ms-cloudpack/config';
6
6
  * Opens the cloudpack config file in the editor.
7
7
  */
8
8
  export async function editCloudpackConfig(cwd) {
9
- const { userConfigPath } = getConfigPath(cwd);
9
+ const { appConfigPath } = getConfigPath(cwd);
10
10
  // Check if file exists
11
- if (!(await isFile(userConfigPath))) {
11
+ if (!(await isFile(appConfigPath))) {
12
12
  // Create file with default config
13
- await writeJson(userConfigPath, configTemplate);
13
+ await writeJson(appConfigPath, configTemplate);
14
14
  }
15
- execSync(`code --goto ${JSON.stringify(userConfigPath)}`, { cwd });
15
+ execSync(`code --goto ${JSON.stringify(appConfigPath)}`, { cwd });
16
16
  }
17
17
  //# sourceMappingURL=editCloudpackConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"editCloudpackConfig.js","sourceRoot":"","sources":["../../src/utilities/editCloudpackConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAErE;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,GAAW;IACnD,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IAE9C,uBAAuB;IACvB,IAAI,CAAC,CAAC,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;QACpC,kCAAkC;QAClC,MAAM,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IAClD,CAAC;IAED,QAAQ,CAAC,eAAe,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import { writeJson } from '@ms-cloudpack/json-utilities';\nimport { isFile } from '@ms-cloudpack/path-utilities';\nimport { execSync } from 'child_process';\nimport { getConfigPath, configTemplate } from '@ms-cloudpack/config';\n\n/**\n * Opens the cloudpack config file in the editor.\n */\nexport async function editCloudpackConfig(cwd: string) {\n const { userConfigPath } = getConfigPath(cwd);\n\n // Check if file exists\n if (!(await isFile(userConfigPath))) {\n // Create file with default config\n await writeJson(userConfigPath, configTemplate);\n }\n\n execSync(`code --goto ${JSON.stringify(userConfigPath)}`, { cwd });\n}\n"]}
1
+ {"version":3,"file":"editCloudpackConfig.js","sourceRoot":"","sources":["../../src/utilities/editCloudpackConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAErE;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,GAAW;IACnD,MAAM,EAAE,aAAa,EAAE,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IAE7C,uBAAuB;IACvB,IAAI,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC;QACnC,kCAAkC;QAClC,MAAM,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IACjD,CAAC;IAED,QAAQ,CAAC,eAAe,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AACpE,CAAC","sourcesContent":["import { writeJson } from '@ms-cloudpack/json-utilities';\nimport { isFile } from '@ms-cloudpack/path-utilities';\nimport { execSync } from 'child_process';\nimport { getConfigPath, configTemplate } from '@ms-cloudpack/config';\n\n/**\n * Opens the cloudpack config file in the editor.\n */\nexport async function editCloudpackConfig(cwd: string) {\n const { appConfigPath } = getConfigPath(cwd);\n\n // Check if file exists\n if (!(await isFile(appConfigPath))) {\n // Create file with default config\n await writeJson(appConfigPath, configTemplate);\n }\n\n execSync(`code --goto ${JSON.stringify(appConfigPath)}`, { cwd });\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/api-server",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "description": "An implementation of the API server that does interacts with a task scheduler.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,18 +27,18 @@
27
27
  "@lage-run/logger": "^1.3.0",
28
28
  "@lage-run/scheduler": "^1.1.9",
29
29
  "@lage-run/target-graph": "^0.8.9",
30
- "@ms-cloudpack/bundler": "^0.20.2",
31
- "@ms-cloudpack/common-types": "^0.3.0",
32
- "@ms-cloudpack/config": "^0.19.8",
33
- "@ms-cloudpack/create-express-app": "^1.6.7",
30
+ "@ms-cloudpack/bundler": "^0.20.3",
31
+ "@ms-cloudpack/common-types": "^0.4.0",
32
+ "@ms-cloudpack/config": "^0.20.0",
33
+ "@ms-cloudpack/create-express-app": "^1.6.8",
34
34
  "@ms-cloudpack/data-bus": "^0.4.2",
35
35
  "@ms-cloudpack/file-watcher": "^0.1.2",
36
- "@ms-cloudpack/import-map": "^0.3.0",
36
+ "@ms-cloudpack/import-map": "^0.3.1",
37
37
  "@ms-cloudpack/json-utilities": "^0.1.4",
38
- "@ms-cloudpack/package-hashes": "^0.5.10",
39
- "@ms-cloudpack/package-utilities": "^7.3.0",
38
+ "@ms-cloudpack/package-hashes": "^0.5.11",
39
+ "@ms-cloudpack/package-utilities": "^7.3.1",
40
40
  "@ms-cloudpack/path-string-parsing": "^1.2.1",
41
- "@ms-cloudpack/path-utilities": "^2.7.4",
41
+ "@ms-cloudpack/path-utilities": "^2.7.5",
42
42
  "@ms-cloudpack/remote-cache": "^0.7.1",
43
43
  "@ms-cloudpack/task-reporter": "^0.13.1",
44
44
  "@ms-cloudpack/telemetry": "^0.5.1",