Skip to content

Commit fe8e9cc

Browse files
committed
code cleanup
1 parent f214b4c commit fe8e9cc

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

benchmark/sirun/runall.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ else
2525
source /usr/local/nvm/nvm.sh
2626
fi
2727

28-
# TODO: Remove this once the underlying package manager has been abstracted.
2928
(
3029
cd ../../ &&
3130
npm install --global bun || (sleep 60 && npm install --global bun) \

scripts/install_plugin_modules.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*/
106103
async 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 () {
287285
function 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

Comments
 (0)