Skip to content

Commit

Permalink
Change NPM script to spawn with inherited STDIO (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpyder authored Dec 8, 2023
1 parent 8136262 commit bf07203
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changes/v1.16.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## v1.16.1 on 2023-12-08

### Fixed

* [#582](https://github.com/miniscruff/changie/issues/582) Running changie through NPM did not redirect the input stream, rendering 'changie new' inoperable
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [itself](https://github.com/miniscruff/changie).

## v1.16.1 on 2023-12-08

### Fixed

* [#582](https://github.com/miniscruff/changie/issues/582) Running changie through NPM did not redirect the input stream, rendering 'changie new' inoperable

## v1.16.0 on 2023-11-12

### Changed
Expand Down
2 changes: 1 addition & 1 deletion docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ summaryLength = 30
]
enable_anchor_link = true
issues_url = 'https://github.com/miniscruff/changie/issues/new'
version = 'v1.16.0'
version = 'v1.16.1'

[params.homepage_meta_tags]
meta_description = "Changie is a file based changelog management tool."
Expand Down
2 changes: 1 addition & 1 deletion docs/static/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"latest": "v1.16.0"
"latest": "v1.16.1"
}
4 changes: 1 addition & 3 deletions npm/changie.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ const runChangie = (filename) => {
const executable = path.join(DIST, filename + ext);
const stat = fs.statSync(executable)
if (stat.isFile()) {
const child = spawn(executable, process.argv.slice(2));
child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);
const child = spawn(executable, process.argv.slice(2), { stdio: 'inherit' });
child.on('close', (code) => {
process.exit(code);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "changie",
"version": "1.16.0",
"version": "1.16.1",
"author": "miniscruff",
"description": "Automated changelog tool for preparing releases with lots of customization options",
"bin": {
Expand Down

0 comments on commit bf07203

Please sign in to comment.