create-rstack 1.7.6 → 1.7.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/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1812,7 +1812,10 @@ const updatePackageJson = (pkgJsonPath, version, name)=>{
1812
1812
  if (pkg.dependencies?.[name]) pkg.dependencies[name] = ver;
1813
1813
  if (pkg.devDependencies?.[name]) pkg.devDependencies[name] = ver;
1814
1814
  }
1815
- if (name && '.' !== name) pkg.name = name;
1815
+ if ('.' === name) {
1816
+ const projectName = node_path.basename(node_path.dirname(pkgJsonPath));
1817
+ if (projectName.length) pkg.name = projectName;
1818
+ } else if (name) pkg.name = name;
1816
1819
  node_fs.writeFileSync(pkgJsonPath, `${JSON.stringify(pkg, null, 2)}\n`);
1817
1820
  };
1818
1821
  function readAgentsFile(filePath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rstack",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "Create a new Rstack project",
5
5
  "repository": {
6
6
  "type": "git",