File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export async function main(options: Options = {}) {
79
79
default : 'node' ,
80
80
} )
81
81
. option ( '--loader <ext=loader>' , 'Specify the loader for a file extension' )
82
+ . option ( '--tsconfig <filename>' , 'Use a custom tsconfig' )
82
83
. option ( '--config <filename>' , 'Use a custom config file' )
83
84
. option ( '--no-config' , 'Disable config file' )
84
85
. option ( '--shims' , 'Enable cjs and esm shims' )
Original file line number Diff line number Diff line change @@ -439,6 +439,21 @@ test('onSuccess', async () => {
439
439
expect ( logs . includes ( "world" ) ) . toEqual ( true )
440
440
} )
441
441
442
+ test ( 'custom tsconfig' , async ( ) => {
443
+ await run (
444
+ getTestName ( ) ,
445
+ {
446
+ 'input.ts' : `export const foo = 'foo'` ,
447
+ 'tsconfig.build.json' : `{
448
+ "compilerOptions": {
449
+ "baseUrl":"."
450
+ }
451
+ }` ,
452
+ } ,
453
+ { flags : [ '--tsconfig' , 'tsconfig.build.json' ] }
454
+ )
455
+ } )
456
+
442
457
test ( 'support baseUrl and paths in tsconfig.json' , async ( ) => {
443
458
const { getFileContent } = await run ( getTestName ( ) , {
444
459
'input.ts' : `export * from '@/foo'` ,
You can’t perform that action at this time.
1 commit comments
vercel[bot] commentedon Jun 10, 2022
Successfully deployed to the following URLs:
tsup – ./
tsup.vercel.app
tsup-git-main-egoist.vercel.app
tsup-egoist.vercel.app
tsup.egoist.sh