-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathpackage.json
More file actions
59 lines (59 loc) · 3.43 KB
/
Copy pathpackage.json
File metadata and controls
59 lines (59 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"name": "nub",
"private": true,
"description": "TypeScript-first developer supertool \u2014 a Rust CLI that augments your Node.js",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/nubjs/nub.git"
},
"homepage": "https://github.com/nubjs/nub",
"bugs": {
"url": "https://github.com/nubjs/nub/issues"
},
"engines": {
"node": ">=22.15.0"
},
"comment": "@oxc-project/runtime is pinned to an EXACT version (no caret) and MUST match the oxc version compiled into nub's native addon (crates/nub-native, see OXC_VERSION in Cargo.toml) \u2014 it supplies the transpile emit's runtime helpers (e.g. usingCtx for `using` down-leveling), so it is one half of an oxc release whose other half (the transformer + parser) is now native, not an npm package. The transpiler and TS/JSX detection moved in-process to nub-native, so oxc-transform and oxc-parser are no longer dependencies; only the helper-runtime package remains, imported by transpiled user code via VENDORED_PACKAGES. NUB_VERSION is the sole transpile-cache-busting key (runtime/preload.mjs); `make version` bumps it and rebuilds the addon, keeping the cache invariant 'the transpiler version is a pure function of the nub version'. Bump @oxc-project/runtime in lockstep with the addon's oxc pin. See wiki/runtime/transpile-cache.md. SEPARATELY, on adding any root dependency: the root is nub-identity and carries only nub.lock, so every CI leg installs it with `nub install --frozen-lockfile --node-linker hoisted` \u2014 `hoisted` because the runtime staging and nub-core's build script copy real directories out of node_modules and reject a symlinked store. An installer that exits 0 on a half-built tree leaves a GREEN install step, and the following 'assert root deps actually installed' step is what catches it. A large addition (~185 packages, measured) trips that guard across the whole matrix, and the symptom looks like unrelated import failures. Prefer `npx` at a pinned version for tooling that is not imported by the runtime; lat.md's checker is wired that way in the `lat:check` script.",
"dependencies": {
"@js-temporal/polyfill": "^0.5.1",
"@oxc-project/runtime": "0.140.0",
"@petamoriken/float16": "^3.9.3",
"lodash": "^4.18.1",
"urlpattern-polyfill": "^10.1.0"
},
"devDependencies": {
"untracked": "1.6.4"
},
"scripts": {
"hi": "echo 'hello world!'",
"soak": "node scripts/soak/soak.mts --check",
"soak:fix": "node scripts/soak/soak.mts --fix",
"deps:update": "node scripts/soak/update-deps.mts",
"tools:check": "node scripts/soak/external-tools.mts --check",
"tools:fix": "node scripts/soak/external-tools.mts --fix",
"tools:install": "node scripts/soak/external-tools.mts --install-all --shims",
"remotes:check": "node scripts/soak/remotes.mts --check",
"remotes:fix": "node scripts/soak/remotes.mts --fix",
"dockerignore:update": "untracked --write .dockerignore",
"lat": "npx --yes lat.md@0.12.2",
"lat:index": "npx --yes lat.md@0.12.2 reindex --local --yes",
"lat:check": "npx --yes lat.md@0.12.2 check",
"test:scripts": "node --test 'scripts/**/*.test.m[jt]s' 'tests/cross-runtime/*.test.mjs'"
},
"untracked": {
"whitelist": [
".cargo",
"crates/nub-native/.cargo",
"vendor/aube/.cargo",
"tests/docker-smoke"
]
},
"devEngines": {
"packageManager": {
"name": "nub",
"version": ">=0.7.4",
"onFail": "ignore"
}
}
}