@superblocksteam/cli 2.0.0-next.36 → 2.0.0-next.37
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-GUXVM473.js → api-PKYL7CB6.js} +2 -2
- package/dist/index.js +7 -7
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
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.37 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}/${apiName}`;
|
|
206
|
+
const apiDirPath = `${parentDirectory}/${slugifyDirectoryName ? apiNameSlug : apiName}`;
|
|
207
207
|
const nestedApiYamlPath = `${apiDirPath}/api.yaml`;
|
|
208
208
|
let yamlPath;
|
|
209
209
|
let yamlParentPath;
|
package/dist/index.js
CHANGED
|
@@ -95143,11 +95143,11 @@ var require_api_files = __commonJS({
|
|
|
95143
95143
|
exports2.writeApiFiles = writeApiFiles3;
|
|
95144
95144
|
exports2.readAppApiYamlFile = readAppApiYamlFile4;
|
|
95145
95145
|
async function writeApiFiles3(...args) {
|
|
95146
|
-
const esmFunction = await import("./api-
|
|
95146
|
+
const esmFunction = await import("./api-PKYL7CB6.js");
|
|
95147
95147
|
return esmFunction.writeApiFiles(...args);
|
|
95148
95148
|
}
|
|
95149
95149
|
async function readAppApiYamlFile4(...args) {
|
|
95150
|
-
const esmFunction = await import("./api-
|
|
95150
|
+
const esmFunction = await import("./api-PKYL7CB6.js");
|
|
95151
95151
|
return esmFunction.readAppApiYamlFile(...args);
|
|
95152
95152
|
}
|
|
95153
95153
|
}
|
|
@@ -263728,7 +263728,7 @@ var import_util8 = __toESM(require_dist4(), 1);
|
|
|
263728
263728
|
// ../sdk/package.json
|
|
263729
263729
|
var package_default = {
|
|
263730
263730
|
name: "@superblocksteam/sdk",
|
|
263731
|
-
version: "2.0.0-next.
|
|
263731
|
+
version: "2.0.0-next.37",
|
|
263732
263732
|
type: "module",
|
|
263733
263733
|
description: "Superblocks JS SDK",
|
|
263734
263734
|
homepage: "https://www.superblocks.com",
|
|
@@ -263766,8 +263766,8 @@ var package_default = {
|
|
|
263766
263766
|
"@rollup/wasm-node": "^4.35.0",
|
|
263767
263767
|
"@superblocksteam/bucketeer-sdk": "0.4.1",
|
|
263768
263768
|
"@superblocksteam/shared": "0.9132.0",
|
|
263769
|
-
"@superblocksteam/util": "2.0.0-next.
|
|
263770
|
-
"@superblocksteam/vite-plugin-file-sync": "2.0.0-next.
|
|
263769
|
+
"@superblocksteam/util": "2.0.0-next.37",
|
|
263770
|
+
"@superblocksteam/vite-plugin-file-sync": "2.0.0-next.37",
|
|
263771
263771
|
"@vitejs/plugin-react": "^4.3.4",
|
|
263772
263772
|
axios: "^1.4.0",
|
|
263773
263773
|
chokidar: "^4.0.3",
|
|
@@ -308661,7 +308661,7 @@ async function startVite({ app, httpServer: httpServer2, root: root2, mode, port
|
|
|
308661
308661
|
};
|
|
308662
308662
|
const isCustomBuildEnabled2 = await isCustomComponentsEnabled();
|
|
308663
308663
|
const customFolder = path21.join(root2, "custom");
|
|
308664
|
-
const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.
|
|
308664
|
+
const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.37";
|
|
308665
308665
|
const env3 = loadEnv(mode, root2, "");
|
|
308666
308666
|
const hmrPort = await getFreePort();
|
|
308667
308667
|
const hmrOptions = {
|
|
@@ -315777,7 +315777,7 @@ var YamlToApiBuilderTransformer = class extends ApiBuilderTransformer {
|
|
|
315777
315777
|
const relativePath = renderPath(Paths.ApiYamls, pathParams);
|
|
315778
315778
|
const apiDir = path26.join(this.config.appRootDirPath, path26.dirname(relativePath));
|
|
315779
315779
|
const parentDir = path26.dirname(apiDir);
|
|
315780
|
-
return (0, import_util32.readAppApiYamlFile)(parentDir, pathParams.apiName);
|
|
315780
|
+
return (0, import_util32.readAppApiYamlFile)(parentDir, pathParams.apiName, false);
|
|
315781
315781
|
}
|
|
315782
315782
|
async transform(src6) {
|
|
315783
315783
|
const targetDir = await this.renderTemplate();
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/cli",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.37",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Official Superblocks CLI",
|
|
6
6
|
"homepage": "https://www.superblocks.com",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@eslint/js": "^9.16.0",
|
|
44
44
|
"@oclif/test": "^4.1.11",
|
|
45
|
-
"@superblocksteam/sdk": "2.0.0-next.
|
|
45
|
+
"@superblocksteam/sdk": "2.0.0-next.37",
|
|
46
46
|
"@superblocksteam/shared": "0.9132.0",
|
|
47
|
-
"@superblocksteam/util": "2.0.0-next.
|
|
47
|
+
"@superblocksteam/util": "2.0.0-next.37",
|
|
48
48
|
"@types/babel__core": "^7.20.0",
|
|
49
49
|
"@types/chai": "^4",
|
|
50
50
|
"@types/fs-extra": "^11.0.1",
|