File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 92
92
"lodash.assign" : " ^4.2.0" ,
93
93
"lodash.camelcase" : " ^4.3.0" ,
94
94
"lodash.clonedeep" : " ^4.5.0" ,
95
- "lodash.endswith" : " ^4.2.1" ,
96
95
"lodash.flatten" : " ^4.4.0" ,
97
96
"lodash.flattendeep" : " ^4.4.0" ,
98
97
"lodash.get" : " ^4.4.2" ,
Original file line number Diff line number Diff line change 1
1
import * as fs from 'fs' ;
2
2
import * as pathLib from 'path' ;
3
3
import * as debugLib from 'debug' ;
4
- const endsWith = require ( 'lodash.endswith' ) ;
5
4
import { NoSupportedManifestsFoundError } from './errors' ;
6
5
import { SupportedPackageManagers } from './package-managers' ;
7
6
@@ -99,9 +98,9 @@ const DETECTABLE_PACKAGE_MANAGERS: {
99
98
'mix.exs' : 'hex' ,
100
99
} ;
101
100
102
- export function isPathToPackageFile ( path ) {
101
+ export function isPathToPackageFile ( path : string ) {
103
102
for ( const fileName of DETECTABLE_FILES ) {
104
- if ( endsWith ( path , fileName ) ) {
103
+ if ( path . endsWith ( fileName ) ) {
105
104
return true ;
106
105
}
107
106
}
You can’t perform that action at this time.
0 commit comments