Skip to content

Commit

Permalink
build: fix yarn.config.cjs for renovate (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston authored Feb 8, 2024
1 parent 50aa91b commit 5217089
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions yarn.config.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// @ts-check

/** @type {import('@yarnpkg/types')} */
const { defineConfig } = require("@yarnpkg/types");

/**
* @typedef {import('@yarnpkg/types').Yarn.Constraints.Context} Context
* @typedef {import('@yarnpkg/types').Yarn.Constraints.Workspace} Workspace
Expand Down Expand Up @@ -63,15 +60,16 @@ const enforcePublishingConfig = ({ Yarn }) => {
}
};

module.exports = defineConfig({
constraints: async (ctx) => {
enforceFieldsOnAllWorkspaces(ctx, {
/** @type {import('@yarnpkg/types').Yarn.Config} */
module.exports = {
constraints: async (context) => {
enforceFieldsOnAllWorkspaces(context, {
license: "MIT",
"repository.directory": (workspace) => workspace.cwd,
"repository.type": "git",
"repository.url": "git+https://github.com/catppuccin/vscode.git",
});
enforceConsistentDependenciesAcrossTheProject(ctx);
enforcePublishingConfig(ctx);
enforceConsistentDependenciesAcrossTheProject(context);
enforcePublishingConfig(context);
},
});
};

0 comments on commit 5217089

Please sign in to comment.