Skip to content

Commit 132a48d

Browse files
committed
chore: try nodenext
1 parent 674866f commit 132a48d

File tree

8 files changed

+76
-22
lines changed

8 files changed

+76
-22
lines changed

configs/tsconfig-mongosh/tsconfig.common.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"removeComments": true,
1515
"target": "es2018",
1616
"lib": ["es2019"],
17-
"module": "commonjs",
18-
"moduleResolution": "node"
17+
"module": "nodenext",
18+
"moduleResolution": "nodenext"
1919
}
2020
}

package-lock.json

Lines changed: 54 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/arg-parser/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
"version": "3.22.2",
44
"description": "MongoDB Shell CLI Argument List Parser Package",
55
"main": "./lib/index.js",
6+
"types": "./lib/index.d.ts",
7+
"exports": {
8+
".": {
9+
"default": "./lib/index.js",
10+
"types": "./lib/index.d.ts"
11+
},
12+
"./arg-parser": {
13+
"default": "./lib/arg-parser.js",
14+
"types": "./lib/arg-parser.d.ts"
15+
}
16+
},
617
"repository": {
718
"type": "git",
819
"url": "git://github.com/mongodb-js/mongosh.git"

packages/arg-parser/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ export function generateConnectionInfoFromCliArgs(
1919
const connectionString = generateUri(options);
2020
return mapCliToDriver(options, { connectionString, driverOptions: {} });
2121
}
22-
23-
export { parseCliArgs, UnknownCliArgumentError } from './arg-parser';

packages/browser-repl/src/components/editor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function createCommands(
6767
},
6868
{
6969
key: 'ArrowUp',
70-
run: (context) => {
70+
run: (context: any) => {
7171
const selection = context.state.selection.main;
7272
if (!selection.empty) {
7373
return false;
@@ -88,7 +88,7 @@ export function createCommands(
8888
},
8989
{
9090
key: 'ArrowDown',
91-
run: (context) => {
91+
run: (context: any) => {
9292
const selection = context.state.selection.main;
9393
if (!selection.empty) {
9494
return false;
@@ -146,7 +146,7 @@ export class Editor extends Component<EditorProps> {
146146

147147
constructor(props: EditorProps) {
148148
super(props);
149-
this.autocompleter = (context) => {
149+
this.autocompleter = (context: any) => {
150150
if (!this.props.autocompleter?.getCompletions) {
151151
return null;
152152
}

packages/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
},
6666
"dependencies": {
6767
"@mongodb-js/devtools-github-repo": "^1.4.2",
68-
"@mongodb-js/dl-center": "^1.3.0",
68+
"@mongodb-js/dl-center": "^1.4.4",
6969
"@mongodb-js/mongodb-downloader": "^0.3.7",
7070
"@mongodb-js/monorepo-tools": "^1.1.16",
7171
"@mongodb-js/signing-utils": "^0.3.7",

packages/build/src/download-center/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { major as majorVersion } from 'semver';
66
import type {
77
DownloadCenterConfig,
88
PlatformWithPackages,
9-
} from '@mongodb-js/dl-center/dist/download-center-config';
9+
} from '@mongodb-js/dl-center';
1010
import {
1111
ARTIFACTS_BUCKET,
1212
JSON_FEED_ARTIFACT_KEY,

packages/cli-repl/src/arg-parser.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import i18n from '@mongosh/i18n';
2-
import { parseCliArgs, UnknownCliArgumentError } from '@mongosh/arg-parser';
2+
import {
3+
parseCliArgs,
4+
UnknownCliArgumentError,
5+
} from '@mongosh/arg-parser/arg-parser';
36
import { colorizeForStderr as clr } from './clr';
47
import { USAGE } from './constants';
58

0 commit comments

Comments
 (0)