@constructor-io/constructorio-connect-cli 1.3.0 → 1.3.1

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":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAMA,OAAO,EAAQ,OAAO,EAAM,MAAM,aAAa,CAAC;AAiBhD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,OAAO;IACvC,MAAM,CAAC,WAAW,SAA4D;IAE9E,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,IAAI;;MAKT;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;YA+BnB,UAAU;IAmBxB,OAAO,CAAC,oBAAoB;YAUd,UAAU;YAsBV,uBAAuB;WAwBvB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAKvD,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAUjC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAqBlC,OAAO,CAAC,0BAA0B;CA4BnC"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAMA,OAAO,EAAQ,OAAO,EAAM,MAAM,aAAa,CAAC;AAyBhD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,OAAO;IACvC,MAAM,CAAC,WAAW,SAA4D;IAE9E,MAAM,CAAC,QAAQ,WAGb;IAEF,MAAM,CAAC,IAAI;;MAKT;IAEW,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;YA+BnB,UAAU;IAmBxB,OAAO,CAAC,oBAAoB;YAUd,UAAU;YAsBV,uBAAuB;WAwBvB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAKvD,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAWjC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAuBlC,OAAO,CAAC,0BAA0B;CA4BnC"}
@@ -40,6 +40,13 @@ const get_connect_token_1 = require("../customer/get-connect-token");
40
40
  const render_tip_1 = require("../rendering/render-tip");
41
41
  const is_git_repo_initialized_1 = require("../helpers/is-git-repo-initialized");
42
42
  const BOILERPLATE_REPO_PATH = "../../boilerplate-repo";
43
+ /**
44
+ * This ensures that the path will be fixed in Windows, since we're using `path.join()` to build the path.
45
+ * @see https://github.com/adamreisnz/replace-in-file/pull/169
46
+ */
47
+ const globConfig = {
48
+ windowsPathsNoEscape: true,
49
+ };
43
50
  class Init extends core_1.Command {
44
51
  static description = "Bootstrap a new Constructor.io Connect CLI repository.";
45
52
  static examples = [
@@ -135,6 +142,7 @@ class Init extends core_1.Command {
135
142
  files: packageJsonPath,
136
143
  from: "{{REPLACE_REPO_NAME}}",
137
144
  to: name,
145
+ glob: globConfig,
138
146
  });
139
147
  }
140
148
  static replaceConfigValues(config, connections, repoPath) {
@@ -142,11 +150,13 @@ class Init extends core_1.Command {
142
150
  files: path.join(repoPath, "connectrc.js"),
143
151
  from: '"{{REPLACE_CONFIG}}"',
144
152
  to: (0, build_config_file_1.buildConfigString)(config, connections),
153
+ glob: globConfig,
145
154
  });
146
155
  replace_in_file_1.default.replaceInFileSync({
147
156
  files: path.join(repoPath, "connectrc.js"),
148
157
  from: '"{{REPLACE_CONNECTIONS}}"',
149
158
  to: JSON.stringify(connections, null, 2),
159
+ glob: globConfig,
150
160
  });
151
161
  // Run `lint:fix` to ensure the generated files are properly linted & formatted
152
162
  (0, child_process_1.execSync)(`(cd ${repoPath} && npm run lint:fix)`);
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const _default: "1.3.0";
1
+ declare const _default: "1.3.1";
2
2
  export default _default;
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '1.3.0';
3
+ exports.default = '1.3.1';
@@ -148,5 +148,5 @@
148
148
  ]
149
149
  }
150
150
  },
151
- "version": "1.3.0"
151
+ "version": "1.3.1"
152
152
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-connect-cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "CLI tool to enable users to interface with the Constructor Connect Ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -70,7 +70,7 @@
70
70
  "fs-extra": "^11.2.0",
71
71
  "json-stringify-pretty-compact": "^3.0.0",
72
72
  "kleur": "^4.1.5",
73
- "replace-in-file": "^7.1.0"
73
+ "replace-in-file": "^7.2.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@oclif/test": "^3.2.6",