Skip to content

Commit

Permalink
fix(build): ignore .npmrc MONGOSH-521 (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
rose-m authored Feb 2, 2021
1 parent efd9140 commit e96f0fd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.idea/
.vscode/
*.iml
.npmrc
.nvmrc
.nyc_output
*.swp
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/npm-packages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
1 change: 0 additions & 1 deletion packages/build/src/npm-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export function markBumpedFilesAsAssumeUnchanged(
spawnSyncFn: typeof spawnSync = spawnSync
): void {
const filesToAssume = [
'.npmrc',
'lerna.json'
];
packages.forEach(({ name }) => {
Expand Down

0 comments on commit e96f0fd

Please sign in to comment.