Skip to content

Commit

Permalink
Update validate-tsc-types checks
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Apr 20, 2024
1 parent 9789ceb commit e557c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/validate-tsc-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const diagnosticsHost = {
* `process.exit(1)` on failure.
*/
function validateTscTypes() {
const dtsFilesPattern = './.ts-temp/{lexical,lexical-*}/**/*.d.ts';
const dtsFilesPattern = './.ts-temp/packages/{lexical,lexical-*}/**/*.d.ts';
const dtsFiles = glob.sync(dtsFilesPattern);
if (dtsFiles.length === 0) {
console.error(
Expand All @@ -52,7 +52,7 @@ function validateTscTypes() {
const specifier = /** @type {import('typescript').StringLiteral} */ (
node
);
if (/^shared(\/|$)/.test(specifier.text)) {
if (/^(shared|scripts)(\/|$)/.test(specifier.text)) {
const start = specifier.getStart(ast);
diagnostics.push({
category: ts.DiagnosticCategory.Error,
Expand Down

0 comments on commit e557c2b

Please sign in to comment.