@kubb/core
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -1,3 +0,3 @@ | ||
import { P as PluginContext, F as FileManager, a as PluginManager, U as UserConfig, C as Config, I as InputPath, b as PluginFactoryOptions, c as UserPluginWithLifeCycle } from './FileManager-DU3xGFur.js'; | ||
export { B as BarrelType, d as FileMetaBase, G as GetPluginFactoryOptions, o as Group, e as InputData, O as Output, i as Plugin, f as PluginKey, k as PluginLifecycle, l as PluginLifecycleHooks, m as PluginParameter, j as PluginWithLifeCycle, n as ResolveNameParams, R as ResolvePathParams, h as UserPlugin, g as getSource, p as processFiles } from './FileManager-DU3xGFur.js'; | ||
import { P as PluginContext, F as FileManager, a as PluginManager, U as UserConfig, C as Config, I as InputPath, b as PluginFactoryOptions, c as UserPluginWithLifeCycle } from './FileManager-DYJCLWo_.js'; | ||
export { B as BarrelType, d as FileMetaBase, G as GetPluginFactoryOptions, o as Group, e as InputData, O as Output, i as Plugin, f as PluginKey, k as PluginLifecycle, l as PluginLifecycleHooks, m as PluginParameter, j as PluginWithLifeCycle, n as ResolveNameParams, R as ResolvePathParams, h as UserPlugin, g as getSource, p as processFiles } from './FileManager-DYJCLWo_.js'; | ||
import { L as Logger } from './logger-DvbHXjIO.js'; | ||
@@ -4,0 +4,0 @@ import { PossiblePromise } from '@kubb/types'; |
import { transformReservedWord } from './chunk-2EU7DMPM.js'; | ||
import { EventEmitter, createLogger } from './chunk-HTOO3HNK.js'; | ||
import { FileManager, setUniqueName, processFiles, URLPath } from './chunk-FJV2WFX3.js'; | ||
export { FileManager, getSource, processFiles } from './chunk-FJV2WFX3.js'; | ||
import { FileManager, setUniqueName, processFiles, URLPath } from './chunk-RVDD33LJ.js'; | ||
export { FileManager, getSource, processFiles } from './chunk-RVDD33LJ.js'; | ||
import './chunk-BQXM32UO.js'; | ||
@@ -668,4 +668,4 @@ import './chunk-HBQM723K.js'; | ||
}); | ||
const pluginOptions = plugin?.options ?? {}; | ||
if (pluginOptions.output?.barrelType === false) { | ||
const pluginOptions = plugin?.options; | ||
if (!pluginOptions || pluginOptions?.output?.barrelType === false) { | ||
return void 0; | ||
@@ -672,0 +672,0 @@ } |
import { ResolvedFile, File } from '@kubb/fs/types'; | ||
import { a as PluginManager } from './FileManager-DU3xGFur.js'; | ||
import { a as PluginManager } from './FileManager-DYJCLWo_.js'; | ||
import { L as Logger } from './logger-DvbHXjIO.js'; | ||
@@ -4,0 +4,0 @@ import '@kubb/fs'; |
@@ -1,2 +0,2 @@ | ||
import { getSource, createFile } from './chunk-FJV2WFX3.js'; | ||
import { getSource, createFile } from './chunk-RVDD33LJ.js'; | ||
import { camelCase, pascalCase } from './chunk-BQXM32UO.js'; | ||
@@ -3,0 +3,0 @@ import path from 'node:path'; |
@@ -1,4 +0,4 @@ | ||
export { FunctionParams, URLPath, createFile, createFileExport, createFileImport, createFileParser, getFileParser, getUniqueName, isPromise, isPromiseFulfilledResult, isPromiseRejectedResult, renderTemplate, setUniqueName, timeout } from './chunk-FJV2WFX3.js'; | ||
export { FunctionParams, URLPath, createFile, createFileExport, createFileImport, createFileParser, getFileParser, getUniqueName, isPromise, isPromiseFulfilledResult, isPromiseRejectedResult, renderTemplate, setUniqueName, timeout } from './chunk-RVDD33LJ.js'; | ||
import './chunk-BQXM32UO.js'; | ||
//# sourceMappingURL=utils.js.map | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@kubb/core", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Generator core", | ||
@@ -86,5 +86,5 @@ "keywords": [ | ||
"semver": "^7.6.3", | ||
"@kubb/fs": "3.0.5", | ||
"@kubb/parser-ts": "3.0.5", | ||
"@kubb/types": "3.0.5" | ||
"@kubb/fs": "3.0.6", | ||
"@kubb/parser-ts": "3.0.6", | ||
"@kubb/types": "3.0.6" | ||
}, | ||
@@ -100,4 +100,4 @@ "devDependencies": { | ||
"typescript": "^5.6.3", | ||
"@kubb/config-ts": "3.0.5", | ||
"@kubb/config-tsup": "3.0.5" | ||
"@kubb/config-ts": "3.0.6", | ||
"@kubb/config-tsup": "3.0.6" | ||
}, | ||
@@ -104,0 +104,0 @@ "engines": { |
@@ -111,5 +111,5 @@ import { clean, read } from '@kubb/fs' | ||
}) | ||
const pluginOptions = (plugin?.options as { output?: Output }) ?? {} | ||
const pluginOptions = plugin?.options as { output?: Output } | ||
if (pluginOptions.output?.barrelType === false) { | ||
if (!pluginOptions || pluginOptions?.output?.barrelType === false) { | ||
return undefined | ||
@@ -116,0 +116,0 @@ } |
@@ -138,3 +138,3 @@ import { extname, join, relative } from 'node:path' | ||
async getBarrelFiles({ type, files, meta = {}, root, output, logger }: AddIndexesProps): Promise<KubbFile.File[]> { | ||
if (!type) { | ||
if (!type || type === 'propagate') { | ||
return [] | ||
@@ -141,0 +141,0 @@ } |
@@ -44,3 +44,3 @@ import type * as KubbFile from '@kubb/fs/types' | ||
export type BarrelType = 'all' | 'named' | ||
export type BarrelType = 'all' | 'named' | 'propagate' | ||
@@ -89,3 +89,3 @@ /** | ||
*/ | ||
barrelType?: BarrelType | false | ||
barrelType?: Exclude<BarrelType, 'propagate'> | false | ||
} | ||
@@ -92,0 +92,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1443652
+ Added@kubb/fs@3.0.6(transitive)
+ Added@kubb/parser-ts@3.0.6(transitive)
+ Added@kubb/types@3.0.6(transitive)
- Removed@kubb/fs@3.0.5(transitive)
- Removed@kubb/parser-ts@3.0.5(transitive)
- Removed@kubb/types@3.0.5(transitive)
Updated@kubb/fs@3.0.6
Updated@kubb/parser-ts@3.0.6
Updated@kubb/types@3.0.6