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.
- package/create-ui-lib.js +11 -0
- 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";
|