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 CHANGED
@@ -8,6 +8,8 @@ export declare type Argv = {
8
8
  'package-name'?: string;
9
9
  };
10
10
 
11
+ export declare const BUILTIN_TOOLS: string[];
12
+
11
13
  export declare function checkCancel<T>(value: unknown): T;
12
14
 
13
15
  /**
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) {
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rstack",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "description": "Create a new Rstack project",
5
5
  "repository": {
6
6
  "type": "git",