@extrahorizon/exh-cli 1.12.0-dev-128-9562d29 → 1.12.0-dev-129-dc05e22

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/CHANGELOG.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ### v1.12.0
4
4
  * Now adding `$schema` as the last property when creating a new schema via `exh data schemas init`
5
+ * The `exh tasks create-repo` command now creates `package.json` and `task-config.json` files with 2 spaces indentation instead of 4 spaces.
5
6
 
6
7
  ### v1.11.1
7
8
  * Updated the ExH SDK to `8.8.2` to fix a security warning from `qs`
@@ -27,7 +27,7 @@ async function changePackageFile(name) {
27
27
  try {
28
28
  const pkg = JSON.parse((await (0, promises_1.readFile)(`${name}/package.json`)).toString());
29
29
  pkg.name = name;
30
- await (0, promises_1.writeFile)(`${name}/package.json`, JSON.stringify(pkg, null, 4));
30
+ await (0, promises_1.writeFile)(`${name}/package.json`, JSON.stringify(pkg, null, 2));
31
31
  }
32
32
  catch (err) {
33
33
  console.log('WARN: package.json not found. (possibly not a javascript repository');
@@ -37,7 +37,7 @@ async function changePackageFile(name) {
37
37
  taskConfig.$schema = (0, util_1.getSwaggerDocumentationUrl)('config-json-schemas/TaskConfig.json');
38
38
  taskConfig.name = name;
39
39
  taskConfig.description = `${name} task`;
40
- await (0, promises_1.writeFile)(`${name}/task-config.json`, JSON.stringify(taskConfig, null, 4));
40
+ await (0, promises_1.writeFile)(`${name}/task-config.json`, JSON.stringify(taskConfig, null, 2));
41
41
  }
42
42
  catch (err) { }
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/exh-cli",
3
- "version": "1.12.0-dev-128-9562d29",
3
+ "version": "1.12.0-dev-129-dc05e22",
4
4
  "main": "build/index.js",
5
5
  "exports": "./build/index.js",
6
6
  "license": "MIT",