Skip to content

Commit

Permalink
fix: fall back to require-uncached
Browse files Browse the repository at this point in the history
Avoid sindresorhus/import-fresh#6 for the time being
  • Loading branch information
marionebl committed Nov 19, 2017
1 parent 7664940 commit 1108a84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
2 changes: 1 addition & 1 deletion @commitlint/core/package.json
Expand Up @@ -90,9 +90,9 @@
"conventional-changelog-angular": "^1.3.3",
"cosmiconfig": "^3.0.1",
"find-up": "^2.1.0",
"import-fresh": "^2.0.0",
"lodash": "^4.17.4",
"path-exists": "^3.0.0",
"require-uncached": "^1.0.3",
"resolve-from": "^3.0.0",
"resolve-global": "^0.1.0",
"semver": "^5.3.0"
Expand Down
4 changes: 2 additions & 2 deletions @commitlint/core/src/library/resolve-extends.js
@@ -1,6 +1,6 @@
import 'resolve-global'; // eslint-disable-line import/no-unassigned-import
import path from 'path';
import importFresh from 'import-fresh';
import requireUncached from 'require-uncached';
import resolveFrom from 'resolve-from';
import {merge, omit} from 'lodash';

Expand Down Expand Up @@ -94,7 +94,7 @@ function resolveId(id, context = {}) {
return localPath;
}

const resolveGlobal = importFresh('resolve-global');
const resolveGlobal = requireUncached('resolve-global');
const globalPath = resolveGlobal.silent(id);

if (typeof globalPath === 'string') {
Expand Down
23 changes: 0 additions & 23 deletions yarn.lock
Expand Up @@ -1332,32 +1332,16 @@ call-signature@0.0.2:
version "0.0.2"
resolved "https://registry.npmjs.org/call-signature/-/call-signature-0.0.2.tgz#a84abc825a55ef4cb2b028bd74e205a65b9a4996"

caller-callsite@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134"
dependencies:
callsites "^2.0.0"

caller-path@^0.1.0:
version "0.1.0"
resolved "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f"
dependencies:
callsites "^0.2.0"

caller-path@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4"
dependencies:
caller-callsite "^2.0.0"

callsites@^0.2.0:
version "0.2.0"
resolved "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca"

callsites@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50"

camelcase-keys@^2.0.0:
version "2.1.0"
resolved "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7"
Expand Down Expand Up @@ -3594,13 +3578,6 @@ ignore@^3.2.0, ignore@^3.2.6, ignore@^3.3.3:
version "3.3.7"
resolved "https://registry.npmjs.org/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021"

import-fresh@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546"
dependencies:
caller-path "^2.0.0"
resolve-from "^3.0.0"

import-from@2.1.0, import-from@^2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/import-from/-/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1"
Expand Down

0 comments on commit 1108a84

Please sign in to comment.