@kubb/cli 0.35.0 → 0.36.0
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 +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -143,7 +143,7 @@ var getCosmiConfig = async (moduleName2, config) => {
|
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
// package.json
|
|
146
|
-
var version = "0.
|
|
146
|
+
var version = "0.36.0";
|
|
147
147
|
|
|
148
148
|
// src/index.ts
|
|
149
149
|
var moduleName = "kubb";
|
|
@@ -160,6 +160,10 @@ var program = new commander.Command(moduleName).description("Kubb").action(async
|
|
|
160
160
|
spinner.succeed("Config loaded");
|
|
161
161
|
if (options.watch) {
|
|
162
162
|
const config = await getConfig(result, options);
|
|
163
|
+
if (typeof config.input === "string") {
|
|
164
|
+
spinner.warn(pc3.red("Input as a string cannot be used together with watch "));
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
163
167
|
startWatcher(
|
|
164
168
|
async (paths) => {
|
|
165
169
|
await run({ config, spinner, options });
|
package/dist/index.mjs
CHANGED
|
@@ -141,7 +141,7 @@ var getCosmiConfig = async (moduleName2, config) => {
|
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
// package.json
|
|
144
|
-
var version = "0.
|
|
144
|
+
var version = "0.36.0";
|
|
145
145
|
|
|
146
146
|
// src/index.ts
|
|
147
147
|
var moduleName = "kubb";
|
|
@@ -158,6 +158,10 @@ var program = new Command(moduleName).description("Kubb").action(async (options)
|
|
|
158
158
|
spinner.succeed("Config loaded");
|
|
159
159
|
if (options.watch) {
|
|
160
160
|
const config = await getConfig(result, options);
|
|
161
|
+
if (typeof config.input === "string") {
|
|
162
|
+
spinner.warn(pc3.red("Input as a string cannot be used together with watch "));
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
161
165
|
startWatcher(
|
|
162
166
|
async (paths) => {
|
|
163
167
|
await run({ config, spinner, options });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "Generator cli",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"!/**/__tests__/**"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kubb/core": "0.
|
|
23
|
+
"@kubb/core": "0.36.0",
|
|
24
24
|
"chokidar": "^3.5.3",
|
|
25
25
|
"commander": "^9.4.1",
|
|
26
26
|
"cosmiconfig": "^8.0.0",
|