@rodyssey/cli 0.0.5 → 0.0.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.
Files changed (2) hide show
  1. package/dist/cli.js +2 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2095,6 +2095,7 @@ function replaceInFiles(dir, filenames, search, replace) {
2095
2095
 
2096
2096
  // src/create.ts
2097
2097
  var PLACEHOLDER = "__PROJECT_NAME__";
2098
+ var PLACEHOLDER_LOWER = "__project_name__";
2098
2099
  var REPLACEMENT_FILES = {
2099
2100
  webapp: ["package.json", "index.html"],
2100
2101
  "webapp-fullstack": ["package.json", "wrangler.jsonc"]
@@ -2129,6 +2130,7 @@ async function create(projectName, repoUrl, templateName) {
2129
2130
  if (filesToReplace.length > 0) {
2130
2131
  console.log(` \uD83D\uDCDD Replacing project name...`);
2131
2132
  replaceInFiles(targetDir, filesToReplace, PLACEHOLDER, projectName);
2133
+ replaceInFiles(targetDir, filesToReplace, PLACEHOLDER_LOWER, projectName.toLowerCase());
2132
2134
  }
2133
2135
  execSync("git init", { stdio: "ignore", cwd: targetDir });
2134
2136
  console.log(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodyssey/cli",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Scaffold new projects from airconcepts templates",
5
5
  "bin": {
6
6
  "@rodyssey/cli": "dist/cli.js"