File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { expect , test } from '@voidzero-dev/vite-plus-test' ;
2+
3+ import {
4+ build ,
5+ defineConfig ,
6+ globalLogger ,
7+ mergeConfig ,
8+ resolveUserConfig ,
9+ buildWithConfigs ,
10+ enableDebug ,
11+ } from '../pack' ;
12+
13+ test ( 'should export all pack APIs from @voidzero-dev/vite-plus-core/pack' , ( ) => {
14+ expect ( defineConfig ) . toBeTypeOf ( 'function' ) ;
15+ expect ( build ) . toBeTypeOf ( 'function' ) ;
16+ expect ( globalLogger ) . toBeDefined ( ) ;
17+ expect ( mergeConfig ) . toBeTypeOf ( 'function' ) ;
18+ expect ( resolveUserConfig ) . toBeTypeOf ( 'function' ) ;
19+ expect ( buildWithConfigs ) . toBeTypeOf ( 'function' ) ;
20+ expect ( enableDebug ) . toBeTypeOf ( 'function' ) ;
21+ } ) ;
Original file line number Diff line number Diff line change 11import type { UserConfig as TsdownUserConfig } from '@voidzero-dev/vite-plus-core/pack' ;
22
3- export { defineConfig , build , globalLogger } from '@voidzero-dev/vite-plus-core/pack' ;
4- export type * from '@voidzero-dev/vite-plus-core/pack' ;
3+ export * from '@voidzero-dev/vite-plus-core/pack' ;
54
65export interface PackUserConfig extends TsdownUserConfig {
76 /**
You can’t perform that action at this time.
0 commit comments