Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/egoist/tsup
/ functions
Functions
155 in github.com/egoist/tsup
⨍
Functions
155
◇
Types & classes
9
↓ 87 callers
Function
getTestName
()
test/utils.ts:13
↓ 87 callers
Function
run
( title: string, files: { [name: string]: string }, options: { entry?: string[] flags?: string[]
test/utils.ts:26
↓ 54 callers
Function
getFileContent
(filename: string)
test/utils.ts:76
↓ 10 callers
Function
slash
(path: string)
src/utils.ts:116
↓ 7 callers
Function
localRequire
(moduleName: string)
src/utils.ts:61
↓ 5 callers
Function
loadPkg
(cwd: string, clearCache: boolean = false)
src/load.ts:82
↓ 4 callers
Function
createLogger
(name?: string)
src/log.ts:46
↓ 4 callers
Function
ensureArray
(input: string)
src/cli-main.ts:7
↓ 4 callers
Method
getContext
()
src/plugin.ts:103
↓ 4 callers
Function
handleError
(error: any)
src/errors.ts:16
↓ 4 callers
Function
toAbsolutePath
(p: string, cwd?: string)
src/utils.ts:236
↓ 3 callers
Function
convertArrayEntriesToObjectEntries
(arrayOfEntries: string[])
src/utils.ts:303
↓ 3 callers
Function
defaultOutExtension
({ format, pkgType, }: { format: Format pkgType?: string })
src/utils.ts:142
↓ 3 callers
Function
getProductionDeps
( cwd: string, clearCache: boolean = false, )
src/load.ts:93
↓ 3 callers
Function
removeFiles
(patterns: string[], dir: string)
src/utils.ts:74
↓ 3 callers
Function
resolveModule
( id: string, opts: _resolve.AsyncOpts, )
src/rollup/ts-resolve.ts:10
↓ 3 callers
Function
writeFileSync
(filePath: string, content: string)
src/utils.ts:248
↓ 2 callers
Function
buildAll
()
src/index.ts:291
↓ 2 callers
Function
colorize
(type: LOG_TYPE, data: any, onlyImportant = false)
src/log.ts:7
↓ 2 callers
Function
copyPublicDir
( publicDir: string | boolean | undefined, outDir: string, )
src/lib/public-dir.ts:5
↓ 2 callers
Function
debouncePromise
( fn: (...args: T) => Promise<void>, delay: number, onError: (err: unknown) => void, )
src/utils.ts:82
↓ 2 callers
Function
ensureTempDeclarationDir
()
src/utils.ts:169
↓ 2 callers
Function
equal
(a: T, b: T)
test/index.test.ts:264
↓ 2 callers
Function
getAllDepsHash
(cwd: string)
src/load.ts:112
↓ 2 callers
Function
getFilename
()
assets/esm_shims.js:5
↓ 2 callers
Function
getFixture
(opts: Partial<SwcPluginConfig> = {})
src/esbuild/swc.test.ts:7
↓ 2 callers
Function
isCSS
(path: string)
src/plugin.ts:89
↓ 2 callers
Function
loadJson
(filepath: string)
src/load.ts:10
↓ 2 callers
Function
main
(options: Options = {})
src/cli-main.ts:11
↓ 2 callers
Function
outputFile
( filepath: string, data: any, options?: { mode?: fs.Mode }, )
src/fs.ts:4
↓ 2 callers
Function
parseSourceMap
(map?: string | object | null)
src/plugin.ts:84
↓ 2 callers
Function
replaceDtsWithJsExtensions
(dtsFilePath: string)
src/utils.ts:263
↓ 2 callers
Function
reportSize
( logger: Logger, format: string, files: { [name: string]: number }, )
src/lib/report-size.ts:21
↓ 2 callers
Function
resolveEntryPaths
(entryPaths: InputOption)
src/utils.ts:343
↓ 2 callers
Function
setSilent
(isSilent?: boolean)
src/log.ts:36
↓ 2 callers
Function
sleep
(n: number = Math.trunc(Math.random() * 50) + 20)
test/index.test.ts:269
↓ 2 callers
Function
swcPlugin
({ logger, ...swcOptions }: SwcPluginConfig)
src/esbuild/swc.ts:12
↓ 2 callers
Function
terminateWorker
()
src/index.ts:217
↓ 2 callers
Function
useSvelteCssExtension
(p: string)
src/esbuild/svelte.ts:6
↓ 1 callers
Method
assign
(name: string)
src/tsc.ts:15
↓ 1 callers
Function
build
(_options: Options)
src/index.ts:167
↓ 1 callers
Method
buildFinished
({ outputFiles, metafile, }: { outputFiles: OutputFile[] metafile?: Metafile })
src/plugin.ts:124
↓ 1 callers
Method
buildStarted
()
src/plugin.ts:116
↓ 1 callers
Function
cjsInterop
()
src/plugins/cjs-interop.ts:3
↓ 1 callers
Function
cjsSplitting
()
src/plugins/cjs-splitting.ts:6
↓ 1 callers
Function
cleanDtsFiles
(options: NormalizedOptions)
src/api-extractor.ts:172
↓ 1 callers
Function
convertMessage
({ message, start, end }: any)
src/esbuild/svelte.ts:43
↓ 1 callers
Function
copyDirSync
(srcDir: string, destDir: string)
src/fs.ts:13
↓ 1 callers
Function
defineConfig
( options: | Options | Options[] | (( /** The options derived from CLI flags */
src/index.ts:36
↓ 1 callers
Function
doOnSuccessCleanup
()
src/index.ts:269
↓ 1 callers
Function
dtsTask
()
src/index.ts:204
↓ 1 callers
Function
emit
(compilerOptions?: any, tsconfig?: string)
src/tsc.ts:163
↓ 1 callers
Function
emitDtsFiles
* Use TypeScript compiler to emit declaration files. * * @returns The mapping from source TS file paths to output declaration file paths
src/tsc.ts:89
↓ 1 callers
Function
experimentalDtsTask
()
src/index.ts:197
↓ 1 callers
Function
externalPlugin
({ external, noExternal, skipNodeModulesBundle, tsconfigResolvePaths, }: { external?: (string | RegE
src/esbuild/external.ts:7
↓ 1 callers
Function
filenamify
(input: string)
test/utils.ts:82
↓ 1 callers
Function
findLowestCommonAncestor
(filepaths: string[])
src/utils.ts:213
↓ 1 callers
Function
formatAggregationExport
( declaration: ExportDeclaration, declarationDirPath: string, )
src/exports.ts:40
↓ 1 callers
Function
formatAggregationExports
( exports: ExportDeclaration[], declarationDirPath: string, )
src/exports.ts:23
↓ 1 callers
Function
formatDistributionExport
( declaration: ExportDeclaration, dest: string, )
src/exports.ts:118
↓ 1 callers
Function
formatDistributionExports
( exports: ExportDeclaration[], fromFilePath: string, toFilePath: string, )
src/exports.ts:70
↓ 1 callers
Function
generateExternal
(external: (string | RegExp)[])
src/esbuild/index.ts:41
↓ 1 callers
Function
getApiExtractor
()
src/utils.ts:55
↓ 1 callers
Function
getDirname
()
assets/esm_shims.js:6
↓ 1 callers
Function
getDuration
()
src/tsc.ts:207
↓ 1 callers
Function
getDuration
()
src/rollup.ts:165
↓ 1 callers
Function
getDuration
()
src/api-extractor.ts:184
↓ 1 callers
Function
getExports
* Get all export declarations from root files.
src/tsc.ts:36
↓ 1 callers
Function
getImportMetaUrl
()
assets/cjs_shims.js:6
↓ 1 callers
Function
getLengthOfLongestString
(strings: string[])
src/lib/report-size.ts:11
↓ 1 callers
Function
getOutputExtensionMap
( options: NormalizedOptions, format: Format, pkgType: string | undefined, )
src/esbuild/index.ts:23
↓ 1 callers
Function
getPostcss
()
src/utils.ts:51
↓ 1 callers
Function
getPostcssConfig
()
src/esbuild/postcss.ts:21
↓ 1 callers
Function
getRollupConfig
( options: NormalizedOptions, )
src/rollup.ts:38
↓ 1 callers
Function
getSilent
()
src/log.ts:40
↓ 1 callers
Function
getSourcemapComment
( inline: boolean, map: RawSourceMap | string | null | undefined, filepath: string, isCssFile: boolean
src/plugin.ts:229
↓ 1 callers
Function
isInPublicDir
( publicDir: string | boolean | undefined, filePath: string, )
src/lib/public-dir.ts:13
↓ 1 callers
Function
isJS
(path: string)
src/plugin.ts:88
↓ 1 callers
Function
isTaskkillCmdProcessNotFoundError
(err: Error)
src/index.ts:51
↓ 1 callers
Function
jsoncParse
(data: string)
src/utils.ts:132
↓ 1 callers
Function
killProcess
({ pid, signal }: { pid: number; signal: KILL_SIGNAL })
src/index.ts:62
↓ 1 callers
Function
loadTsupConfig
( cwd: string, configFile?: string, )
src/load.ts:35
↓ 1 callers
Function
mainTasks
()
src/index.ts:260
↓ 1 callers
Function
makeLabel
( name: string | undefined, input: string, type: LOG_TYPE, )
src/log.ts:21
↓ 1 callers
Method
modifyEsbuildOptions
(options: EsbuildOptions)
src/plugin.ts:108
↓ 1 callers
Function
nativeNodeModulesPlugin
()
src/esbuild/native-node-module.ts:5
↓ 1 callers
Function
nodeProtocolPlugin
()
src/esbuild/node-protocol.ts:7
↓ 1 callers
Function
normalizeOptions
( logger: ReturnType<typeof createLogger>, optionsFromConfigFile: Options | undefined, optionsOverride:
src/index.ts:70
↓ 1 callers
Function
padRight
(str: string, maxLength: number)
src/lib/report-size.ts:17
↓ 1 callers
Function
parseCompilerOptions
(compilerOptions?: any)
src/rollup.ts:18
↓ 1 callers
Function
postcssPlugin
({ css, inject, cssLoader, }: { css?: Map<string, string> inject?: boolean | ((css: string, fileId:
src/esbuild/postcss.ts:6
↓ 1 callers
Function
prettyBytes
(bytes: number)
src/lib/report-size.ts:4
↓ 1 callers
Function
resolveExperimentalDtsConfig
( options: NormalizedOptions, tsconfig: any, )
src/utils.ts:364
↓ 1 callers
Function
resolveInitialExperimentalDtsConfig
( experimentalDts: Options['experimentalDts'], )
src/utils.ts:398
↓ 1 callers
Function
rollupDtsFile
( inputFilePath: string, outputFilePath: string, tsconfigFilePath: string, )
src/api-extractor.ts:27
↓ 1 callers
Function
rollupDtsFiles
( options: NormalizedOptions, exports: ExportDeclaration[], format: Format, )
src/api-extractor.ts:86
↓ 1 callers
Function
runDtsRollup
( options: NormalizedOptions, exports?: ExportDeclaration[], )
src/api-extractor.ts:178
↓ 1 callers
Function
runEsbuild
( options: NormalizedOptions, { format, css, logger, buildDependencies, pluginContaine
src/esbuild/index.ts:61
↓ 1 callers
Function
runRollup
(options: RollupConfig)
src/rollup.ts:161
↓ 1 callers
Function
runTypeScriptCompiler
(options: NormalizedOptions)
src/tsc.ts:204
next →
1–100 of 155, ranked by callers