jitsu-cli 2.14.0-beta.96 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jitsu-cli",
3
- "version": "2.14.0-beta.96",
3
+ "version": "2.14.0-beta.97",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/jitsucom/jitsu",
@@ -48,8 +48,8 @@
48
48
  "tsx": "^4.21.0",
49
49
  "vitest": "^4.1.4",
50
50
  "@jitsu/common-config": "0.0.0",
51
- "@jitsu/functions-lib": "2.14.0-beta.96",
52
- "@jitsu/protocols": "2.14.0-beta.96",
51
+ "@jitsu/functions-lib": "2.14.0-beta.97",
52
+ "@jitsu/protocols": "2.14.0-beta.97",
53
53
  "juava": "0.0.0"
54
54
  },
55
55
  "scripts": {
@@ -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
- red(`Can't find function files in ${b(dir)} directory. Please make sure that you have built the project.`)
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) {