Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const config = createConfig([
sourceType: 'module',
parserOptions: {
tsconfigRootDir: import.meta.dirname,
project: ['./tsconfig.json'],
},
},

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"@lavamoat/allow-scripts": "^3.0.4",
"@lavamoat/preinstall-always-fail": "^2.0.0",
"@metamask/auto-changelog": "^4.0.0",
"@metamask/eslint-config": "^14.0.0",
"@metamask/eslint-config-nodejs": "^14.0.0",
"@metamask/eslint-config-typescript": "^14.0.0",
"@metamask/eslint-config-vitest": "^1.0.0",
"@metamask/eslint-config": "^15.0.0",
"@metamask/eslint-config-nodejs": "^15.0.0",
"@metamask/eslint-config-typescript": "^15.0.0",
"@metamask/eslint-config-vitest": "^15.0.0",
"@ts-bridge/cli": "^0.6.3",
"@types/node": "^18.18",
"@typescript-eslint/utils": "^8.6.0",
Expand All @@ -74,7 +74,7 @@
"ts-node": "^10.7.0",
"typedoc": "^0.26.11",
"typescript": "~5.7.3",
"typescript-eslint": "^8.6.0",
"typescript-eslint": "^8.48.1",
"vite": "^6.2.0",
"vitest": "^3.0.7"
},
Expand Down
7 changes: 7 additions & 0 deletions yarn.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { basename, resolve } = require('path');
/**
* Aliases for the Yarn type definitions, to make the code more readable.
*
* @typedef {import('@yarnpkg/types').Yarn.Constraints.Yarn} Yarn
* @typedef {import('@yarnpkg/types').Yarn.Constraints.Workspace} Workspace
* @typedef {import('@yarnpkg/types').Yarn.Constraints.Dependency} Dependency
*/
Expand Down Expand Up @@ -222,6 +223,12 @@ function expectExports(workspace) {
}

module.exports = defineConfig({
/**
* Define the constraints for this project.
*
* @param {object} args - The arguments.
* @param {Yarn} args.Yarn - The Yarn "global".
*/
async constraints({ Yarn }) {
const workspace = Yarn.workspace();
const workspaceName = getWorkspaceName(workspace);
Expand Down
Loading