project-devkit 2.0.0 → 2.0.2

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": "project-devkit",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Plugin-based CLI toolkit for project infrastructure management",
5
5
  "type": "module",
6
6
  "bin": {
@@ -38,12 +38,16 @@ function validateWithEnvSchema(envFile, schemaFile) {
38
38
  }
39
39
 
40
40
  try {
41
- execSync(`envschema validate --schema "${schemaFile}" --env "${envFile}"`, {
41
+ execSync(`envschema validate "${schemaFile}" --env "${envFile}"`, {
42
42
  stdio: 'pipe', encoding: 'utf-8',
43
43
  });
44
44
  console.log(chalk.green(' .env.schema validation passed'));
45
45
  } catch (e) {
46
- console.log(chalk.yellow(` .env.schema validation warnings:\n${e.stdout || e.stderr || e.message}`));
46
+ const output = (e.stdout || e.stderr || e.message).trimEnd();
47
+ console.log(chalk.yellow(' .env.schema validation warnings:'));
48
+ console.log(output);
49
+ // Reset terminal colors in case envschema left unclosed ANSI sequences
50
+ process.stdout.write('\x1b[0m');
47
51
  }
48
52
  }
49
53