Skip to content

Commit 6c52935

Browse files
authored
fix: tweak native-machine-id scripts (#536)
* fix: tweak native-machine-id scripts * add prettier script
1 parent de98113 commit 6c52935

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

package-lock.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ignores:
2+
- '@mongodb-js/prettier-config-devtools'
3+
- '@mongodb-js/tsconfig-devtools'
4+
- '@types/chai'
5+
- '@types/sinon-chai'
6+
- 'sinon'
7+
- 'node-addon-api'
8+
ignore-patterns:
9+
- 'dist'

packages/native-machine-id/package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
"bootstrap": "npm run compile",
1010
"pretest": "npm run compile",
1111
"install": "node-gyp rebuild",
12+
"prettier": "prettier",
13+
"typecheck": "tsc --noEmit",
1214
"test": "mocha",
1315
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
1416
"test-ci": "npm run test-cov",
1517
"lint": "eslint . && prettier --check .",
16-
"check": "npm run lint && npm run test",
18+
"depcheck": "depcheck",
19+
"check": "npm run typecheck && npm run lint && npm run depcheck",
1720
"prepublishOnly": "npm run compile",
18-
"benchmark": "ts-node scripts/benchmark.ts"
21+
"benchmark": "ts-node scripts/benchmark.ts",
22+
"reformat": "npm run prettier -- --write ."
1923
},
2024
"author": "Compass Team <[email protected]>",
2125
"gypfile": true,
@@ -50,17 +54,17 @@
5054
"@mongodb-js/mocha-config-devtools": "^1.0.5",
5155
"@mongodb-js/prettier-config-devtools": "^1.0.2",
5256
"@mongodb-js/tsconfig-devtools": "^1.0.3",
53-
"@types/chai": "^4.2.21",
5457
"@types/mocha": "^9.1.1",
5558
"@types/node": "^17.0.35",
5659
"@types/sinon-chai": "^3.2.5",
57-
"chai": "^4.5.0",
5860
"eslint": "^7.25.0",
5961
"gen-esm-wrapper": "^1.1.1",
6062
"mocha": "^8.4.0",
63+
"depcheck": "^1.4.7",
6164
"node-machine-id": "^1.1.12",
62-
"ts-node": "^10.9.2",
63-
"typescript": "^5.0.4"
65+
"prettier": "^3.5.3",
66+
"typescript": "^5.0.4",
67+
"ts-node": "^10.9.2"
6468
},
6569
"keywords": [
6670
"machine id",

0 commit comments

Comments
 (0)