diff --git a/yarn.config.cjs b/yarn.config.cjs index 2143b64f1839..9987a8b8fbf8 100644 --- a/yarn.config.cjs +++ b/yarn.config.cjs @@ -208,6 +208,9 @@ module.exports = defineConfig({ constraints: async ctx => { enforceConsistentDependenciesAcrossTheProject(ctx); enforceWorkspaceDependenciesWhenPossible(ctx); + forbidDependency(ctx, `@types/lodash`, `Don't depend on lodash - we use es-toolkit instead`); + forbidDependency(ctx, `inquirer`, `Don't depend on inquirer - we use enquirer instead`); + forbidDependency(ctx, `lodash`, `Don't depend on lodash - we use es-toolkit instead`); forbidDependency(ctx, `inquirer`, `Don't depend on inquirer - we use enquirer instead`); enforceDependencyRelationship(ctx, `typescript`, `tslib`, true); enforceUpdateLocalScripts(ctx);