Skip to content

Commit e0600fb

Browse files
committed
Merge branch 'release/2.1.2'
2 parents 0b00955 + 42fe446 commit e0600fb

File tree

14 files changed

+917
-1461
lines changed

14 files changed

+917
-1461
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9-
## v2.1.1 - 2021.01.25
9+
### v2.1.2 - 2025.10.01
10+
11+
### Fixed
12+
13+
- Fix bug with ANSI stripping ([dafebb3](https://github.com/studiometa/prettier-formatter-gitlab/commit/dafebb3))
14+
- Fix parsing of Prettier results ([6ba7c77](https://github.com/studiometa/prettier-formatter-gitlab/commit/6ba7c77))
15+
16+
### Changed
17+
18+
- Update dependencies ([9ecfa6e](https://github.com/studiometa/prettier-formatter-gitlab/commit/9ecfa6e))
19+
- Update dependency yaml to v2.7.1 ([#76](https://github.com/studiometa/prettier-formatter-gitlab/pull/76), [dacaf9f](https://github.com/studiometa/prettier-formatter-gitlab/commit/dacaf9f))
20+
21+
## v2.1.1 - 2025.01.25
1022

1123
### Fixed
1224

bin/cli.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ import { prettierFormatterGitLab } from '../src/index.js';
55
const cmd = process.argv[2];
66

77
if (cmd) {
8-
exec(cmd, async (error, stdout, stderr) => {
9-
if (error) {
10-
console.log(error.message);
11-
await prettierFormatterGitLab(stdout + stderr);
12-
process.exit(1);
13-
}
14-
});
8+
exec(
9+
cmd,
10+
{
11+
env: {
12+
...process.env,
13+
NO_COLOR: 'true',
14+
},
15+
},
16+
async (error, stdout, stderr) => {
17+
if (error) {
18+
console.log(error.message);
19+
await prettierFormatterGitLab(stdout + stderr);
20+
process.exit(1);
21+
}
22+
},
23+
);
1524
}

0 commit comments

Comments
 (0)