@superblocksteam/cli 2.0.0-next.4 → 2.0.0-next.40
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 +1 -1
- package/dist/{api-XCHEAYGD.js → api-PKYL7CB6.js} +2 -2
- package/dist/generated-XLKKF4K3.js +175 -0
- package/dist/index.js +27443 -26256
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
- package/dist/generated-JCVDADBO.js +0 -170
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.
|
|
17
|
+
@superblocksteam/cli/2.0.0-next.40 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;
|