Skip to content

Commit

Permalink
copy original npmrc in the generated npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorfr committed Nov 16, 2017
1 parent 25950bd commit 8a4024b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tasks/Yarn/yarnTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,16 @@ async function yarnExec() {
tl.debug(yarnPath);

let npmrc = util.getTempNpmrcPath();
fs.ensureFileSync(npmrc);
let npmRegistries: INpmRegistry[] = await util.getLocalNpmRegistries(projectPath);
let overrideNpmrc = fs.existsSync(projectNpmrc());
let registryLocation = customRegistry;

if (overrideNpmrc) {
fs.copySync(projectNpmrc(), npmrc);
}

fs.ensureFileSync(npmrc);

switch (registryLocation) {
case RegistryLocation.Feed:
tl.debug("Using internal feed");
Expand Down

0 comments on commit 8a4024b

Please sign in to comment.