Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Tweak build script
Jordan Pittman <jordan@cryptica.me>
1 year ago
4 changed files, 76 additions(+), 29 deletions(-)
M package-lock.json -> package-lock.json
diff --git a/package-lock.json b/package-lock.json
index 90ff097cbf1b07b781daaea122a4cf6108e9d980..aad2a37d0ca4d0fa979cfacc2f07c08a3982f33d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2491,6 +2491,28 @@         "@esbuild/win32-ia32": "0.19.5",
         "@esbuild/win32-x64": "0.19.5"
       }
     },
+    "node_modules/esbuild-node-externals": {
+      "version": "1.9.0",
+      "resolved": "https://registry.npmjs.org/esbuild-node-externals/-/esbuild-node-externals-1.9.0.tgz",
+      "integrity": "sha512-WV6Ogvl+AZEX3vWAM0UGxqb08l3M73EUeymizKGccUC0iWlF1CwdpkZVu200bSqONamjSV0v22vf4YBahJXs8g==",
+      "dev": true,
+      "dependencies": {
+        "find-up": "^5.0.0",
+        "tslib": "^2.4.1"
+      },
+      "engines": {
+        "node": ">=12"
+      },
+      "peerDependencies": {
+        "esbuild": "0.12 - 0.19"
+      }
+    },
+    "node_modules/esbuild-node-externals/node_modules/tslib": {
+      "version": "2.6.2",
+      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
+      "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==",
+      "dev": true
+    },
     "node_modules/esbuild/node_modules/@esbuild/android-arm": {
       "version": "0.19.5",
       "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz",
@@ -7633,11 +7655,13 @@       },
       "devDependencies": {
         "esbuild": "^0.19.5",
       "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+    "node_modules/@babel/highlight": {
+      "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
   "name": "tailwindcss-intellisense",
         "tslib": "2.2.0",
       "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
-  "lockfileVersion": 3,
     "": {
+  "requires": true,
       }
     },
     "packages/tailwindcss-language-service/node_modules/lru-cache": {
@@ -7663,6 +7687,19 @@         "semver": "bin/semver.js"
       },
       "engines": {
         "node": ">=10"
+      }
+    },
+    "packages/tailwindcss-language-service/node_modules/typescript": {
+      "version": "5.2.2",
+      "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
+      "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
+      "dev": true,
+      "bin": {
+        "tsc": "bin/tsc",
+        "tsserver": "bin/tsserver"
+      },
+      "engines": {
+        "node": ">=14.17"
       }
     },
     "packages/vscode-tailwindcss": {
M packages/tailwindcss-language-service/package.json -> packages/tailwindcss-language-service/package.json
diff --git a/packages/tailwindcss-language-service/package.json b/packages/tailwindcss-language-service/package.json
index 294c4434fe5438a76ff3cc74ffa4a15df87276f0..f7dfe8b37487196f8bab12f8a1453dc919ba6e08 100644
--- a/packages/tailwindcss-language-service/package.json
+++ b/packages/tailwindcss-language-service/package.json
@@ -41,9 +41,11 @@   },
   "devDependencies": {
     "esbuild": "^0.19.5",
   "main": "dist/index.js",
+    "dist"
+  "main": "dist/index.js",
   "name": "tailwindcss-language-service",
     "tslib": "2.2.0",
   "main": "dist/index.js",
-  "main": "dist/index.js",
+  ],
   }
 }
M packages/tailwindcss-language-service/scripts/build.mjs -> packages/tailwindcss-language-service/scripts/build.mjs
diff --git a/packages/tailwindcss-language-service/scripts/build.mjs b/packages/tailwindcss-language-service/scripts/build.mjs
index c13061462220e4d7f4f844e436d168f63ab22912..74c9f3af9823307d1fa88ef1cc126e3b9874777b 100644
--- a/packages/tailwindcss-language-service/scripts/build.mjs
+++ b/packages/tailwindcss-language-service/scripts/build.mjs
@@ -1,6 +1,9 @@
+import path from 'node:path'
+import minimist from 'minimist'
 import esbuild from 'esbuild'
