Add 20 Pear/Bare platform modules replacing deprecated pear run.
Introduces hyper-bare-entry-runner, pear-runtime embed/link/config stack, and scaffold helpers for argv, storage, OTA, Electron, and headless UI. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
require('bare-process/global')
|
||||
const test = require('brittle')
|
||||
const { HyperBareImportMap } = require('../index.js')
|
||||
|
||||
test('imports map', async (t) => {
|
||||
const m = new HyperBareImportMap()
|
||||
m.loadFromPackage({ imports: { fs: { bare: 'bare-fs' } } })
|
||||
t.is(m.resolve('fs'), 'bare-fs')
|
||||
await m.close()
|
||||
})
|
||||
Reference in New Issue
Block a user