@lark-apaas/openclaw-dev-cli 0.1.8 → 0.1.9
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/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4074,8 +4074,7 @@ var import_node_child_process2 = require("child_process");
|
|
|
4074
4074
|
// src/constants.ts
|
|
4075
4075
|
var TEMPLATE_MAP = {
|
|
4076
4076
|
html: "template-html",
|
|
4077
|
-
"
|
|
4078
|
-
nextjs: "template-nextjs-fullstack"
|
|
4077
|
+
"vite-react": "template-vite-react"
|
|
4079
4078
|
};
|
|
4080
4079
|
var TEMPLATE_TYPES = Object.keys(TEMPLATE_MAP);
|
|
4081
4080
|
var RENAME_FILES = {
|
|
@@ -7212,6 +7211,10 @@ async function pullTemplate(options) {
|
|
|
7212
7211
|
}
|
|
7213
7212
|
}
|
|
7214
7213
|
replaceInFile(import_node_path11.default.join(targetDir, "package.json"), "{{projectName}}", projectName);
|
|
7214
|
+
const indexHtml = import_node_path11.default.join(targetDir, "client", "index.html");
|
|
7215
|
+
if (import_node_fs8.default.existsSync(indexHtml)) {
|
|
7216
|
+
replaceInFile(indexHtml, "{{projectName}}", projectName);
|
|
7217
|
+
}
|
|
7215
7218
|
return { version };
|
|
7216
7219
|
}
|
|
7217
7220
|
function pullFromLocal(localPath, templateDir, targetDir) {
|