-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathyarn.config.cjs
More file actions
19 lines (18 loc) · 973 Bytes
/
yarn.config.cjs
File metadata and controls
19 lines (18 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// ~~ Generated by projen. To modify, edit .projenrc.ts and run "yarn projen".
// @ts-check
/** @type {import('@yarnpkg/types')} */
const { defineConfig } = require(`@yarnpkg/types`);
module.exports = defineConfig({
async constraints({ Yarn }) {
const root = Yarn.workspace({ cwd: '.' });
for (const ident of ["typescript","eslint","eslint-import-resolver-typescript","eslint-plugin-import","eslint-plugin-jest","eslint-plugin-jsdoc","@cdklabs/eslint-plugin","@stylistic/eslint-plugin","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","prettier","eslint-config-prettier","eslint-plugin-prettier","jest","jest-junit","@types/jest","projen","nx"]) {
const expected = root.manifest.devDependencies?.[ident];
if (!expected) continue;
for (const workspace of Yarn.workspaces()) {
if (workspace.manifest.devDependencies?.[ident]) {
workspace.set(['devDependencies', ident], expected);
}
}
}
},
});