vite-plugin-checker
Advanced tools
Comparing version 0.2.0-beta.0 to 0.2.0
@@ -0,1 +1,13 @@ | ||
# [0.2.0](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.2.0-beta.0...vite-plugin-checker@0.2.0) (2021-07-05) | ||
### Bug Fixes | ||
* add test for terminal log ([1f6700e](https://github.com/fi3ework/vite-plugin-checker/commit/1f6700e38fc43b38ed965312731dd99d12b33227)) | ||
* clean output by Vite hmr console clear ([b30ca51](https://github.com/fi3ework/vite-plugin-checker/commit/b30ca51a7e699f64054bfb3e95aabe7d03e55919)) | ||
* do not wrap log ([2bb6cbd](https://github.com/fi3ework/vite-plugin-checker/commit/2bb6cbdb454b4536126710373184059e47d67d59)) | ||
* **vls:** show initial error overlay ([20c95e9](https://github.com/fi3ework/vite-plugin-checker/commit/20c95e926ca7115f7ff89013af0ec6ac96c9273c)) | ||
# 0.2.0-beta.0 (2021-06-30) | ||
@@ -2,0 +14,0 @@ |
@@ -10,3 +10,2 @@ "use strict"; | ||
const worker_threads_1 = require("worker_threads"); | ||
const log_update_1 = __importDefault(require("log-update")); | ||
const utils_1 = require("../utils"); | ||
@@ -57,10 +56,12 @@ const worker_1 = require("../worker"); | ||
) => { | ||
// logChunk = [] | ||
if (diagnostic.code === 6031) | ||
return; | ||
// https://github.com/microsoft/TypeScript/issues/32542 | ||
// https://github.com/microsoft/TypeScript/blob/dc237b317ed4bbccd043ddda802ffde00362a387/src/compiler/diagnosticMessages.json#L4086-L4088 | ||
switch (diagnostic.code) { | ||
case 6032: // Incremental build | ||
case 6031: | ||
case 6032: | ||
// clear current error and use the newer errors | ||
currErr = null; | ||
break; | ||
case 6031: // Initial build | ||
return; | ||
case 6193: // 1 Error | ||
@@ -85,3 +86,3 @@ case 6194: // 0 errors or 2+ errors | ||
const d = logChunk.diagnostics === null ? '' : logChunk.diagnostics + os_1.default.EOL; | ||
log_update_1.default(d + logChunk.message); | ||
console.log(d + logChunk.message); | ||
}); | ||
@@ -88,0 +89,0 @@ }; |
@@ -13,3 +13,3 @@ "use strict"; | ||
const worker = new worker_threads_1.Worker(absFilename, { | ||
workerData: { env, checkerConfig }, | ||
workerData: { env, checkerConfig, columns: process.stdout.columns }, | ||
}); | ||
@@ -45,2 +45,3 @@ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions | ||
const isBuild = worker_threads_1.workerData.env.command === 'build'; | ||
process.stdout.columns = worker_threads_1.workerData.columns; | ||
// only run bin command and do not listen message in build mode | ||
@@ -47,0 +48,0 @@ const port = worker_threads_1.parentPort.on('message', (action) => { |
{ | ||
"name": "vite-plugin-checker", | ||
"version": "0.2.0-beta.0", | ||
"version": "0.2.0", | ||
"description": "Vite plugin that runs TypeScript type checker on a separate process.", | ||
@@ -27,5 +27,5 @@ "main": "lib/main.js", | ||
"@types/lodash.pick": "^4.4.6", | ||
"ansi-escapes": "^4.3.0", | ||
"lodash.omit": "^4.5.0", | ||
"lodash.pick": "^4.4.0", | ||
"log-update": "^4.0.0", | ||
"npm-run-path": "^4.0.1", | ||
@@ -32,0 +32,0 @@ "strip-ansi": "^6.0.0", |
@@ -38,2 +38,4 @@ # vite-plugin-checker | ||
Open localhost page and start development (it's recommended to open browser for a better terminal display, see [#27](https://github.com/fi3ework/vite-plugin-checker/pull/27)). | ||
## Configuration | ||
@@ -165,5 +167,5 @@ | ||
npm run build | ||
cd ./playground/<ONE_EXAMPLE> # react / vls / vue-tsc | ||
npm run dev # for development | ||
npm run build # for build | ||
cd ./playground/<ONE_EXAMPLE> # ts / vls / vue-tsc | ||
npm run dev # test serve | ||
npm run build # test build | ||
``` | ||
@@ -170,0 +172,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49391
648
174
+ Addedansi-escapes@^4.3.0
- Removedlog-update@^4.0.0
- Removedansi-styles@4.3.0(transitive)
- Removedastral-regex@2.0.0(transitive)
- Removedcli-cursor@3.1.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedlog-update@4.0.0(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removedonetime@5.1.2(transitive)
- Removedrestore-cursor@3.1.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedslice-ansi@4.0.0(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedwrap-ansi@6.2.0(transitive)