Hoist all module dependencies to shared modules/node_modules workspace

Add npm workspaces across 31 category trees plus hyper-p2p-bare-shared,
remove per-package node_modules and package-lock.json duplicates, and document
install-workspace.sh for a single hoisted install (~140MB vs tens of GB).

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 13:23:43 -04:00
co-authored by Cursor
parent d7f6ce7616
commit 3949d11395
312 changed files with 9126 additions and 367563 deletions
@@ -1,8 +1,8 @@
require('bare-process/global')
const EventEmitter = require('bare-events')
const b4a = require('b4a')
const { assertNonEmpty } = require('../../_shared/lib/errors.js')
const { initModuleSwarm, gossipSend } = require('../../_shared/p2p-bare.js')
const { assertNonEmpty } = require('hyper-p2p-bare-shared/lib/errors')
const { initModuleSwarm, gossipSend } = require('hyper-p2p-bare-shared/p2p-bare')
const PROTOCOL = 'blind-relay-bridge/v1'
const MAX_LATENCY_SAMPLES = 64
File diff suppressed because it is too large Load Diff
@@ -5,22 +5,33 @@
"main": "index.js",
"type": "commonjs",
"license": "Apache-2.0",
"scripts": { "test": "brittle-bare test/test.js" },
"scripts": {
"test": "brittle-bare test/test.js"
},
"dependencies": {
"bare-events": "^2.8.0",
"bare-process": "^4.4.0",
"b4a": "^1.6.7",
"hypercore-crypto": "^3.0.0",
"protomux": "^3.0.0",
"compact-encoding": "^2.16.0"
"compact-encoding": "^2.16.0",
"hyper-p2p-bare-shared": "file:../../_shared"
},
"peerDependencies": {
"hyperswarm": "^4.0.0",
"bare": ">=1.0.0"
},
"devDependencies": { "brittle": "^3.0.0" },
"devDependencies": {
"brittle": "^3.0.0"
},
"imports": {
"process": { "bare": "bare-process", "default": "process" },
"events": { "bare": "bare-events", "default": "events" }
"process": {
"bare": "bare-process",
"default": "process"
},
"events": {
"bare": "bare-events",
"default": "events"
}
}
}
}
@@ -1,8 +1,8 @@
require('bare-process/global')
const EventEmitter = require('bare-events')
const b4a = require('b4a')
const { assertNonEmpty } = require('../../_shared/lib/errors.js')
const { initModuleSwarm, gossipSend } = require('../../_shared/p2p-bare.js')
const { assertNonEmpty } = require('hyper-p2p-bare-shared/lib/errors')
const { initModuleSwarm, gossipSend } = require('hyper-p2p-bare-shared/p2p-bare')
const PROTOCOL = 'dht-bootstrap-hint/v1'
File diff suppressed because it is too large Load Diff
@@ -5,22 +5,33 @@
"main": "index.js",
"type": "commonjs",
"license": "Apache-2.0",
"scripts": { "test": "brittle-bare test/test.js" },
"scripts": {
"test": "brittle-bare test/test.js"
},
"dependencies": {
"bare-events": "^2.8.0",
"bare-process": "^4.4.0",
"b4a": "^1.6.7",
"hypercore-crypto": "^3.0.0",
"protomux": "^3.0.0",
"compact-encoding": "^2.16.0"
"compact-encoding": "^2.16.0",
"hyper-p2p-bare-shared": "file:../../_shared"
},
"peerDependencies": {
"hyperswarm": "^4.0.0",
"bare": ">=1.0.0"
},
"devDependencies": { "brittle": "^3.0.0" },
"devDependencies": {
"brittle": "^3.0.0"
},
"imports": {
"process": { "bare": "bare-process", "default": "process" },
"events": { "bare": "bare-events", "default": "events" }
"process": {
"bare": "bare-process",
"default": "process"
},
"events": {
"bare": "bare-events",
"default": "events"
}
}
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff