@superblocksteam/cli 2.0.0-next.5 → 2.0.0-next.50

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/README.md CHANGED
@@ -14,7 +14,7 @@ $ npm install -g @superblocksteam/cli
14
14
  $ superblocks COMMAND
15
15
  running command...
16
16
  $ superblocks (--version)
17
- @superblocksteam/cli/2.0.0-next.5 linux-x64 node-v20.19.0
17
+ @superblocksteam/cli/2.0.0-next.50 linux-x64 node-v20.19.0
18
18
  $ superblocks --help [COMMAND]
19
19
  USAGE
20
20
  $ superblocks COMMAND
@@ -200,10 +200,10 @@ async function writeApiFiles(api, apiNameSlug, directoryPath, nestedApiFiles, ap
200
200
  apiPromises.push(handleApi());
201
201
  existingFilePaths?.delete(yamlFilePath);
202
202
  }
203
- async function readAppApiYamlFile(parentDirectory, apiName) {
203
+ async function readAppApiYamlFile(parentDirectory, apiName, slugifyDirectoryName = true) {
204
204
  const apiNameSlug = slugifyName(apiName ?? "api");
205
205
  const singularApiYamlPath = `${parentDirectory}/${apiNameSlug}.yaml`;
206
- const apiDirPath = `${parentDirectory}/${apiNameSlug}`;
206
+ const apiDirPath = `${parentDirectory}/${slugifyDirectoryName ? apiNameSlug : apiName}`;
207
207
  const nestedApiYamlPath = `${apiDirPath}/api.yaml`;
208
208
  let yamlPath;
209
209
  let yamlParentPath;