Skip to content

Commit

Permalink
Fix TypeScript-based code completion in esbuild script
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lpsinger committed Dec 16, 2024
1 parent def8c76 commit 96197d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 96197d2

Please sign in to comment.