@superblocksteam/cli 1.12.0 → 1.13.1
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
|
@@ -12,7 +12,7 @@ $ npm install -g @superblocksteam/cli
|
|
|
12
12
|
$ superblocks COMMAND
|
|
13
13
|
running command...
|
|
14
14
|
$ superblocks (--version)
|
|
15
|
-
@superblocksteam/cli/1.
|
|
15
|
+
@superblocksteam/cli/1.13.1 linux-x64 node-v20.19.0
|
|
16
16
|
$ superblocks --help [COMMAND]
|
|
17
17
|
USAGE
|
|
18
18
|
$ superblocks COMMAND
|
|
@@ -614,18 +614,20 @@ function getExistingFilePathsForBackendApi(superblocksBackendConfig, location) {
|
|
|
614
614
|
}
|
|
615
615
|
export function addExistingFilePathsForApi(api, location, paths, useNestedFolder) {
|
|
616
616
|
const apiNameSlug = slugifyName(api.name);
|
|
617
|
-
if (api.sourceFiles
|
|
617
|
+
if (api.sourceFiles) {
|
|
618
|
+
// File version 0.2.0 and later
|
|
618
619
|
// API files are in an API-specific folder
|
|
619
620
|
const apiDirPath = useNestedFolder
|
|
620
621
|
? `${location}/${apiNameSlug}`
|
|
621
622
|
: location;
|
|
622
|
-
paths.add(`${apiDirPath}
|
|
623
|
+
paths.add(`${apiDirPath}/api.yaml`);
|
|
623
624
|
// And there are source files
|
|
624
625
|
for (const sourceFile of api.sourceFiles ?? []) {
|
|
625
626
|
paths.add(`${apiDirPath}/${sourceFile}`);
|
|
626
627
|
}
|
|
627
628
|
}
|
|
628
629
|
else {
|
|
630
|
+
// Pre-file version 0.2.0
|
|
629
631
|
// API file is in the 'apis' folder with no separate source files
|
|
630
632
|
paths.add(`${location}/${apiNameSlug}.yaml`);
|
|
631
633
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Official Superblocks CLI",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superblocks": "./bin/run"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"slugify": "^1.6.6",
|
|
30
30
|
"vite": "^6.2.0",
|
|
31
31
|
"yaml": "^2.6.1",
|
|
32
|
-
"@superblocksteam/sdk": "1.
|
|
33
|
-
"@superblocksteam/util": "1.
|
|
32
|
+
"@superblocksteam/sdk": "1.13.1",
|
|
33
|
+
"@superblocksteam/util": "1.13.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@oclif/test": "^4.1.11",
|