@@ -54,7 +54,9 @@ describe('build-externals', () => {
5454 try {
5555 await fs . access ( distExternalDir )
5656 } catch {
57- expect . fail ( `dist/external directory does not exist at ${ distExternalDir } ` )
57+ expect . fail (
58+ `dist/external directory does not exist at ${ distExternalDir } ` ,
59+ )
5860 }
5961 } )
6062
@@ -110,9 +112,7 @@ describe('build-externals', () => {
110112 if ( allIssues . length > 0 ) {
111113 const errorMessage = [
112114 'Found unexpected stub re-exports in dist/external:' ,
113- ...allIssues . map (
114- f => ` - ${ f . file } : ${ f . reason } ` ,
115- ) ,
115+ ...allIssues . map ( f => ` - ${ f . file } : ${ f . reason } ` ) ,
116116 '' ,
117117 'Make sure these packages are added to the bundling configuration in scripts/build-externals.mjs' ,
118118 'or add them to the intentionalStubs list if they should remain as stubs.' ,
@@ -123,7 +123,13 @@ describe('build-externals', () => {
123123 } )
124124
125125 it ( 'should have @inquirer modules properly bundled' , async ( ) => {
126- const requiredInquirerModules = [ 'input' , 'password' , 'search' , 'confirm' , 'select' ]
126+ const requiredInquirerModules = [
127+ 'input' ,
128+ 'password' ,
129+ 'search' ,
130+ 'confirm' ,
131+ 'select' ,
132+ ]
127133 const inquirerDir = path . join ( distExternalDir , '@inquirer' )
128134
129135 try {
@@ -142,14 +148,18 @@ describe('build-externals', () => {
142148 ] )
143149
144150 if ( stat . size <= 1000 ) {
145- expect . fail ( `@inquirer/${ module } should be properly bundled (> 1KB), got ${ stat . size } bytes` )
151+ expect . fail (
152+ `@inquirer/${ module } should be properly bundled (> 1KB), got ${ stat . size } bytes` ,
153+ )
146154 }
147155
148156 if ( isStubReexport ( content ) ) {
149157 expect . fail ( `@inquirer/${ module } should not be a stub re-export` )
150158 }
151159 } catch ( error ) {
152- expect . fail ( `@inquirer/${ module } not found or not properly bundled at ${ modulePath } : ${ error instanceof Error ? error . message : String ( error ) } ` )
160+ expect . fail (
161+ `@inquirer/${ module } not found or not properly bundled at ${ modulePath } : ${ error instanceof Error ? error . message : String ( error ) } ` ,
162+ )
153163 }
154164 } )
155165
0 commit comments