Extract @babel/highlight package from @babel/code-frame

This creates a new package called @babel/highlight which syntax highlights
JavaScript code for terminal output. This functionality was already
present in @babel/code-frame, but exposing it as a separate package lets
other projects leverage it. @babel/code-frame has been refactored
slightly so that it uses @babel/highlight to do its syntax highlighting.
This commit is contained in:
Suchipi Izumi
2018-02-07 21:20:35 -07:00
committed by Nicolò Ribaudo
parent a01007a3d3
commit 534ee4734c
7 changed files with 315 additions and 95 deletions

View File

@@ -8,11 +8,10 @@
"repository": "https://github.com/babel/babel/tree/master/packages/babel-code-frame",
"main": "lib/index.js",
"dependencies": {
"chalk": "^2.0.0",
"esutils": "^2.0.2",
"js-tokens": "^3.0.0"
"@babel/highlight": "7.0.0-beta.39"
},
"devDependencies": {
"chalk": "^2.0.0",
"strip-ansi": "^4.0.0"
}
}