Refactor build scripts and npm package process (#5876)

This commit is contained in:
Bob Ippolito
2024-04-25 15:17:31 -07:00
committed by GitHub
parent db7b242c18
commit 881258be7a
142 changed files with 19360 additions and 1794 deletions

View File

@ -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(
@ -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,