1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  | 
diff --git a/packages/tailwindcss-language-service/scripts/build.mjs b/packages/tailwindcss-language-service/scripts/build.mjs
index 74c9f3af9823307d1fa88ef1cc126e3b9874777b..91eea326234ad0a5f01365c86658e844b4f8e946 100644
--- a/packages/tailwindcss-language-service/scripts/build.mjs
+++ b/packages/tailwindcss-language-service/scripts/build.mjs
@@ -30,7 +30,7 @@         build.onEnd(async (result) => {
           // Call the tsc command to generate the types
           spawnSync(
             'tsc',
-            ['--emitDeclarationOnly', '--outDir', path.resolve(__dirname, '../dist')],
+            ['--emitDeclarationOnly', '--outFile', path.resolve(__dirname, '../dist/index.d.ts')],
             {
               stdio: 'inherit',
             }
  |