@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 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
- console.log(stdout);
90
+ if (stdout)
91
+ console.log(stdout);
83
92
  });
84
93
  program.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.0.1-12",
3
+ "version": "3.0.1-13",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
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();