@intuned/runtime-dev 1.0.6-dev → 1.0.6-dev-1
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.
|
@@ -10,7 +10,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
10
10
|
_dotenv.default.config({
|
|
11
11
|
path: `.env`
|
|
12
12
|
});
|
|
13
|
-
_commander.program.description("Deploy an Intuned project to
|
|
13
|
+
_commander.program.description("Deploy an Intuned project to be public").argument("[project-name]", "Name of the project to deploy").option("-w, --workspace-id <id>", "Your Intuned workspace ID").option("-k, --api-key <key>", "Your Intuned API key").action(async (projectName, options) => {
|
|
14
14
|
try {
|
|
15
15
|
if (!projectName) {
|
|
16
16
|
throw new Error("Project name is required");
|
|
@@ -83,11 +83,6 @@ async function convertProjectToCodeTree(projectPath) {
|
|
|
83
83
|
currentDir = path.dirname(currentDir);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
if (!gitignoreFound) {
|
|
87
|
-
console.log(_chalk.default.yellow(".gitignore file not found. Using default exclusions only."));
|
|
88
|
-
} else {
|
|
89
|
-
console.log(_chalk.default.yellow("Using standard exclusions plus .gitignore patterns."));
|
|
90
|
-
}
|
|
91
86
|
const filesToDeploy = listFilesNotIgnored(projectPath, ignorePatterns);
|
|
92
87
|
let totalSize = 0;
|
|
93
88
|
for (const file of filesToDeploy) {
|
|
@@ -143,9 +138,8 @@ async function convertProjectToCodeTree(projectPath) {
|
|
|
143
138
|
}
|
|
144
139
|
return tree;
|
|
145
140
|
}
|
|
146
|
-
console.log(_chalk.default.cyan("\nBuilding
|
|
141
|
+
console.log(_chalk.default.cyan("\nBuilding project..."));
|
|
147
142
|
const tree = readDirectory(projectPath);
|
|
148
|
-
console.log(_chalk.default.green("Code tree generation complete!"));
|
|
149
143
|
return tree;
|
|
150
144
|
}
|
|
151
145
|
async function deployProject(projectName, auth) {
|
|
@@ -190,7 +184,6 @@ const validateProjectName = projectName => {
|
|
|
190
184
|
});
|
|
191
185
|
const validation = nameSchema.safeParse(projectName);
|
|
192
186
|
if (!validation.success) {
|
|
193
|
-
console.error(_chalk.default.red(validation.error.errors[0].message));
|
|
194
187
|
return {
|
|
195
188
|
isValid: false,
|
|
196
189
|
errorMessage: validation.error.errors[0].message
|