-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#### Details This PR migrates the repo from Yarn v1 to Yarn v3 for dependency management. The main migration followed the steps in [Yarn's migration guide](https://yarnpkg.com/getting-started/migration) for a non-zero-installs configuration, similar to the migrations in accessibility-insights-service and accessibility-insights-action. Besides the required/mechanical steps, this PR also includes: * Updating the resolutions used by this repo to use versioned resolutions, similar to microsoft/accessibility-insights-action#1596 * Modifying the `test-resources` generator setup to work as a run script from the root directory instead of using a separate `package.json` in `src/test-resources/generator`. This avoided what would have otherwise required a more complicated setup using either multiple checked in copies of yarn or a more complicated workspace setup, and slightly simplifies the steps for using the generator. I updated the README instructions accordingly. * The new `!dist/test-resources` entry in the `files` field of `package.json` ensures that there is no change to the package as-distributed because of this update. As part of these changes, I verified manually that `yarn generate-test-resources` regenerates the current versions of the test resource files successfully. ##### Motivation * Consistency with other repos * Allows use of versioned resolutions (see microsoft/accessibility-insights-action#1596 for why we want them) ##### Context Similar PRs in other repos: * microsoft/accessibility-insights-service#2210 * microsoft/accessibility-insights-action#1559 #### Pull request checklist <!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox --> - [x] PR title respects [Conventional Commits](https://www.conventionalcommits.org) (starts with `fix:`, `feat:`, etc, and is suitable for user-facing release notes) - [x] PR contains no breaking changes, **OR** description of both PR **and final merge commit** starts with `BREAKING CHANGE:` - [n/a] (if applicable) Addresses issue: #0000 - [n/a] Added relevant unit tests for your changes - [x] Ran `yarn precheckin` - [n/a] Verified code coverage for the changes made
- Loading branch information
Showing
14 changed files
with
9,714 additions
and
6,984 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.DS_Store | ||
.github/ | ||
.yarn/ | ||
.prettierignore | ||
**/*.gitattributes | ||
**/*.gitignore | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
nodeLinker: node-modules | ||
yarnPath: .yarn/releases/yarn-3.5.0.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,21 +7,25 @@ | |
"types": "dist/index.d.js", | ||
"files": [ | ||
"dist/", | ||
"!dist/test-resources/", | ||
"LICENSE", | ||
"README.md" | ||
], | ||
"engines": { | ||
"node": ">= 8" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@types/sarif": ">=2.1.1 <=2.1.4", | ||
"axe-core": "^3.2.2 || ^4.0.0", | ||
"yargs": "^17.0.0" | ||
}, | ||
"devDependencies": { | ||
"@axe-core/cli": "^4.6.0", | ||
"@axe-core/puppeteer": "^4.6.0", | ||
"@types/jest": "^27.4.0", | ||
"@types/lodash": "^4.14.136", | ||
"@types/node": "^14.0.1", | ||
"@types/node": "^14.18.38", | ||
"@types/yargs": "^17.0.8", | ||
"@typescript-eslint/eslint-plugin": "^4.0.1", | ||
"@typescript-eslint/parser": "^4.0.1", | ||
|
@@ -32,14 +36,17 @@ | |
"license-check-and-add": "^4.0.1", | ||
"lodash": "^4.17.15", | ||
"prettier": "^2.0.1", | ||
"puppeteer": "^13.7.0", | ||
"rimraf": "^4.0.4", | ||
"semantic-release": "^19.0.2", | ||
"ts-jest": "^27.0.2", | ||
"typemoq": "^2.1.0", | ||
"typescript": "^4.0.2" | ||
}, | ||
"resolutions": { | ||
"ansi-regex": "^5.0.1" | ||
"@axe-core/cli/chromedriver@^109.0.0": "^111.0.0", | ||
"ansi-regex@^4.1.0": "^5.0.1", | ||
"axe-core": "4.6.3" | ||
}, | ||
"scripts": { | ||
"prebuild": "yarn clean", | ||
|
@@ -53,7 +60,10 @@ | |
"precheckin": "yarn format-check && yarn lint && yarn build && yarn test && yarn copyrightheaders", | ||
"watch:build": "tsc -p . --watch", | ||
"watch:test": "jest --watch --coverage false --colors", | ||
"semantic-release": "semantic-release" | ||
"semantic-release": "semantic-release", | ||
"generate-test-resources": "yarn generate-axe-core-resources && yarn generate-axe-cli-resources", | ||
"generate-axe-cli-resources": "node dist/test-resources/generator/generate-axe-cli-resources.js", | ||
"generate-axe-core-resources": "node dist/test-resources/generator/generate-axe-core-resources.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.