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/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 +3 -3
- package/src/commands/deploy.ts +6 -4
package/compiled/package.json
CHANGED
|
@@ -67,10 +67,14 @@ async function deployFunctions({ host, apikey, name: names }, projectDir, packag
|
|
|
67
67
|
const selected = names ? names.flatMap(n => n.split(",")).map(n => n.trim()) : undefined;
|
|
68
68
|
const dir = `dist/${kind}s`;
|
|
69
69
|
const functionsDir = path.resolve(projectDir, dir);
|
|
70
|
+
if (!existsSync(functionsDir)) {
|
|
71
|
+
console.warn(`No ${b(dir)} directory found, skipping ${kind}s. Please make sure that you have built the project.`);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
70
74
|
const functionsFiles = readdirSync(functionsDir);
|
|
71
75
|
if (functionsFiles.length === 0) {
|
|
72
|
-
console.warn(
|
|
73
|
-
|
|
76
|
+
console.warn(`No ${kind} files found in ${b(dir)}, skipping. Please make sure that you have built the project.`);
|
|
77
|
+
return;
|
|
74
78
|
}
|
|
75
79
|
const selectedFiles = [];
|
|
76
80
|
if (selected) {
|
package/dist/main.js
CHANGED
|
@@ -43147,12 +43147,14 @@ async function deployFunctions({ host, apikey, name: names }, projectDir2, packa
|
|
|
43147
43147
|
const selected = names ? names.flatMap((n) => n.split(",")).map((n) => n.trim()) : void 0;
|
|
43148
43148
|
const dir = `dist/${kind2}s`;
|
|
43149
43149
|
const functionsDir = import_path2.default.resolve(projectDir2, dir);
|
|
43150
|
+
if (!(0, import_fs5.existsSync)(functionsDir)) {
|
|
43151
|
+
console.warn(`No ${b(dir)} directory found, skipping ${kind2}s. Please make sure that you have built the project.`);
|
|
43152
|
+
return;
|
|
43153
|
+
}
|
|
43150
43154
|
const functionsFiles = (0, import_fs5.readdirSync)(functionsDir);
|
|
43151
43155
|
if (functionsFiles.length === 0) {
|
|
43152
|
-
console.warn(
|
|
43153
|
-
|
|
43154
|
-
);
|
|
43155
|
-
process.exit(1);
|
|
43156
|
+
console.warn(`No ${kind2} files found in ${b(dir)}, skipping. Please make sure that you have built the project.`);
|
|
43157
|
+
return;
|
|
43156
43158
|
}
|
|
43157
43159
|
const selectedFiles = [];
|
|
43158
43160
|
if (selected) {
|
|
@@ -43340,7 +43342,7 @@ var fs4 = __toESM(require("fs"));
|
|
|
43340
43342
|
// package.json
|
|
43341
43343
|
var package_default = {
|
|
43342
43344
|
name: "jitsu-cli",
|
|
43343
|
-
version: "2.14.0-beta.
|
|
43345
|
+
version: "2.14.0-beta.97",
|
|
43344
43346
|
repository: {
|
|
43345
43347
|
type: "git",
|
|
43346
43348
|
url: "https://github.com/jitsucom/jitsu",
|