@kubb/cli 0.44.0 → 0.44.2

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
@@ -51,7 +51,11 @@ async function run({ config, options, spinner: spinner2 }) {
51
51
  await core.build({
52
52
  config: {
53
53
  root: process.cwd(),
54
- ...config
54
+ ...config,
55
+ output: {
56
+ write: true,
57
+ ...config.output
58
+ }
55
59
  },
56
60
  mode: options.mode || "development",
57
61
  logger
@@ -156,7 +160,7 @@ var getCosmiConfig = async (moduleName2, config) => {
156
160
  };
157
161
 
158
162
  // package.json
159
- var version = "0.44.0";
163
+ var version = "0.44.2";
160
164
 
161
165
  // src/index.ts
162
166
  var moduleName = "kubb";
@@ -173,10 +177,6 @@ var program = new commander.Command(moduleName).description("Kubb").action(async
173
177
  spinner.succeed("Config loaded");
174
178
  if (options.watch) {
175
179
  const config = await getConfig(result, options);
176
- if (typeof config.input === "string") {
177
- spinner.warn(pc3__default.default.red("Input as a string cannot be used together with watch "));
178
- return;
179
- }
180
180
  startWatcher(
181
181
  async (paths) => {
182
182
  await run({ config, spinner, options });
package/dist/index.mjs CHANGED
@@ -44,7 +44,11 @@ async function run({ config, options, spinner: spinner2 }) {
44
44
  await build({
45
45
  config: {
46
46
  root: process.cwd(),
47
- ...config
47
+ ...config,
48
+ output: {
49
+ write: true,
50
+ ...config.output
51
+ }
48
52
  },
49
53
  mode: options.mode || "development",
50
54
  logger
@@ -149,7 +153,7 @@ var getCosmiConfig = async (moduleName2, config) => {
149
153
  };
150
154
 
151
155
  // package.json
152
- var version = "0.44.0";
156
+ var version = "0.44.2";
153
157
 
154
158
  // src/index.ts
155
159
  var moduleName = "kubb";
@@ -166,10 +170,6 @@ var program = new Command(moduleName).description("Kubb").action(async (options)
166
170
  spinner.succeed("Config loaded");
167
171
  if (options.watch) {
168
172
  const config = await getConfig(result, options);
169
- if (typeof config.input === "string") {
170
- spinner.warn(pc3.red("Input as a string cannot be used together with watch "));
171
- return;
172
- }
173
173
  startWatcher(
174
174
  async (paths) => {
175
175
  await run({ config, spinner, options });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/cli",
3
- "version": "0.44.0",
3
+ "version": "0.44.2",
4
4
  "description": "Generator cli",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@humanwhocodes/module-importer": "^1.0.1",
31
- "@kubb/core": "0.44.0",
31
+ "@kubb/core": "0.44.2",
32
32
  "chokidar": "^3.5.3",
33
33
  "commander": "^10.0.0",
34
34
  "cosmiconfig": "^8.0.0",
@@ -40,7 +40,7 @@
40
40
  "ts-node": "^10.9.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@kubb/swagger": "0.44.0",
43
+ "@kubb/swagger": "0.44.2",
44
44
  "@types/node": "^18.14.0",
45
45
  "tsup": "^6.6.3",
46
46
  "typescript": "^4.9.5"