Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
fix: update module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Alif Rachmawadi committed Apr 25, 2020
1 parent 2b4f1b2 commit 5e433e4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/snowboard-packer/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,10 @@ function detectPublicPath(outDir) {
}

function moduleDirs(templateDir) {
const {
_where: installDir,
_requiredBy: requiredBy
} = require("../package.json");
const { _where: installDir } = require("../package.json");

if (installDir) {
return [
resolve(installDir, requiredBy.includes("/") ? "node_modules" : "../")
];
return [resolve(installDir, "node_modules"), resolve(installDir, "../")];
}

return [
Expand Down

0 comments on commit 5e433e4

Please sign in to comment.