@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.
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +10 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
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"}
|
package/dist/commands/init.js
CHANGED
|
@@ -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
package/dist/version.js
CHANGED
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructor-io/constructorio-connect-cli",
|
|
3
|
-
"version": "1.3.
|
|
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.
|
|
73
|
+
"replace-in-file": "^7.2.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@oclif/test": "^3.2.6",
|