@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.12.0 linux-x64 node-v20.19.0
15
+ @superblocksteam/cli/1.13.1 linux-x64 node-v20.19.0
16
16
  $ superblocks --help [COMMAND]
17
17
  USAGE
18
18
  $ superblocks COMMAND
@@ -7,7 +7,7 @@
7
7
  "lint:fix": "npx eslint . --fix"
8
8
  },
9
9
  "dependencies": {
10
- "@superblocksteam/custom-components": "1.10.0",
10
+ "@superblocksteam/custom-components": "1.13.1",
11
11
  "react": "^18",
12
12
  "react-dom": "^18"
13
13
  },
@@ -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?.length) {
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}/${apiNameSlug}.yaml`);
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
  }
@@ -446,5 +446,5 @@
446
446
  ]
447
447
  }
448
448
  },
449
- "version": "1.12.0"
449
+ "version": "1.13.1"
450
450
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/cli",
3
- "version": "1.12.0",
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.12.0",
33
- "@superblocksteam/util": "1.12.0"
32
+ "@superblocksteam/sdk": "1.13.1",
33
+ "@superblocksteam/util": "1.13.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@oclif/test": "^4.1.11",