create-rstack 1.7.5 → 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.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
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 (
|
|
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) {
|
|
@@ -1880,4 +1883,4 @@ function collectAgentsFiles(agentsMdSearchDirs) {
|
|
|
1880
1883
|
}
|
|
1881
1884
|
return agentsFiles;
|
|
1882
1885
|
}
|
|
1883
|
-
export { checkCancel, copyFolder, create, mergePackageJson, fe as multiselect, ve as select, he as text };
|
|
1886
|
+
export { BUILTIN_TOOLS, checkCancel, copyFolder, create, mergePackageJson, fe as multiselect, ve as select, he as text };
|