Skip to content
Merged
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
9 changes: 6 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"devDependencies": {
"@babel/compat-data": "^7.26.8",
"@mongodb-js/monorepo-tools": "^1.1.10",
"@mongodb-js/sbom-tools": "^0.7.0",
"@mongodb-js/sbom-tools": "^0.7.2",
"@pkgjs/nv": "^0.2.2",
"@types/chai": "^4.2.5",
"@types/mocha": "^5.2.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"mongodb": "^6.14.2",
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
"@mongodb-js/prettier-config-devtools": "^1.0.1",
"@mongodb-js/sbom-tools": "^0.7.0",
"@mongodb-js/sbom-tools": "^0.7.2",
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
"@types/ansi-escape-sequences": "^4.0.0",
"@types/js-yaml": "^4.0.5",
Expand Down
1 change: 1 addition & 0 deletions packages/node-runtime-worker-thread/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
**/test/fixtures
**/*.nocov*
**/*.wxs
**/.sbom
7 changes: 5 additions & 2 deletions packages/node-runtime-worker-thread/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@
"webpack-build": "npm run compile && webpack --mode production",
"webpack-build-dev": "npm run compile && webpack --mode development",
"compile": "tsc -p tsconfig.json",
"prepublish": "npm run webpack-build",
"prepublish": "npm run webpack-build && npm run create-purls-file",
"prettier": "prettier",
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
"reformat": "npm run prettier -- --write . && npm run eslint --fix",
"create-purls-file": "npm run write-node-js-dep && node ../../scripts/create-purls.js .sbom/dependencies.json .sbom/node-js-dep.json > dist/purls.txt",
"write-node-js-dep": "mkdir -p .sbom && node ../../scripts/write-nodejs-dep > .sbom/node-js-dep.json"
},
"devDependencies": {
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
"@mongodb-js/prettier-config-devtools": "^1.0.1",
"@mongodb-js/sbom-tools": "^0.7.2",
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
"@mongosh/browser-runtime-core": "3.8.0",
"@mongosh/browser-runtime-electron": "3.8.0",
Expand Down
8 changes: 7 additions & 1 deletion packages/node-runtime-worker-thread/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@
const { merge } = require('webpack-merge');
const path = require('path');

const { WebpackDependenciesPlugin } = require('@mongodb-js/sbom-tools');
const baseWebpackConfig = require('../../config/webpack.base.config');

const webpackDependenciesPlugin = new WebpackDependenciesPlugin({
outputFilename: path.resolve(__dirname, '.sbom', 'dependencies.json'),
includeExternalProductionDependencies: true,
});

/** @type import('webpack').Configuration */
const config = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
libraryTarget: 'umd',
},

plugins: [webpackDependenciesPlugin],
externals: {
'mongodb-client-encryption': 'commonjs2 mongodb-client-encryption',
kerberos: 'commonjs2 kerberos',
Expand Down