Skip to content

Commit a0d139a

Browse files
committed
chore: fix shell-api, worker-thread tests, java-shell, i18n
1 parent b625e4e commit a0d139a

File tree

6 files changed

+35
-4
lines changed

6 files changed

+35
-4
lines changed

knip.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const config: KnipConfig = {
108108
},
109109

110110
"packages/java-shell": {
111+
entry: ["src/test/js/run-tests.ts"],
111112
project: ["src/main/js/**/*"],
112113
ignoreDependencies: [
113114
// Used in webpack and build scripts

package-lock.json

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,17 @@
135135
"packages/build",
136136
"packages/errors",
137137
"packages/history",
138-
"packages/java-shell",
139138
"packages/js-multiline-to-singleline",
140139
"packages/types",
141-
"packages/i18n",
142140
"packages/logging",
143141
"packages/shell-bson",
144142
"testing",
145-
"packages/arg-parser",
143+
"packages/java-shell",
146144
"packages/service-provider-core",
147145
"packages/e2e-tests",
148146
"packages/service-provider-node-driver",
147+
"packages/arg-parser",
148+
"packages/i18n",
149149
"packages/shell-api",
150150
"packages/autocomplete",
151151
"packages/shell-evaluator",

packages/java-shell/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"devDependencies": {
2121
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
22+
"@mongosh/testing": "0.0.0-dev.0",
2223
"assert": "^1.5.0",
2324
"buffer": "^6.0.3",
2425
"crypto-browserify": "^3.12.0",

packages/node-runtime-worker-thread/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@
3535
"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",
3636
"write-node-js-dep": "mkdir -p .sbom && node ../../scripts/write-nodejs-dep > .sbom/node-js-dep.json"
3737
},
38+
"mongosh": {
39+
"ciRequiredOptionalDependencies": {
40+
"macos-export-certificate-and-key": [
41+
"darwin"
42+
],
43+
"win-export-certificate-and-key": [
44+
"win32"
45+
],
46+
"get-console-process-list": [
47+
"win32"
48+
],
49+
"glibc-version": [
50+
"linux"
51+
]
52+
}
53+
},
3854
"devDependencies": {
3955
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
4056
"@mongodb-js/prettier-config-devtools": "^1.0.1",
@@ -58,5 +74,10 @@
5874
"interruptor": "^1.0.1",
5975
"system-ca": "^2.0.1",
6076
"web-worker": "^1.3.0"
77+
},
78+
"optionalDependencies": {
79+
"glibc-version": "^1.0.0",
80+
"macos-export-certificate-and-key": "^1.2.4",
81+
"win-export-certificate-and-key": "^2.1.0"
6182
}
6283
}

packages/shell-api/src/shell-instance-state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type {
33
AutoEncryptionOptions,
44
ConnectionExtraInfo,
55
ConnectionInfo,
6+
Document,
67
ServerApi,
78
ServiceProvider,
89
ServiceProviderBaseCursor,

0 commit comments

Comments
 (0)