@aloma.io/integration-sdk 3.0.1-12 → 3.0.1-13
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/build/cli.mjs +10 -1
- package/package.json +1 -1
- package/src/cli.mts +11 -1
package/build/cli.mjs
CHANGED
@@ -73,12 +73,21 @@ program
|
|
73
73
|
await generateKeys({ target });
|
74
74
|
console.log('Installing dependencies ...');
|
75
75
|
await exec(`cd ${target}; yarn`);
|
76
|
+
console.log('Building ...');
|
77
|
+
await exec(`cd ${target}; yarn build`);
|
78
|
+
console.log(`
|
79
|
+
Success!
|
80
|
+
|
81
|
+
1.) Add the connector to a workspace
|
82
|
+
2.) Edit ./${name}/.env and insert the registration token
|
83
|
+
3.) Start the connector with cd ./${name}/; yarn start`);
|
76
84
|
});
|
77
85
|
program
|
78
86
|
.command("build")
|
79
87
|
.description("Build the current connector project")
|
80
88
|
.action(async (str, options) => {
|
81
89
|
const { stdout, stderr } = await exec(`rm -rf build; mkdir -p build/controller; cp ./src/controller/index.mts ./build/controller/.controller-for-types.mts;`);
|
82
|
-
|
90
|
+
if (stdout)
|
91
|
+
console.log(stdout);
|
83
92
|
});
|
84
93
|
program.parse();
|
package/package.json
CHANGED
package/src/cli.mts
CHANGED
@@ -98,6 +98,16 @@ program
|
|
98
98
|
|
99
99
|
console.log('Installing dependencies ...');
|
100
100
|
await exec(`cd ${target}; yarn`);
|
101
|
+
|
102
|
+
console.log('Building ...');
|
103
|
+
await exec(`cd ${target}; yarn build`);
|
104
|
+
|
105
|
+
console.log(`
|
106
|
+
Success!
|
107
|
+
|
108
|
+
1.) Add the connector to a workspace
|
109
|
+
2.) Edit ./${name}/.env and insert the registration token
|
110
|
+
3.) Start the connector with cd ./${name}/; yarn start`)
|
101
111
|
});
|
102
112
|
|
103
113
|
program
|
@@ -106,7 +116,7 @@ program
|
|
106
116
|
.action(async (str, options) => {
|
107
117
|
const {stdout, stderr} = await exec(`rm -rf build; mkdir -p build/controller; cp ./src/controller/index.mts ./build/controller/.controller-for-types.mts;`);
|
108
118
|
|
109
|
-
console.log(stdout);
|
119
|
+
if (stdout) console.log(stdout);
|
110
120
|
});
|
111
121
|
|
112
122
|
program.parse();
|