Skip to content

Commit

Permalink
chore: add .npmrc for pnpm category custom build
Browse files Browse the repository at this point in the history
  • Loading branch information
git-alazara committed Jun 16, 2023
1 parent e271a1e commit 22ce95b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/amplify-category-custom/resources/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resolution-mode=highest
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ async function generateSkeletonDir(resourceName: string) {

const cdkFilepath = path.join(targetDir, 'cdk-stack.ts');
fs.writeFileSync(cdkFilepath, fs.readFileSync(path.join(srcResourceDirPath, 'cdk-stack.ts.sample')));

const npmRcPath = path.join(targetDir, '.npmrc');
fs.writeFileSync(npmRcPath, fs.readFileSync(path.join(srcResourceDirPath, '.npmrc')));
}

0 comments on commit 22ce95b

Please sign in to comment.