Skip to content

Commit

Permalink
fix: output warnings/errors to stderr (#3)
Browse files Browse the repository at this point in the history
* send warnings and errors to stderr

* bump version to v1.0.2

* fix line endings
  • Loading branch information
MikeRomaa authored Jul 10, 2023
1 parent 964939c commit f3209b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synaptic-simulations/mach",
"version": "1.0.1",
"version": "1.0.2",
"description": "The last MSFS instrument bundler you'll ever need.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export class BuildLogger {
scope,
types: {
file: { badge: ' ', label: 'file', color: 'blue', logLevel: 'info' },
errorMessage: { badge: '', label: '', color: 'white', logLevel: 'error' },
errorLocation: { badge: '→', label: '', color: 'white', logLevel: 'error' },
warningMessage: { badge: '', label: '', color: 'white', logLevel: 'warning' },
warningLocation: { badge: '→', label: '', color: 'white', logLevel: 'warning' },
errorMessage: { badge: '', label: '', color: 'white', logLevel: 'error', stream: process.stderr },
errorLocation: { badge: '→', label: '', color: 'white', logLevel: 'error', stream: process.stderr },
warningMessage: { badge: '', label: '', color: 'white', logLevel: 'warning', stream: process.stderr },
warningLocation: { badge: '→', label: '', color: 'white', logLevel: 'warning', stream: process.stderr },
},
});
}
Expand Down

0 comments on commit f3209b3

Please sign in to comment.