File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
packages/mongodb-memory-server-core Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 3434 "@types/debug" : " ^4.1.5" ,
3535 "@types/dedent" : " ^0.7.0" ,
3636 "@types/find-cache-dir" : " ^3.2.0" ,
37- "@types/find-package-json" : " ^1.1.1 " ,
37+ "@types/find-package-json" : " ^1.2.0 " ,
3838 "@types/lockfile" : " ^1.0.1" ,
3939 "@types/md5-file" : " ^4.0.2" ,
4040 "@types/mkdirp" : " ^1.0.1" ,
Original file line number Diff line number Diff line change 11import camelCase from 'camelcase' ;
2- import finder , { FinderIterator , Package } from 'find-package-json' ;
2+ import finder from 'find-package-json' ;
33import debug from 'debug' ;
44import * as path from 'path' ;
55
66const log = debug ( 'MongoMS:ResolveConfig' ) ;
77
8- // Workaround, because that package dosnt implement the default iterator
9- interface CustomFinderIterator extends FinderIterator {
10- [ Symbol . iterator ] ( ) : Iterator < Package > ;
11- }
12-
138export enum ResolveConfigVariables {
149 DOWNLOAD_DIR = 'DOWNLOAD_DIR' ,
1510 PLATFORM = 'PLATFORM' ,
@@ -52,7 +47,7 @@ let packageJsonConfig: Record<string, string> = {};
5247 * @param directory Set an custom directory to search the config in (default: process.cwd())
5348 */
5449export function findPackageJson ( directory ?: string ) : Record < string , string > {
55- for ( const found of finder ( directory || process . cwd ( ) ) as CustomFinderIterator ) {
50+ for ( const found of finder ( directory || process . cwd ( ) ) ) {
5651 // This is an hidden property, using this because an "for..of" loop dosnt return the "filename" value that is besides the "done" and "value" value
5752 const filename = found . __path as string ;
5853 log ( `findPackageJson: Found package.json at "${ filename } "` ) ;
Original file line number Diff line number Diff line change 19551955 resolved "https://registry.yarnpkg.com/@types/find-cache-dir/-/find-cache-dir-3.2.0.tgz#eaaf331699dccf52c47926e4d4f8f3ed8db33f3c"
19561956 integrity sha512-+JeT9qb2Jwzw72WdjU+TSvD5O1QRPWCeRpDJV+guiIq+2hwR0DFGw+nZNbTFjMIVe6Bf4GgAKeB/6Ytx6+MbeQ==
19571957
1958- " @types/find-package-json@^1.1.1 " :
1959- version "1.1.1 "
1960- resolved "https://registry.yarnpkg.com/@types/find-package-json/-/find-package-json-1.1.1 .tgz#c0d296ac74fe3309ed0fe75a9c3edb42a776d30c "
1961- integrity sha512-XMCocYkg6VUpkbOQMKa3M5cgc3MvU/LJKQwd3VUJrWZbLr2ARUggupsCAF8DxjEEIuSO6HlnH+vl+XV4bgVeEQ ==
1958+ " @types/find-package-json@^1.2.0 " :
1959+ version "1.2.0 "
1960+ resolved "https://registry.yarnpkg.com/@types/find-package-json/-/find-package-json-1.2.0 .tgz#bd8cb2be70338e50713628154d6addd1fb4999e2 "
1961+ integrity sha512-6MllVGBx1F+O3w1dozG1PtI+rKDZf7r7llwd+M3JaSJqTcOiiELFzzaeWKmg335Ibt+ihOdepRseFii5/femfA ==
19621962 dependencies :
19631963 " @types/node" " *"
19641964
You can’t perform that action at this time.
0 commit comments