Skip to content

Commit f39df87

Browse files
committed
feat: build Socket 2.1 prerelease as Node 27 SEA
1 parent ac09756 commit f39df87

265 files changed

Lines changed: 26146 additions & 1784 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/skills/bump-coana/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ PRs.
4747

4848
🚨 **Do NOT touch `package.json`'s top-level `version` field.** The release workflow owns it:
4949
between releases the manifest holds the last released version, and
50-
`scripts/release/bump.mts` derives and writes the next one in-run. Hand-writing
50+
`scripts/release/prepare.mts` derives and writes the next one in-run. Hand-writing
5151
it invents a version that never releases and breaks the next release — a manifest
5252
already sitting on the version being released has no line for the bump to
5353
advance.

‎.config/release.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"mode": "prerelease-only",
3+
"versionHint": "2.1.0",
4+
"identifier": "rc",
5+
"distTag": "rc-2.1.0"
6+
}

‎.config/rollup.base.config.mjs‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
isBuiltin,
2222
normalizeId,
2323
} from '../scripts/utils/packages.js'
24+
import { includedModulesInventoryPlugin } from '../src/sea/rollup-provenance.mjs'
2425

2526
const {
2627
INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION,
@@ -229,7 +230,11 @@ export default function baseConfig(extendConfig = {}) {
229230
],
230231
[
231232
INLINED_SOCKET_CLI_VERSION,
232-
() => JSON.stringify(getRootPkgJsonSync().version),
233+
() =>
234+
JSON.stringify(
235+
constants.ENV.INLINED_SOCKET_CLI_VERSION ||
236+
getRootPkgJsonSync().version,
237+
),
233238
],
234239
[
235240
INLINED_SOCKET_CLI_VERSION_HASH,
@@ -289,6 +294,15 @@ export default function baseConfig(extendConfig = {}) {
289294
},
290295
}),
291296
...extendPlugins,
297+
...(process.env.SOCKET_SEA_BUILD === 'true'
298+
? [
299+
includedModulesInventoryPlugin({
300+
root: rootPath,
301+
inventoryFile: 'THIRD-PARTY-NOTICES.json',
302+
bundleId: 'core-rollup',
303+
}),
304+
]
305+
: []),
292306
],
293307
}
294308
}

0 commit comments

Comments
 (0)