From e96f0fd73cfd82f4a8885f241b824974e1e9837b Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 2 Feb 2021 16:57:48 +0100 Subject: [PATCH] fix(build): ignore .npmrc MONGOSH-521 (#602) --- .gitignore | 1 + packages/build/src/npm-packages.spec.ts | 2 +- packages/build/src/npm-packages.ts | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ea2b0e44d..6404cad20 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ .idea/ .vscode/ *.iml +.npmrc .nvmrc .nyc_output *.swp diff --git a/packages/build/src/npm-packages.spec.ts b/packages/build/src/npm-packages.spec.ts index 64fc2f11d..4cdcd3e14 100644 --- a/packages/build/src/npm-packages.spec.ts +++ b/packages/build/src/npm-packages.spec.ts @@ -172,7 +172,7 @@ describe('npm-packages', () => { let spawnSync: SinonStub; beforeEach(() => { - expectedFiles = ['.npmrc', 'lerna.json']; + expectedFiles = ['lerna.json']; packages = listNpmPackages(); packages.forEach(({ name }) => { expectedFiles.push(`packages/${name}/package.json`); diff --git a/packages/build/src/npm-packages.ts b/packages/build/src/npm-packages.ts index 4234ccbf5..81539ba52 100644 --- a/packages/build/src/npm-packages.ts +++ b/packages/build/src/npm-packages.ts @@ -108,7 +108,6 @@ export function markBumpedFilesAsAssumeUnchanged( spawnSyncFn: typeof spawnSync = spawnSync ): void { const filesToAssume = [ - '.npmrc', 'lerna.json' ]; packages.forEach(({ name }) => {