@ahmadubaidillah/cli 1.1.6 → 1.1.7
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/bin.js
CHANGED
|
@@ -34453,7 +34453,12 @@ var { copySync, readFileSync: readFileSync2, writeFileSync: writeFileSync3, exis
|
|
|
34453
34453
|
function composeTemplate(templatePath, targetDir, options) {
|
|
34454
34454
|
const filesDir = join4(templatePath, "files");
|
|
34455
34455
|
copySync(filesDir, targetDir);
|
|
34456
|
-
const
|
|
34456
|
+
const envExamplePath = join4(targetDir, ".env.example");
|
|
34457
|
+
const envPath = join4(targetDir, ".env");
|
|
34458
|
+
if (existsSync4(envExamplePath) && !existsSync4(envPath)) {
|
|
34459
|
+
copySync(envExamplePath, envPath);
|
|
34460
|
+
}
|
|
34461
|
+
const entryFiles = ts(join4(targetDir, "**/*.{ts,js,json,tsx,html,md,env,env.example}"));
|
|
34457
34462
|
entryFiles.forEach((file) => {
|
|
34458
34463
|
let content = readFileSync2(file, "utf8");
|
|
34459
34464
|
content = content.replace(/{{PROJECT_NAME}}/g, options.projectName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ahmadubaidillah/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "The elite modular boilerplate engine for agentic applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"devforge-cli": "dist/bin.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@ahmadubaidillah/core": "^1.1.
|
|
19
|
+
"@ahmadubaidillah/core": "^1.1.7",
|
|
20
20
|
"@inquirer/prompts": "latest",
|
|
21
21
|
"chalk": "latest",
|
|
22
22
|
"commander": "latest",
|