Skip to content

Commit ffbf1ea

Browse files
ronjouchnodkz
authored andcommitted
fix: add @types/tmp to dependencies (#266)
* Add @types/tmp to devDeps Not including it in devDeps means that `strict: true` TSC projects using mongoms currently fail to compile with: ``` node_modules/mongodb-memory-server-core/lib/MongoMemoryServer.d.ts:3:22 - error TS7016: Could not find a declaration file for module 'tmp'. 'node_modules/mongodb-memory-server-core/node_modules/tmp/lib/tmp.js' implicitly has an 'any' type. Try `npm install @types/tmp` if it exists or add a new declaration (.d.ts) file containing `declare module 'tmp';` 3 import * as tmp from 'tmp'; ~~~~~ ``` * pr fix
1 parent ac06af3 commit ffbf1ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/mongodb-memory-server-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
},
3232
"homepage": "https://github.com/nodkz/mongodb-memory-server",
3333
"devDependencies": {
34+
"rimraf": "^3.0.0"
35+
},
36+
"dependencies": {
3437
"@types/cross-spawn": "^6.0.1",
3538
"@types/decompress": "^4.2.3",
3639
"@types/dedent": "^0.7.0",
@@ -42,9 +45,6 @@
4245
"@types/mkdirp": "^0.5.2",
4346
"@types/tmp": "0.1.0",
4447
"@types/uuid": "3.4.6",
45-
"rimraf": "^3.0.0"
46-
},
47-
"dependencies": {
4848
"camelcase": "^5.3.1",
4949
"cross-spawn": "^7.0.1",
5050
"debug": "^4.1.1",

0 commit comments

Comments
 (0)