Skip to content

Commit 0c3ae68

Browse files
jan-stehlikJan Stehlik
authored and
Jan Stehlik
committedMay 5, 2021
chore: remove redundant lodash.endswith package
1 parent f73a9f6 commit 0c3ae68

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
"lodash.assign": "^4.2.0",
9393
"lodash.camelcase": "^4.3.0",
9494
"lodash.clonedeep": "^4.5.0",
95-
"lodash.endswith": "^4.2.1",
9695
"lodash.flatten": "^4.4.0",
9796
"lodash.flattendeep": "^4.4.0",
9897
"lodash.get": "^4.4.2",

‎src/lib/detect.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as fs from 'fs';
22
import * as pathLib from 'path';
33
import * as debugLib from 'debug';
4-
const endsWith = require('lodash.endswith');
54
import { NoSupportedManifestsFoundError } from './errors';
65
import { SupportedPackageManagers } from './package-managers';
76

@@ -99,9 +98,9 @@ const DETECTABLE_PACKAGE_MANAGERS: {
9998
'mix.exs': 'hex',
10099
};
101100

102-
export function isPathToPackageFile(path) {
101+
export function isPathToPackageFile(path: string) {
103102
for (const fileName of DETECTABLE_FILES) {
104-
if (endsWith(path, fileName)) {
103+
if (path.endsWith(fileName)) {
105104
return true;
106105
}
107106
}

0 commit comments

Comments
 (0)
Please sign in to comment.