@kubb/cli
Advanced tools
Comparing version 0.9.1 to 0.10.0
@@ -8,6 +8,2 @@ #!/usr/bin/env node | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
@@ -25,10 +21,4 @@ if (from && typeof from === "object" || typeof from === "function") { | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
moduleName: () => moduleName | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
var import_commander = require("commander"); | ||
@@ -52,5 +42,5 @@ var import_cosmiconfig = require("cosmiconfig"); | ||
if (isJSONPlugins(plugins)) { | ||
return plugins.map((plugin) => { | ||
return plugins.map(async (plugin) => { | ||
const [name, options = {}] = plugin; | ||
const importedPlugin = require(name); | ||
const importedPlugin = await import(name); | ||
return importedPlugin?.default ? importedPlugin.default(options) : importedPlugin(options); | ||
@@ -120,4 +110,2 @@ }); | ||
`.${moduleName}rc.json`, | ||
`.${moduleName}rc.yaml`, | ||
`.${moduleName}rc.yml`, | ||
`.${moduleName}rc.js`, | ||
@@ -131,6 +119,7 @@ `.${moduleName}rc.cjs`, | ||
loaders: { | ||
".ts": (0, import_cosmiconfig_typescript_loader.TypeScriptLoader)() | ||
".ts": (0, import_cosmiconfig_typescript_loader.TypeScriptLoader)(), | ||
noExt: import_cosmiconfig.defaultLoaders[".js"] | ||
} | ||
}); | ||
var program = new import_commander.Command("model").description("Generate models").action(async (options) => { | ||
var program = new import_commander.Command("kubb").description("Generate models").action(async (options) => { | ||
const result = options.config ? await explorer.load(options.config) : await explorer.search(); | ||
@@ -159,7 +148,2 @@ if (result?.isEmpty || !result || !result.config) { | ||
}).addOption(new import_commander.Option("-c, --config <path>", "Path to @kubb config")).addOption(new import_commander.Option("-d, --debug", "Debug mode").default(false)); | ||
program.name(moduleName).description("Generate").version("0.0.1"); | ||
program.parse(); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
moduleName | ||
}); | ||
program.name(moduleName).description("Generate").version("0.0.1").parse(); |
{ | ||
"name": "@kubb/cli", | ||
"version": "0.9.1", | ||
"version": "0.10.0", | ||
"description": "Generator cli", | ||
@@ -23,3 +23,3 @@ "repository": { | ||
"dependencies": { | ||
"@kubb/core": "0.9.1", | ||
"@kubb/core": "0.10.0", | ||
"commander": "^9.4.1", | ||
@@ -29,14 +29,10 @@ "cosmiconfig": "^8.0.0", | ||
"ora": "^5.4.1", | ||
"picocolors": "^1.0.0", | ||
"ts-node": "^10.9.1" | ||
"picocolors": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@kubb/swagger": "0.9.1", | ||
"@kubb/swagger-typescript": "0.9.1", | ||
"@kubb/swagger": "0.10.0", | ||
"@kubb/swagger-typescript": "0.10.0", | ||
"tsup": "^6.5.0", | ||
"typescript": "^4.9.3", | ||
"@types/node": "^18.11.9", | ||
"axios": "^1.2.0", | ||
"@tanstack/react-query": "^4.18.0", | ||
"react": "^18.2.0" | ||
"typescript": "^4.9.4", | ||
"@types/node": "^18.11.13" | ||
}, | ||
@@ -43,0 +39,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
6
5
0
11230
256
+ Added@kubb/core@0.10.0(transitive)
- Removedts-node@^10.9.1
- Removed@kubb/core@0.9.1(transitive)
- Removedtalt@2.4.4(transitive)
Updated@kubb/core@0.10.0