Skip to content

Commit 5ea1da5

Browse files
committed
Move over to a create-workspace version of the package
1 parent c1d6ead commit 5ea1da5

File tree

11 files changed

+116
-50
lines changed

11 files changed

+116
-50
lines changed

package-lock.json

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

packages/download-url/.depcheckrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ignores:
2+
- '@mongodb-js/prettier-config-devtools'
3+
- '@mongodb-js/tsconfig-devtools'
4+
- '@types/chai'
5+
- '@types/sinon-chai'
6+
- 'sinon'
7+
ignore-patterns:
8+
- 'lib'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.nyc-output
2+
lib

packages/download-url/.eslintrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/download-url/.eslintrc.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@mongodb-js/eslint-config-devtools'],
4+
parserOptions: {
5+
tsconfigRootDir: __dirname,
6+
project: ['./tsconfig-lint.json'],
7+
},
8+
rules: {
9+
'@typescript-eslint/no-explicit-any': 'off',
10+
'@typescript-eslint/no-non-null-assertion': 'off',
11+
'@typescript-eslint/restrict-template-expressions': 'off',
12+
},
13+
};

packages/download-url/.mocharc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@mongodb-js/mocha-config-devtools');
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.nyc_output
2+
lib
3+
coverage
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"@mongodb-js/prettier-config-devtools"

packages/download-url/package.json

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@
33
"version": "1.5.4",
44
"description": "Lookup download URLs for MongoDB versions.",
55
"scripts": {
6-
"lint": "eslint src/**/*.ts test/**/*.ts",
7-
"lint-fix": "eslint src/**/*.ts test/**/*.ts --fix",
8-
"test": "npm run lint && npm run build && nyc -r text -r html mocha --colors -r ts-node/register test/*.ts",
9-
"build": "npm run compile-ts && gen-esm-wrapper . ./.esm-wrapper.mjs",
10-
"prepare": "npm run build",
11-
"compile-ts": "tsc -p tsconfig.json"
6+
"bootstrap": "npm run compile",
7+
"prepublishOnly": "npm run compile",
8+
"compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./.esm-wrapper.mjs",
9+
"typecheck": "tsc --noEmit",
10+
"eslint": "eslint",
11+
"prettier": "prettier",
12+
"lint": "npm run eslint . && npm run prettier -- --check .",
13+
"lint-fix": "npm run eslint . -- --fix && npm run prettier -- --write .",
14+
"depcheck": "depcheck",
15+
"check": "npm run typecheck && npm run lint && npm run depcheck",
16+
"check-ci": "npm run check",
17+
"test": "mocha",
18+
"test-cov": "nyc -r text -r html -r lcov mocha --colors -r ts-node/register test/*.ts",
19+
"test-watch": "npm run test -- --watch",
20+
"test-ci": "npm run test-cov",
21+
"reformat": "npm run prettier -- --write ."
1222
},
1323
"main": "lib/index.js",
1424
"exports": {
@@ -35,21 +45,22 @@
3545
"semver": "^7.1.1"
3646
},
3747
"devDependencies": {
48+
"@mongodb-js/eslint-config-devtools": "0.9.10",
49+
"@mongodb-js/mocha-config-devtools": "^1.0.4",
50+
"@mongodb-js/prettier-config-devtools": "^1.0.1",
51+
"@mongodb-js/tsconfig-devtools": "^1.0.2",
52+
"@types/chai": "^4.2.21",
3853
"@types/mocha": "^9.1.1",
3954
"@types/node": "^17.0.35",
40-
"@typescript-eslint/eslint-plugin": "^5.59.0",
41-
"@typescript-eslint/parser": "^5.59.0",
42-
"eslint": "^7.22.0",
43-
"eslint-config-semistandard": "^17.0.0",
44-
"eslint-config-standard": "^17.1.0",
45-
"eslint-plugin-import": "^2.22.1",
46-
"eslint-plugin-node": "^11.1.0",
47-
"eslint-plugin-promise": "^6.1.1",
55+
"depcheck": "^1.4.1",
56+
"eslint": "^7.25.0",
4857
"gen-esm-wrapper": "^1.1.1",
4958
"mocha": "^8.4.0",
5059
"nyc": "^15.1.0",
51-
"ts-node": "^10.9.2",
52-
"typescript": "^5.0.4"
60+
"prettier": "^2.3.2",
61+
"sinon": "^9.2.3",
62+
"typescript": "^5.0.4",
63+
"ts-node": "^10.9.2"
5364
},
5465
"keywords": [
5566
"mongodb",
@@ -62,5 +73,4 @@
6273
"author": "Lucas Hrabovsky <[email protected]> (http://imlucas.com)",
6374
"license": "Apache-2.0",
6475
"homepage": "https://github.com/mongodb-js/devtools-shared/tree/main/packages/download-url"
65-
66-
}
76+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["**/*"],
4+
"exclude": ["node_modules", "lib"]
5+
}

0 commit comments

Comments
 (0)