From 3aca71aa68709f5912132f83f8d9674feefcb8db Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Mon, 16 Dec 2024 14:27:38 -0500 Subject: [PATCH] Fix TypeScript-based code completion in esbuild script Code completion for esbuild.BuildOptions was not working in this file because the name of the file (esbuild.js) shadowed the name of the NPM package containing the types (esbuild). Renaming the file fixes the code completion. --- esbuild.js => esbuild.config.js | 0 package.json | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename esbuild.js => esbuild.config.js (100%) diff --git a/esbuild.js b/esbuild.config.js similarity index 100% rename from esbuild.js rename to esbuild.config.js diff --git a/package.json b/package.json index 259ceb618..8254b0634 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,12 @@ "scripts": { "build:remix": "remix build && mv build/server/metafile.* build/", "build:sass": "sass -Inode_modules/nasawds/src/theme -Inode_modules/@uswds -Inode_modules/@uswds/uswds/packages app:app", - "build:esbuild": "node esbuild.js", + "build:esbuild": "node esbuild.config.js", "build:website": "run-s build:sass build:remix", "build": "run-p build:website build:esbuild", "dev:remix": "remix dev --manual -c \"arc sandbox -e testing --host localhost\"", "dev:sass": "sass --watch -Inode_modules/nasawds/src/theme -Inode_modules/@uswds -Inode_modules/@uswds/uswds/packages app:app", - "dev:esbuild": "node esbuild.js --dev", + "dev:esbuild": "node esbuild.config.js --dev", "dev": "run-p \"dev:*\"", "prepare": "husky", "deploy": "arc deploy --prune --production",