-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref https://github.com/ai/nanocolors#nano-colors Nanocolors is deprecated in favour of picocolors to avoid drama. All dependencies already migrated. Also fixed one vulnerability. The main change is step away from named exports and dual modules support in favour of smaller package.
- Loading branch information
Showing
4 changed files
with
446 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/usr/bin/env node | ||
|
||
const { red } = require('nanocolors'); | ||
const colors = require('picocolors'); | ||
const { program } = require('commander'); | ||
const makeProgram = require('../lib/svgo/coa'); | ||
makeProgram(program); | ||
program.parseAsync(process.argv).catch(error => { | ||
console.error(red(error.stack)); | ||
console.error(colors.red(error.stack)); | ||
process.exit(1); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.