@astrojs/check
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -21,3 +21,3 @@ import { AstroCheck } from '@astrojs/language-server'; | ||
const require = createRequire(import.meta.url); | ||
const checker = new AstroCheck(workspaceRoot, require.resolve('typescript/lib/tsserverlibrary.js'), flags.tsconfig); | ||
const checker = new AstroCheck(workspaceRoot, require.resolve('typescript'), flags.tsconfig); | ||
let req = 0; | ||
@@ -32,14 +32,14 @@ if (flags.watch) { | ||
// Dynamically get the list of extensions to watch from the files already included in the project | ||
const checkedExtensions = Array.from(new Set(checker.project.languageHost.getScriptFileNames().map((fileName) => path.extname(fileName)))); | ||
const checkedExtensions = Array.from(new Set(checker.linter.languageHost.getScriptFileNames().map((fileName) => path.extname(fileName)))); | ||
createWatcher(workspaceRoot, checkedExtensions) | ||
.on('add', (fileName) => { | ||
checker.project.fileCreated(fileName); | ||
checker.linter.fileCreated(fileName); | ||
update(); | ||
}) | ||
.on('unlink', (fileName) => { | ||
checker.project.fileDeleted(fileName); | ||
checker.linter.fileDeleted(fileName); | ||
update(); | ||
}) | ||
.on('change', (fileName) => { | ||
checker.project.fileUpdated(fileName); | ||
checker.linter.fileUpdated(fileName); | ||
update(); | ||
@@ -46,0 +46,0 @@ }); |
{ | ||
"name": "@astrojs/check", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"author": "withastro", | ||
@@ -23,3 +23,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@astrojs/language-server": "^2.6.2", | ||
"@astrojs/language-server": "^2.7.0", | ||
"chokidar": "^3.5.3", | ||
@@ -26,0 +26,0 @@ "fast-glob": "^3.3.1", |
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
10343