jitsu-cli 1.9.12 → 1.9.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/.turbo/turbo-build.log +28 -28
- package/.turbo/turbo-clean.log +5 -5
- package/compiled/package.json +2 -2
- package/compiled/src/commands/build.js +6 -1
- package/dist/main.js +905 -3314
- package/dist/main.js.map +1 -1
- package/package.json +6 -6
- package/src/commands/build.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jitsu-cli",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Jitsu Dev Team <dev@jitsu.com>",
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@babel/preset-env": "^7.23.2",
|
|
20
20
|
"@babel/preset-typescript": "^7.23.2",
|
|
21
|
-
"@rollup/plugin-commonjs": "^
|
|
21
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
22
22
|
"@rollup/plugin-json": "^6.0.0",
|
|
23
|
-
"@rollup/plugin-node-resolve": "^
|
|
23
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
24
24
|
"@rollup/plugin-terser": "^0.4.3",
|
|
25
25
|
"@rollup/plugin-typescript": "^11.1.3",
|
|
26
26
|
"@types/chalk": "^2.2.0",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"ts-node": "^10.9.2",
|
|
53
53
|
"webpack": "^5.95.0",
|
|
54
54
|
"webpack-cli": "^5.1.4",
|
|
55
|
-
"@jitsu/functions-lib": "1.9.
|
|
56
|
-
"
|
|
57
|
-
"
|
|
55
|
+
"@jitsu/functions-lib": "1.9.13",
|
|
56
|
+
"juava": "1.9.13",
|
|
57
|
+
"@jitsu/protocols": "1.9.13"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"clean": "rm -rf ./dist",
|
package/src/commands/build.ts
CHANGED
|
@@ -22,7 +22,8 @@ export async function build({ dir }: { dir?: string }) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
try {
|
|
25
|
-
await buildFiles(projectDir);
|
|
25
|
+
await buildFiles(projectDir, "functions");
|
|
26
|
+
await buildFiles(projectDir, "profiles");
|
|
26
27
|
} catch (e: any) {
|
|
27
28
|
throw new Error(
|
|
28
29
|
`Some of the functions failed to compile. See details above. Last error: ${e.message || "unknown"}`
|
|
@@ -47,6 +48,10 @@ const run = async cmd => {
|
|
|
47
48
|
async function buildFiles(projectDir: string, dir: string = "") {
|
|
48
49
|
let lastError: any = undefined;
|
|
49
50
|
const srcDir = path.resolve(projectDir, "src", dir);
|
|
51
|
+
if (!existsSync(srcDir)) {
|
|
52
|
+
console.info(`${b(dir)} directory not found in ${b(path.resolve(projectDir, "src"))}`);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
50
55
|
const files = readdirSync(srcDir);
|
|
51
56
|
if (files.length === 0) {
|
|
52
57
|
console.warn(`No functions found in ${b(srcDir)} directory`);
|