@aloma.io/integration-sdk 3.0.1-10 → 3.0.1-11
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 +3 -3
- package/package.json +1 -1
- package/src/cli.mts +3 -3
- package/template/connector/package.json +1 -1
package/build/cli.mjs
CHANGED
@@ -69,13 +69,13 @@ program
|
|
69
69
|
fs.mkdirSync(target);
|
70
70
|
extract({ ...options, target, name });
|
71
71
|
await generateKeys({ target });
|
72
|
+
await exec(`cd ${target}; yarn`);
|
72
73
|
});
|
73
74
|
program
|
74
75
|
.command("build")
|
75
76
|
.description("Build the current connector project")
|
76
77
|
.action(async (str, options) => {
|
77
|
-
|
78
|
-
|
79
|
-
console.log(stdout, stderr);
|
78
|
+
const { stdout, stderr } = await exec(`rm -rf build; mkdir -p build/controller; cp ./src/controller/index.mts ./build/controller/.controller-for-types.mts;`);
|
79
|
+
console.log(stdout);
|
80
80
|
});
|
81
81
|
program.parse();
|
package/package.json
CHANGED
package/src/cli.mts
CHANGED
@@ -92,16 +92,16 @@ program
|
|
92
92
|
|
93
93
|
extract({ ...options, target, name });
|
94
94
|
await generateKeys({target});
|
95
|
+
await exec(`cd ${target}; yarn`);
|
95
96
|
});
|
96
97
|
|
97
98
|
program
|
98
99
|
.command("build")
|
99
100
|
.description("Build the current connector project")
|
100
101
|
.action(async (str, options) => {
|
101
|
-
|
102
|
-
const {stdout, stderr} = await exec(`rm -rf build; mkdir -p build/controller; cp ./src/controller/index.mts ./build/controller/.controller-for-types.mts; ./node_modules/typescript/bin/tsc`);
|
102
|
+
const {stdout, stderr} = await exec(`rm -rf build; mkdir -p build/controller; cp ./src/controller/index.mts ./build/controller/.controller-for-types.mts;`);
|
103
103
|
|
104
|
-
console.log(stdout
|
104
|
+
console.log(stdout);
|
105
105
|
});
|
106
106
|
|
107
107
|
program.parse();
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"scripts": {
|
10
10
|
"start": "node build/index.mjs",
|
11
11
|
"dev": "./node_modules/typescript/bin/tsc --watch",
|
12
|
-
"build": "
|
12
|
+
"build": "./node_modules/@aloma.io/integration-sdk/build/cli.mjs build; ./node_modules/typescript/bin/tsc",
|
13
13
|
"test": "./node_modules/mocha/bin/_mocha --recursive",
|
14
14
|
"format": "yarn prettier --write src/"
|
15
15
|
},
|