Clean up some typings in build

- Adding ts-check in a few more js files
- Switching to use `@types` for a few more packages
- Remove some unused code
This commit is contained in:
Matt Bierner
2025-08-07 09:38:52 -07:00
parent 7ffbe1141d
commit d865a99c49
27 changed files with 144 additions and 511 deletions

View File

@@ -26,7 +26,7 @@ const packageJsonMarkerId = 'BUILD_INSERT_PACKAGE_CONFIGURATION';
export function inlineMeta(result: NodeJS.ReadWriteStream, ctx: IInlineMetaContext): NodeJS.ReadWriteStream {
return result.pipe(es.through(function (file: File) {
if (matchesFile(file, ctx)) {
let content = file.contents.toString();
let content = file.contents!.toString();
let markerFound = false;
const packageMarker = `${packageJsonMarkerId}:"${packageJsonMarkerId}"`; // this needs to be the format after esbuild has processed the file (e.g. double quotes)