Skip to content

Commit 42d19ea

Browse files
committed
add ignore list
1 parent ceb13e7 commit 42d19ea

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

packages/build/src/npm-packages/bump.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { spawnSync } from '../helpers';
2-
import { MONGOSH_RELEASE_PACKAGES, PROJECT_ROOT } from './constants';
2+
import {
3+
IGNORE_BUMP_PACKAGES,
4+
MONGOSH_RELEASE_PACKAGES,
5+
PROJECT_ROOT,
6+
} from './constants';
37

48
import { promises as fs } from 'fs';
59
import path from 'path';
@@ -55,7 +59,10 @@ export function bumpNpmPackages() {
5559
encoding: 'utf8',
5660
env: {
5761
...process.env,
58-
SKIP_BUMP_PACKAGES: MONGOSH_RELEASE_PACKAGES.join(','),
62+
SKIP_BUMP_PACKAGES: [
63+
...IGNORE_BUMP_PACKAGES,
64+
...MONGOSH_RELEASE_PACKAGES,
65+
].join(','),
5966
},
6067
});
6168
}

packages/build/src/npm-packages/constants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ export const LERNA_BIN = path.resolve(
1010

1111
/** Packages which get bumped only as part of the mongosh release. */
1212
export const MONGOSH_RELEASE_PACKAGES = ['mongosh', '@mongosh/cli-repl'];
13+
14+
/** Packages which always get ignored when doing a release or bump */
15+
export const IGNORE_BUMP_PACKAGES = [
16+
'@mongodb-js/eslint-config-mongosh',
17+
'@mongodb-js/tsconfig-mongosh',
18+
];

0 commit comments

Comments
 (0)