Skip to content

Commit da26658

Browse files
authored
chore: move parseCliArgs to args-parser MCP-298 (#2595)
1 parent 80d3e53 commit da26658

File tree

13 files changed

+1322
-1195
lines changed

13 files changed

+1322
-1195
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: 61 additions & 19 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: 14 additions & 1 deletion
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"
@@ -37,13 +48,15 @@
3748
"dependencies": {
3849
"@mongosh/errors": "2.4.4",
3950
"@mongosh/i18n": "^2.19.0",
40-
"mongodb-connection-string-url": "^3.0.2"
51+
"mongodb-connection-string-url": "^3.0.2",
52+
"yargs-parser": "^20.2.4"
4153
},
4254
"devDependencies": {
4355
"@mongodb-js/devtools-connect": "^3.9.4",
4456
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
4557
"@mongodb-js/prettier-config-devtools": "^1.0.1",
4658
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
59+
"@types/yargs-parser": "^21.0.3",
4760
"depcheck": "^1.4.7",
4861
"eslint": "^7.25.0",
4962
"mongodb": "^6.19.0",

0 commit comments

Comments
 (0)