@kubb/cli 0.8.0 → 0.9.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/dist/index.js CHANGED
@@ -108,7 +108,7 @@ async function run(result) {
108
108
  }
109
109
 
110
110
  // src/index.ts
111
- var moduleName = "regenerator";
111
+ var moduleName = "kubb";
112
112
  var explorer = (0, import_cosmiconfig.cosmiconfig)(moduleName, {
113
113
  searchPlaces: [
114
114
  "package.json",
@@ -130,7 +130,7 @@ var explorer = (0, import_cosmiconfig.cosmiconfig)(moduleName, {
130
130
  var program = new import_commander.Command("model").description("Generate models").action(async (options) => {
131
131
  const result = options.config ? await explorer.load(options.config) : await explorer.search();
132
132
  if (result?.isEmpty || !result || !result.config) {
133
- console.log(import_picocolors2.default.red("Config not defined, create a regenerator.config.js or pass through your config with the option --config"));
133
+ console.log(import_picocolors2.default.red("Config not defined, create a kubb.config.js or pass through your config with the option --config"));
134
134
  return;
135
135
  }
136
136
  if (options.debug) {
package/dist/index.mjs CHANGED
@@ -87,7 +87,7 @@ async function run(result) {
87
87
  }
88
88
 
89
89
  // src/index.ts
90
- var moduleName = "regenerator";
90
+ var moduleName = "kubb";
91
91
  var explorer = cosmiconfig(moduleName, {
92
92
  searchPlaces: [
93
93
  "package.json",
@@ -109,7 +109,7 @@ var explorer = cosmiconfig(moduleName, {
109
109
  var program = new Command("model").description("Generate models").action(async (options) => {
110
110
  const result = options.config ? await explorer.load(options.config) : await explorer.search();
111
111
  if (result?.isEmpty || !result || !result.config) {
112
- console.log(pc2.red("Config not defined, create a regenerator.config.js or pass through your config with the option --config"));
112
+ console.log(pc2.red("Config not defined, create a kubb.config.js or pass through your config with the option --config"));
113
113
  return;
114
114
  }
115
115
  if (options.debug) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/cli",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "Generator cli",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "author": "Stijn Van Hulle <stijn@stijnvanhulle.be",
12
12
  "sideEffects": false,
13
13
  "bin": {
14
- "regenerator": "dist/index.mjs"
14
+ "kubb": "dist/index.mjs"
15
15
  },
16
16
  "preferGlobal": true,
17
17
  "files": [
@@ -20,20 +20,23 @@
20
20
  "!/**/__tests__/**"
21
21
  ],
22
22
  "dependencies": {
23
- "@kubb/core": "0.8.0",
23
+ "@kubb/core": "0.9.1",
24
24
  "commander": "^9.4.1",
25
- "cosmiconfig": "^7.1.0",
25
+ "cosmiconfig": "^8.0.0",
26
26
  "cosmiconfig-typescript-loader": "^4.2.0",
27
27
  "ora": "^5.4.1",
28
28
  "picocolors": "^1.0.0",
29
29
  "ts-node": "^10.9.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@kubb/swagger": "0.8.0",
33
- "@kubb/swagger-typescript": "0.8.0",
32
+ "@kubb/swagger": "0.9.1",
33
+ "@kubb/swagger-typescript": "0.9.1",
34
34
  "tsup": "^6.5.0",
35
35
  "typescript": "^4.9.3",
36
- "@types/node": "^18.11.9"
36
+ "@types/node": "^18.11.9",
37
+ "axios": "^1.2.0",
38
+ "@tanstack/react-query": "^4.18.0",
39
+ "react": "^18.2.0"
37
40
  },
38
41
  "publishConfig": {
39
42
  "access": "public",