create-bdpa-react-scaffold 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/create-ui-lib.js +11 -0
  2. package/package.json +1 -1
package/create-ui-lib.js CHANGED
@@ -1816,6 +1816,17 @@ if (!doInstall) {
1816
1816
  console.log("\nℹ️ Skipping npm install (flag --no-install). Run manually later.");
1817
1817
  }
1818
1818
 
1819
+ // Restart TypeScript server to prevent IntelliSense hang on start
1820
+ const isWinTs = process.platform === "win32";
1821
+ const codeCmdTs = isWinTs ? "code.cmd" : "code";
1822
+ console.log("\n🔄 Restarting TypeScript server to prevent IntelliSense hang...");
1823
+ const tsRestartResult = spawnSync(codeCmdTs, ["--command", "typescript.restartTsServer"], { stdio: "inherit" });
1824
+ if (tsRestartResult.status !== 0) {
1825
+ console.warn(" ⚠️ Could not restart TypeScript server (VS Code CLI may not be available).");
1826
+ } else {
1827
+ console.log(" ✔ TypeScript server restarted.");
1828
+ }
1829
+
1819
1830
  // cd into app directory, npm install, then npm run dev
1820
1831
  const isWin = process.platform === "win32";
1821
1832
  const npmCmd = isWin ? "npm.cmd" : "npm";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bdpa-react-scaffold",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Scaffold a React + Tailwind + shadcn/ui component demo via Vite.",
5
5
  "bin": {
6
6
  "create-bdpa-react-scaffold": "create-ui-lib.js"