@intuned/runtime-dev 1.0.6-cli.8.0.8 → 1.0.6-cli.8.1.0
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.
|
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
const exclusions = ["node_modules/**", ".git/**", "dist/**", "build/**", "coverage/**", ".next/**", ".cache/**", "out/**", "tmp/**", ".DS_Store", "npm-debug.log*", "yarn-debug.log*", "yarn-error.log*", ".env", ".env.*", "**/*.map", "**/*.tsbuildinfo"];
|
|
7
|
+
const exclusions = ["node_modules/**", ".git/**", "dist/**", "build/**", "coverage/**", ".next/**", ".cache/**", "out/**", "tmp/**", ".DS_Store", "npm-debug.log*", "yarn-debug.log*", "yarn-error.log*", ".env", ".env.*", "**/*.map", "**/*.tsbuildinfo", "tsconfig.json"];
|
|
8
8
|
var _default = exports.default = exclusions;
|
|
@@ -168,24 +168,26 @@ async function deployProject(projectName, auth) {
|
|
|
168
168
|
if (!response.ok) {
|
|
169
169
|
throw new Error(`Error deploying project`);
|
|
170
170
|
}
|
|
171
|
-
const data = await response.json();
|
|
172
|
-
if (!data) {
|
|
173
|
-
throw new Error("Project not deployed");
|
|
174
|
-
}
|
|
175
171
|
const startTime = Date.now();
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
172
|
+
return new Promise((resolve, reject) => {
|
|
173
|
+
const checkInterval = setInterval(async () => {
|
|
174
|
+
try {
|
|
175
|
+
const status = await checkIntunedProjectDeployStatus(workspaceId, projectName, apiKey);
|
|
176
|
+
if (status === "completed" || status === "failed" || status === "not_found") {
|
|
177
|
+
clearInterval(checkInterval);
|
|
178
|
+
resolve(status === "completed");
|
|
179
|
+
}
|
|
180
|
+
const elapsedTime = Date.now() - startTime;
|
|
181
|
+
if (elapsedTime > _constants.PROJECT_DEPLOY_TIMEOUT) {
|
|
182
|
+
clearInterval(checkInterval);
|
|
183
|
+
reject(new Error(`Deployment timed out after ${Math.floor(_constants.PROJECT_DEPLOY_TIMEOUT / 1000 / 60)} minutes`));
|
|
184
|
+
}
|
|
185
|
+
} catch (error) {
|
|
186
|
+
clearInterval(checkInterval);
|
|
187
|
+
reject(error);
|
|
188
|
+
}
|
|
189
|
+
}, 5000);
|
|
190
|
+
});
|
|
189
191
|
}
|
|
190
192
|
const validateProjectName = projectName => {
|
|
191
193
|
const nameSchema = _zod.z.string().min(1, "Project Name is required").max(50, "Name must be 50 characters or less").regex(/^[a-z0-9]+(?:[-_][a-z0-9]+)*$/, "Name can only contain lowercase letters, numbers, hyphens, and underscores in between").refine(value => !_zod.z.string().uuid().safeParse(value).success, {
|