jitsu-cli 2.14.0-beta.93 → 2.14.0-beta.97
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/LICENSE +21 -0
- package/compiled/package.json +1 -1
- package/compiled/src/commands/deploy.js +6 -2
- package/dist/main.js +7 -5
- package/dist/main.js.map +2 -2
- package/package.json +28 -28
- package/src/commands/deploy.ts +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jitsu-cli",
|
|
3
|
-
"version": "2.14.0-beta.
|
|
3
|
+
"version": "2.14.0-beta.97",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/jitsucom/jitsu",
|
|
@@ -17,37 +17,21 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"private": false,
|
|
20
|
-
"scripts": {
|
|
21
|
-
"clean": "rm -rf ./dist ./compiled",
|
|
22
|
-
"typecheck": "tsc --noEmit",
|
|
23
|
-
"build": "tsc && tsx build.mts",
|
|
24
|
-
"cli": "tsx src/index.ts",
|
|
25
|
-
"run": "pnpm build && node dist/main.js",
|
|
26
|
-
"login": "pnpm build && node dist/main.js login",
|
|
27
|
-
"init child": "pnpm build && node dist/main.js init",
|
|
28
|
-
"build child": "pnpm build && node dist/main.js build",
|
|
29
|
-
"run child": "pnpm build && node dist/main.js run -e ./data/page.json",
|
|
30
|
-
"test child": "pnpm build && node dist/main.js test",
|
|
31
|
-
"deploy child": "pnpm build && node dist/main.js deploy"
|
|
32
|
-
},
|
|
33
20
|
"dependencies": {
|
|
34
|
-
"esbuild": "
|
|
21
|
+
"esbuild": "^0.27.0",
|
|
35
22
|
"figlet": "^1.6.0",
|
|
36
23
|
"jest-cli": "^29.7.0",
|
|
37
|
-
"tslib": "
|
|
38
|
-
"typescript": "
|
|
24
|
+
"tslib": "^2.6.3",
|
|
25
|
+
"typescript": "^5.6.3"
|
|
39
26
|
},
|
|
40
27
|
"devDependencies": {
|
|
41
|
-
"@jitsu/common-config": "workspace:*",
|
|
42
|
-
"@jitsu/functions-lib": "workspace:*",
|
|
43
|
-
"@jitsu/protocols": "workspace:*",
|
|
44
28
|
"@types/chalk": "^2.2.0",
|
|
45
29
|
"@types/commander": "^2.12.2",
|
|
46
30
|
"@types/express": "^4.17.21",
|
|
47
31
|
"@types/inquirer": "^9.0.3",
|
|
48
|
-
"@types/lodash": "
|
|
49
|
-
"@types/node": "
|
|
50
|
-
"@vitest/ui": "
|
|
32
|
+
"@types/lodash": "^4.17.24",
|
|
33
|
+
"@types/node": "^18.15.3",
|
|
34
|
+
"@vitest/ui": "^4.1.4",
|
|
51
35
|
"chalk": "^5.3.0",
|
|
52
36
|
"commander": "^11.0.0",
|
|
53
37
|
"cross-fetch": "^4.0.0",
|
|
@@ -58,11 +42,27 @@
|
|
|
58
42
|
"js-yaml": "^4.1.0",
|
|
59
43
|
"@types/js-yaml": "^4.0.9",
|
|
60
44
|
"json5": "^2.2.3",
|
|
61
|
-
"
|
|
62
|
-
"lodash": "catalog:",
|
|
45
|
+
"lodash": "^4.18.1",
|
|
63
46
|
"prismjs": "^1.30.0",
|
|
64
47
|
"semver": "^7.5.4",
|
|
65
|
-
"tsx": "
|
|
66
|
-
"vitest": "
|
|
48
|
+
"tsx": "^4.21.0",
|
|
49
|
+
"vitest": "^4.1.4",
|
|
50
|
+
"@jitsu/common-config": "0.0.0",
|
|
51
|
+
"@jitsu/functions-lib": "2.14.0-beta.97",
|
|
52
|
+
"@jitsu/protocols": "2.14.0-beta.97",
|
|
53
|
+
"juava": "0.0.0"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"clean": "rm -rf ./dist ./compiled",
|
|
57
|
+
"typecheck": "tsc --noEmit",
|
|
58
|
+
"build": "tsc && tsx build.mts",
|
|
59
|
+
"cli": "tsx src/index.ts",
|
|
60
|
+
"run": "pnpm build && node dist/main.js",
|
|
61
|
+
"login": "pnpm build && node dist/main.js login",
|
|
62
|
+
"init child": "pnpm build && node dist/main.js init",
|
|
63
|
+
"build child": "pnpm build && node dist/main.js build",
|
|
64
|
+
"run child": "pnpm build && node dist/main.js run -e ./data/page.json",
|
|
65
|
+
"test child": "pnpm build && node dist/main.js test",
|
|
66
|
+
"deploy child": "pnpm build && node dist/main.js deploy"
|
|
67
67
|
}
|
|
68
|
-
}
|
|
68
|
+
}
|
package/src/commands/deploy.ts
CHANGED
|
@@ -100,12 +100,14 @@ async function deployFunctions(
|
|
|
100
100
|
const dir = `dist/${kind}s`;
|
|
101
101
|
const functionsDir = path.resolve(projectDir, dir);
|
|
102
102
|
|
|
103
|
+
if (!existsSync(functionsDir)) {
|
|
104
|
+
console.warn(`No ${b(dir)} directory found, skipping ${kind}s. Please make sure that you have built the project.`);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
103
107
|
const functionsFiles = readdirSync(functionsDir);
|
|
104
108
|
if (functionsFiles.length === 0) {
|
|
105
|
-
console.warn(
|
|
106
|
-
|
|
107
|
-
);
|
|
108
|
-
process.exit(1);
|
|
109
|
+
console.warn(`No ${kind} files found in ${b(dir)}, skipping. Please make sure that you have built the project.`);
|
|
110
|
+
return;
|
|
109
111
|
}
|
|
110
112
|
const selectedFiles: string[] = [];
|
|
111
113
|
if (selected) {
|