@@ -56,8 +56,6 @@ async function assertPrerequisites () {
5656 await assertInstrumentation ( inst , false )
5757 }
5858
59- // TODO: Always install as a peer dependency along the internal module instead
60- // so that we no longer need NODE_PATH.
6159 const externalNames = Object . keys ( externals ) . filter ( name => moduleNames . includes ( name ) )
6260
6361 for ( const name of externalNames ) {
@@ -101,7 +99,6 @@ async function assertInstrumentation (instrumentation, external) {
10199/**
102100 * @param {string } name
103101 * @param {string } version
104- * @param {string? } parent
105102 */
106103async function assertModules ( name , version ) {
107104 const range = process . env . RANGE
@@ -165,9 +162,10 @@ async function assertPeerDependencies () {
165162 const pkgJsonPath = join ( folder , 'node_modules' , externalName , 'package.json' )
166163 const pkgJson = require ( pkgJsonPath )
167164
168- // Add missing dependency to the module. While this technically means the
169- // module is broken, a user could add the dependency manually as well, so we
170- // need to do the same thing in order to test that scenario.
165+ // Add missing dependency to the module. While having to do this
166+ // technically means the module itself is broken, a user could add the
167+ // dependency manually as well, so we need to do the same thing in order
168+ // to test that scenario.
171169 if ( typeof dep === 'string' && semver . validRange ( dep ) ) {
172170 versionPkgJson . dependencies [ name ] = dep
173171
@@ -287,6 +285,8 @@ async function assertWorkspaces () {
287285function install ( force = false , retry = true ) {
288286 const flags = [ '--linker=isolated' ]
289287
288+ // Bun doesn't have a `rebuild` command, so the only way to rebuild native
289+ // extensions is to force a reinstall.
290290 if ( force ) {
291291 flags . push ( '--force' )
292292 }
0 commit comments