Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .lunteignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bench/
build/
2 changes: 1 addition & 1 deletion npm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface Bare extends EventEmitter<BareEvents> {
readonly pid: number
exitCode: number
readonly version: string
readonly versions: { readonly [package: string]: string }
readonly versions: { readonly [library: string]: string }

exit(code?: number): never
suspend(linger?: number): void
Expand Down
121 changes: 121 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"name": "bare",
"description": "Small and modular JavaScript runtime for desktop and mobile",
"scripts": {
"test": "prettier . --check"
"format": "prettier --write .",
"lint": "prettier --check . && lunte"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -44,6 +45,7 @@
"cmake-fetch": "^1.0.0",
"cmake-harden": "^1.1.2",
"cmake-napi": "^1.0.7",
"lunte": "^1.4.0",
"prettier": "^3.3.3",
"prettier-config-holepunch": "^2.0.0"
}
Expand Down
2 changes: 2 additions & 0 deletions src/addon.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global bare */

const resolve = require('bare-addon-resolve')
const { fileURLToPath } = require('bare-url')
const { AddonError } = require('./errors')
Expand Down
2 changes: 2 additions & 0 deletions src/bare.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global bare */

/**
* Step 0:
* Declare the genesis addon entry point. All addons loaded by core modules
Expand Down
2 changes: 2 additions & 0 deletions src/thread.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global bare */

const structuredClone = require('bare-structured-clone')

module.exports = exports = class Thread {
Expand Down
2 changes: 2 additions & 0 deletions test/idle-before-suspend.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const t = require('bare-tap')

Bare.on('idle', onidle)

Bare.idle()
Expand Down