@atlaspack/codeframe
Advanced tools
Comparing version
@@ -36,2 +36,6 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// @ts-expect-error emphasize is not typed | ||
// @ts-expect-error slice-ansi is not typed | ||
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/; | ||
@@ -38,0 +42,0 @@ const TAB_REPLACE_REGEX = /\t/g; |
{ | ||
"name": "@atlaspack/codeframe", | ||
"version": "2.13.5-typescript-0c2081aca.0", | ||
"version": "2.13.5-typescript-17c3d1dec.0", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -14,4 +14,5 @@ "license": "(MIT OR Apache-2.0)", | ||
}, | ||
"main": "lib/codeframe.js", | ||
"source": "src/codeframe.ts", | ||
"main": "./lib/codeframe.js", | ||
"source": "./src/codeframe.ts", | ||
"types": "./lib/codeframe.d.ts", | ||
"engines": { | ||
@@ -34,6 +35,5 @@ "node": ">= 16.0.0" | ||
"scripts": { | ||
"check-ts": "tsc --noEmit" | ||
"check-ts": "tsc --emitDeclarationOnly --rootDir src" | ||
}, | ||
"types": "src/codeframe.ts", | ||
"gitHead": "0c2081aca1b5696646874aee2f776d43f1dbe894" | ||
} | ||
"gitHead": "17c3d1decf641e688fcfe3ca985e80e9897b7573" | ||
} |
import type {DiagnosticCodeHighlight} from '@atlaspack/diagnostic'; | ||
import chalk from 'chalk'; | ||
// @ts-expect-error emphasize is not typed | ||
import emphasize from 'emphasize'; | ||
import stringWidth from 'string-width'; | ||
// @ts-expect-error slice-ansi is not typed | ||
import sliceAnsi from 'slice-ansi'; | ||
@@ -7,0 +9,0 @@ |
53415
1.4%9
12.5%1283
1.58%