rollup-plugin-dts
Advanced tools
Comparing version 5.1.1 to 5.2.0
@@ -1,2 +0,2 @@ | ||
import { PluginImpl } from 'rollup'; | ||
import * as rollup from 'rollup'; | ||
import ts from 'typescript'; | ||
@@ -23,4 +23,107 @@ | ||
} | ||
declare const plugin: PluginImpl<Options>; | ||
export { Options, plugin as default }; | ||
declare function rollupPluginDts(options?: Options): { | ||
name: string; | ||
outputOptions: (this: rollup.PluginContext, options: rollup.OutputOptions) => { | ||
chunkFileNames: string | ((chunkInfo: rollup.PreRenderedChunk) => string); | ||
entryFileNames: string | ((chunkInfo: rollup.PreRenderedChunk) => string); | ||
format: "es"; | ||
exports: "named"; | ||
compact: false; | ||
freeze: true; | ||
interop: "esModule"; | ||
generatedCode: { | ||
symbols: boolean; | ||
} & (rollup.GeneratedCodePreset | rollup.GeneratedCodeOptions | undefined); | ||
strict: false; | ||
amd?: rollup.AmdOptions | undefined; | ||
assetFileNames?: string | ((chunkInfo: rollup.PreRenderedAsset) => string) | undefined; | ||
banner?: string | rollup.AddonFunction | undefined; | ||
dir?: string | undefined; | ||
dynamicImportFunction?: string | undefined; | ||
dynamicImportInCjs?: boolean | undefined; | ||
esModule?: boolean | "if-default-prop" | undefined; | ||
experimentalDeepDynamicChunkOptimization?: boolean | undefined; | ||
experimentalMinChunkSize?: number | undefined; | ||
extend?: boolean | undefined; | ||
externalImportAssertions?: boolean | undefined; | ||
externalLiveBindings?: boolean | undefined; | ||
file?: string | undefined; | ||
footer?: string | rollup.AddonFunction | undefined; | ||
globals?: rollup.GlobalsOption | undefined; | ||
hoistTransitiveImports?: boolean | undefined; | ||
indent?: string | boolean | undefined; | ||
inlineDynamicImports?: boolean | undefined; | ||
intro?: string | rollup.AddonFunction | undefined; | ||
manualChunks?: rollup.ManualChunksOption | undefined; | ||
minifyInternalExports?: boolean | undefined; | ||
name?: string | undefined; | ||
namespaceToStringTag?: boolean | undefined; | ||
noConflict?: boolean | undefined; | ||
outro?: string | rollup.AddonFunction | undefined; | ||
paths?: rollup.OptionsPaths | undefined; | ||
plugins?: rollup.OutputPluginOption; | ||
preferConst?: boolean | undefined; | ||
preserveModules?: boolean | undefined; | ||
preserveModulesRoot?: string | undefined; | ||
sanitizeFileName?: boolean | ((fileName: string) => string) | undefined; | ||
sourcemap?: boolean | "inline" | "hidden" | undefined; | ||
sourcemapBaseUrl?: string | undefined; | ||
sourcemapExcludeSources?: boolean | undefined; | ||
sourcemapFile?: string | undefined; | ||
sourcemapPathTransform?: rollup.SourcemapPathTransformOption | undefined; | ||
systemNullSetters?: boolean | undefined; | ||
validate?: boolean | undefined; | ||
}; | ||
renderChunk: (this: rollup.PluginContext, code: string, chunk: rollup.RenderedChunk, options: rollup.NormalizedOutputOptions) => { | ||
code: string; | ||
map: { | ||
mappings: ""; | ||
}; | ||
}; | ||
options(this: rollup.MinimalPluginContext, options: rollup.InputOptions): { | ||
onwarn(warning: rollup.RollupLog, warn: rollup.WarningHandler): void; | ||
treeshake: { | ||
moduleSideEffects: "no-external"; | ||
propertyReadSideEffects: true; | ||
unknownGlobalSideEffects: false; | ||
}; | ||
acorn?: Record<string, unknown> | undefined; | ||
acornInjectPlugins?: (() => unknown)[] | (() => unknown) | undefined; | ||
cache?: false | rollup.RollupCache | undefined; | ||
context?: string | undefined; | ||
experimentalCacheExpiry?: number | undefined; | ||
external?: rollup.ExternalOption | undefined; | ||
inlineDynamicImports?: boolean | undefined; | ||
input?: rollup.InputOption | undefined; | ||
makeAbsoluteExternalsRelative?: boolean | "ifRelativeSource" | undefined; | ||
manualChunks?: rollup.ManualChunksOption | undefined; | ||
maxParallelFileOps?: number | undefined; | ||
maxParallelFileReads?: number | undefined; | ||
moduleContext?: ((id: string) => string | rollup.NullValue) | { | ||
[id: string]: string; | ||
} | undefined; | ||
perf?: boolean | undefined; | ||
plugins?: rollup.InputPluginOption; | ||
preserveEntrySignatures?: rollup.PreserveEntrySignaturesOption | undefined; | ||
preserveModules?: boolean | undefined; | ||
preserveSymlinks?: boolean | undefined; | ||
shimMissingExports?: boolean | undefined; | ||
strictDeprecations?: boolean | undefined; | ||
watch?: false | rollup.WatcherOptions | undefined; | ||
}; | ||
transform(this: rollup.TransformPluginContext, code: string, id: string): { | ||
code: string; | ||
ast: any; | ||
map: any; | ||
} | null; | ||
resolveId(this: rollup.PluginContext, source: string, importer: string | undefined): { | ||
id: string; | ||
external: true; | ||
} | { | ||
id: string; | ||
external?: undefined; | ||
} | undefined; | ||
}; | ||
export { Options, rollupPluginDts as default }; |
{ | ||
"name": "rollup-plugin-dts", | ||
"version": "5.1.1", | ||
"version": "5.2.0", | ||
"description": "A rollup plugin that will bundle up your .d.ts definition files.", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"clean": "node -e \"(async () => { try { await require('fs/promises').rm('dist', { recursive: true }); } catch {} })()\"", | ||
"prebuild": "npm run clean", | ||
@@ -57,10 +57,7 @@ "build": "tsc && rollup --bundleConfigAsCjs -c .build/rollup.config.js", | ||
"@types/estree": "1.0.0", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/node": "^18.11.18", | ||
"@types/react": "^18.0.26", | ||
"@types/node": "^18.13.0", | ||
"@types/react": "^18.0.28", | ||
"c8": "^7.12.0", | ||
"fs-extra": "^11.1.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "3.9.1", | ||
"typescript": "4.9.4" | ||
"rollup": "3.15.0", | ||
"typescript": "4.9.5" | ||
}, | ||
@@ -75,4 +72,4 @@ "peerDependencies": { | ||
"dependencies": { | ||
"magic-string": "^0.27.0" | ||
"magic-string": "^0.29.0" | ||
} | ||
} |
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
190615
9
3596
+ Addedmagic-string@0.29.0(transitive)
- Removedmagic-string@0.27.0(transitive)
Updatedmagic-string@^0.29.0