Skip to content

Commit

Permalink
chore: bump (dev)Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Feb 16, 2021
1 parent 9b34271 commit 38dba0b
Show file tree
Hide file tree
Showing 5 changed files with 3,301 additions and 3,029 deletions.
4 changes: 3 additions & 1 deletion .renovaterc
@@ -1,3 +1,5 @@
{
"extends": "@1stg"
"extends": [
"@1stg"
]
}
27 changes: 14 additions & 13 deletions package.json
Expand Up @@ -17,7 +17,8 @@
"fesm5": "lib/esm",
"types": "lib",
"files": [
"lib/*.{js,js.map,d.ts}"
"!*.tsbuildinfo",
"lib"
],
"keywords": [
"typescript",
Expand Down Expand Up @@ -52,34 +53,34 @@
"eslint-plugin-import": "*"
},
"dependencies": {
"debug": "^4.1.1",
"debug": "^4.3.1",
"glob": "^7.1.6",
"is-glob": "^4.0.1",
"resolve": "^1.17.0",
"resolve": "^1.20.0",
"tsconfig-paths": "^3.9.0"
},
"devDependencies": {
"@1stg/lib-config": "^0.5.5",
"@1stg/lib-config": "^1.0.1",
"@types/debug": "^4.1.5",
"@types/glob": "^7.1.3",
"@types/is-glob": "^4.0.1",
"@types/node": "^14.6.2",
"@types/resolve": "^1.17.1",
"@types/node": "^14.14.28",
"@types/resolve": "^1.19.0",
"@types/unist": "^2.0.3",
"dummy.js": "link:dummy.js",
"eslint-import-resolver-typescript": "link:.",
"npm-run-all": "^4.1.5",
"react": "^16.13.1",
"standard-version": "^8.0.2",
"type-coverage": "^2.9.0",
"typescript": "^4.0.2",
"yarn-deduplicate": "^3.0.0"
"react": "^17.0.1",
"standard-version": "^9.1.0",
"type-coverage": "^2.14.9",
"typescript": "^4.1.5",
"yarn-deduplicate": "^3.1.0"
},
"resolutions": {
"eslint-import-resolver-typescript": "link:.",
"prettier": "^2.1.1"
"prettier": "^2.2.1"
},
"typeCoverage": {
"atLeast": 99.27
"atLeast": 99.28
}
}
11 changes: 7 additions & 4 deletions src/index.ts
Expand Up @@ -15,11 +15,14 @@ const IMPORTER_NAME = 'eslint-import-resolver-typescript'

const log = debug(IMPORTER_NAME)

const defaultExtensions = ['.ts', '.tsx', '.d.ts'].concat(
const defaultExtensions = [
'.ts',
'.tsx',
'.d.ts',
// eslint-disable-next-line node/no-deprecated-api
Object.keys(require.extensions),
...Object.keys(require.extensions),
'.jsx',
)
]

export const interfaceVersion = 2

Expand Down Expand Up @@ -213,7 +216,7 @@ function initMappers(options: TsResolverOptions) {
mappers = configPaths
// turn glob patterns into paths
.reduce<string[]>(
(paths, path) => paths.concat(isGlob(path) ? globSync(path) : path),
(paths, path) => [...paths, ...(isGlob(path) ? globSync(path) : [path])],
[],
)
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@1stg/tsconfig/lib.json",
"compilerOptions": {
"baseUrl": ".",
"declarationMap": false,
"outDir": "lib"
},
"include": ["src"]
Expand Down

0 comments on commit 38dba0b

Please sign in to comment.