project-devkit 2.0.2 → 2.0.4

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.2",
3
+ "version": "2.0.4",
4
4
  "description": "Plugin-based CLI toolkit for project infrastructure management",
5
5
  "type": "module",
6
6
  "bin": {
@@ -43,11 +43,11 @@ function validateWithEnvSchema(envFile, schemaFile) {
43
43
  });
44
44
  console.log(chalk.green(' .env.schema validation passed'));
45
45
  } catch (e) {
46
- const output = (e.stdout || e.stderr || e.message).trimEnd();
46
+ const raw = (e.stdout || e.stderr || e.message).trimEnd();
47
+ // Strip ANSI escape sequences to prevent color bleeding
48
+ const output = raw.replace(/\x1b\[[0-9;]*m/g, '');
47
49
  console.log(chalk.yellow(' .env.schema validation warnings:'));
48
50
  console.log(output);
49
- // Reset terminal colors in case envschema left unclosed ANSI sequences
50
- process.stdout.write('\x1b[0m');
51
51
  }
52
52
  }
53
53