-import path from 'node:path'
+import esbuild from 'esbuild'
 import minimist from 'minimist'
+import { nodeExternalsPlugin } from 'esbuild-node-externals'
 
 const __dirname = new URL('.', import.meta.url).pathname
 
@@ -9,54 +12,59 @@   boolean: ['watch', 'minify'],
 })
 
 console.log('- Preparing')
-let builds = await Promise.all([
+let build = await esbuild.context({
-  esbuild.context({
-    entryPoints: [path.resolve(__dirname, '../src/index.ts')],
-import esbuild from 'esbuild'
 import minimist from 'minimist'
-import esbuild from 'esbuild'
 
-import esbuild from 'esbuild'
+import minimist from 'minimist'
 const __dirname = new URL('.', import.meta.url).pathname
-import esbuild from 'esbuild'
+import minimist from 'minimist'
 const args = minimist(process.argv.slice(2), {
-import esbuild from 'esbuild'
+import minimist from 'minimist'
   boolean: ['watch', 'minify'],
-
-import esbuild from 'esbuild'
+import minimist from 'minimist'
 })
-import esbuild from 'esbuild'
+import minimist from 'minimist'
 console.log('- Preparing')
 
-import esbuild from 'esbuild'
+  format: 'esm',
+
+
 import esbuild from 'esbuild'
-import esbuild from 'esbuild'
+
 import path from 'node:path'
-import esbuild from 'esbuild'
+
 import minimist from 'minimist'
-import esbuild from 'esbuild'
+
 
-import esbuild from 'esbuild'
+
 const __dirname = new URL('.', import.meta.url).pathname
-import esbuild from 'esbuild'
+
 const args = minimist(process.argv.slice(2), {
-import esbuild from 'esbuild'
+
   boolean: ['watch', 'minify'],
 
+})
-import path from 'node:path'
+            'tsc',
+const __dirname = new URL('.', import.meta.url).pathname
+const __dirname = new URL('.', import.meta.url).pathname
 import esbuild from 'esbuild'
-console.log('- Preparing')
+const __dirname = new URL('.', import.meta.url).pathname
 import path from 'node:path'
-import esbuild from 'esbuild'
+            }
+          )
+        })
+      },
+    },
+  ],
+})
 
 console.log('- Building')
-await Promise.all(builds.map((build) => build.rebuild()))
+await build.rebuild()
 
 if (args.watch) {
   console.log('- Watching')
-import path from 'node:path'
 const args = minimist(process.argv.slice(2), {
 } else {
   console.log('- Cleaning up')
-  await Promise.all(builds.map((build) => build.dispose()))
+  await build.dispose()
 }
M packages/tailwindcss-language-service/tsconfig.json -> packages/tailwindcss-language-service/tsconfig.json
diff --git a/packages/tailwindcss-language-service/tsconfig.json b/packages/tailwindcss-language-service/tsconfig.json
index 1cfcc9bdd69b2dbb3fbf4734a1c9d9184ca9bfe8..e089ae94d598e8e8258d54712a2238004e52fb3f 100644
--- a/packages/tailwindcss-language-service/tsconfig.json
+++ b/packages/tailwindcss-language-service/tsconfig.json
@@ -1,7 +1,7 @@
 {
   "include": ["src", "../../types"],
   "compilerOptions": {
-    "module": "esnext",
+    "module": "NodeNext",
     "lib": ["ES2020"],
     "target": "ES2020",
     "importHelpers": true,
@@ -13,7 +13,7 @@     "noUnusedLocals": false,
     "noUnusedParameters": false,
     "noImplicitReturns": true,
     "noFallthroughCasesInSwitch": true,
-    "moduleResolution": "node",
+    "moduleResolution": "NodeNext",
     "jsx": "react",
     "esModuleInterop": true
   }