Skip to content

Commit f3209b3

Browse files
authored
fix: output warnings/errors to stderr (#3)
* send warnings and errors to stderr * bump version to v1.0.2 * fix line endings
1 parent 964939c commit f3209b3

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@synaptic-simulations/mach",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "The last MSFS instrument bundler you'll ever need.",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/logger.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export class BuildLogger {
1919
scope,
2020
types: {
2121
file: { badge: ' ', label: 'file', color: 'blue', logLevel: 'info' },
22-
errorMessage: { badge: '', label: '', color: 'white', logLevel: 'error' },
23-
errorLocation: { badge: '→', label: '', color: 'white', logLevel: 'error' },
24-
warningMessage: { badge: '', label: '', color: 'white', logLevel: 'warning' },
25-
warningLocation: { badge: '→', label: '', color: 'white', logLevel: 'warning' },
22+
errorMessage: { badge: '', label: '', color: 'white', logLevel: 'error', stream: process.stderr },
23+
errorLocation: { badge: '→', label: '', color: 'white', logLevel: 'error', stream: process.stderr },
24+
warningMessage: { badge: '', label: '', color: 'white', logLevel: 'warning', stream: process.stderr },
25+
warningLocation: { badge: '→', label: '', color: 'white', logLevel: 'warning', stream: process.stderr },
2626
},
2727
});
2828
}

0 commit comments

Comments
 (0)