Skip to content

Commit c928fa1

Browse files
committed
feat: build Socket 2.1 prerelease as Node 27 SEA
1 parent 8fcc0f9 commit c928fa1

240 files changed

Lines changed: 28512 additions & 1586 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.

‎.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)