Skip to content

Commit

Permalink
refactor: Move resolvePackageBinariesDict to main context
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Mar 1, 2024
1 parent 0e869a6 commit ad66884
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cache-package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const memoizee = require("memoizee")
, cachePath = require("../cache").path
, getPackageJson = require("../get-package-json")
, updatePackageJson = require("../update-package-json")
, resolveBinariesDict = require("../setup-dependency/install-external/resolve-binaries-dict");
, resolveBinariesDict = require("../resolve-package-binaries-dict");

const methods = [require("./sem-ver"), require("./git"), require("./other")];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

const memoizee = require("memoizee")
, getPackageJson = require("../../get-package-json");
, getPackageJson = require("./get-package-json");

module.exports = memoizee(
path => {
Expand Down
2 changes: 1 addition & 1 deletion lib/setup-dependency/install-external/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const optionalChaining = require("es5-ext/optional-chaining")
, getPackageJson = require("../../get-package-json")
, muteErrorIfOptional = require("../mute-error-if-optional")
, cachePackage = require("../../cache-package")
, resolveBinariesDict = require("./resolve-binaries-dict")
, resolveBinariesDict = require("../../resolve-package-binaries-dict")
, binaryHandler = require("./binary-handler");

const mapBinaries = async ({ name, path, dependentContext }) => {
Expand Down

0 comments on commit ad66884

Please sign in to comment.