@@ -16,7 +16,7 @@ function modTime(file) {
16
16
}
17
17
18
18
function reinstallYarnIfNeeded ( ) {
19
- const yarnPath = path . join ( rootDir , '.yarn' , 'releases' , 'yarn-3.2.2 .cjs' )
19
+ const yarnPath = path . join ( rootDir , '.yarn' , 'releases' , 'yarn-3.2.3 .cjs' )
20
20
21
21
if ( fs . existsSync ( yarnPath ) && modTime ( yarnPath ) > Math . max (
22
22
modTime ( path . join ( rootDir , 'package.json' ) ) ,
@@ -31,10 +31,10 @@ function reinstallYarnIfNeeded() {
31
31
fs . rmSync ( path . join ( rootDir , '.yarnrc.yml' ) , { recursive : true , force : true } )
32
32
33
33
try {
34
- run ( 'yarn set version 3.2.2 ' )
34
+ run ( 'yarn set version 3.2.3 ' )
35
35
} catch {
36
36
run ( 'npm i -g yarn' ) // Install Yarn globally if it's not already installed
37
- run ( 'yarn set version 3.2.2 ' )
37
+ run ( 'yarn set version 3.2.3 ' )
38
38
}
39
39
40
40
run ( 'yarn install' )
@@ -59,16 +59,10 @@ function runTests() {
59
59
run ( 'node ../../npm/esbuild-wasm/bin/esbuild in.mjs --bundle --log-level=debug --platform=node --outfile=out-wasm.js' )
60
60
run ( 'node out-wasm.js' )
61
61
62
- // Note: This is currently failing due to a bug in Yarn that generates invalid
63
- // file handles. I should update the Yarn version and then enable this test
64
- // when a new version of Yarn is released that fixes this bug. This test is
65
- // disabled for now.
66
- /*
67
- // Test the WebAssembly build when run through Yarn's file system shim
68
- esbuild.buildWasmLib(ESBUILD_BINARY_PATH)
69
- run('yarn node ../../npm/esbuild-wasm/bin/esbuild in.mjs --bundle --log-level=debug --platform=node --outfile=out-wasm-yarn.js')
70
- run('node out-wasm-yarn.js')
71
- */
62
+ // Test the WebAssembly build when run through Yarn's file system shim
63
+ esbuild . buildWasmLib ( ESBUILD_BINARY_PATH )
64
+ run ( 'yarn node ../../npm/esbuild-wasm/bin/esbuild in.mjs --bundle --log-level=debug --platform=node --outfile=out-wasm-yarn.js' )
65
+ run ( 'node out-wasm-yarn.js' )
72
66
}
73
67
74
68
reinstallYarnIfNeeded ( )
0 commit comments