-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: switch to NPM workspaces #687
refactor: switch to NPM workspaces #687
Conversation
f27dc3d
to
66ab973
Compare
5f2dae5
to
565806f
Compare
08a7d0d
to
752892b
Compare
packages/cli/package.json
Outdated
@@ -45,7 +44,7 @@ | |||
], | |||
"dependencies": { | |||
"@axe-core/webdriverjs": "^4.7.3", | |||
"axe-core": "^4.7.0", | |||
"axe-core": "~4.7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Axe-core 4.8.1 was released and I don't want to take it with this conversion, so pinned all axe-core versions to 4.7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change for customers that are already using 4.8, which is allowed by the old version of this specifier and what a customer would have gotten already if they happen to have installed one of these packages since 4.8 was released.
I agree with not changing the requirement in this PR, and I'd also be fine with trying to avoid a lockfile update that moves our testing to 4.8, but I strongly disagree with converting ^
to ~
in all these packages
@@ -44,7 +44,7 @@ | |||
"express": "^4.18.2", | |||
"mocha": "^10.0.0", | |||
"nyc": "^15.1.0", | |||
"puppeteer": "^19.7.3", | |||
"puppeteer": "19.7.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Starting in Puppeteer 19.11 (ish?) they started adding a log that stated that headlness: new
would be needed (which massively clogs up the test run as it logs a huge paragraph every test). However, if you add headless: new
to the options it breaks the unloaded iframe test. It seems that whatever is in headless: new
fixes the problem with unloaded iframes? Will open a tech debt ticket to investigate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -70,7 +70,7 @@ | |||
"ts-node": "^10.9.1", | |||
"tsup": "^6.7.0", | |||
"typescript": "^4.8.4", | |||
"webdriverio": "^8.8.2" | |||
"webdriverio": "8.8.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest webdriverio breaks our typescript build due to this bug with types webdriverio/webdriverio#11055. Will open a tech debt ticket to fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -32,8 +32,7 @@ | |||
"prebuild": "rimraf dist", | |||
"build": "tsc", | |||
"test": "mocha --timeout 60000 -r ts-node/register 'src/**/**.test.ts'", | |||
"coverage": "nyc npm run test", | |||
"prepare": "npm run build" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked with @michael-siek and this isn't needed. When left in it tries to build the cli before it links packages together, which would cause the build to fail as @axe-core/webdriverjs wasn't available yet.
packages/cli/package.json
Outdated
@@ -45,7 +44,7 @@ | |||
], | |||
"dependencies": { | |||
"@axe-core/webdriverjs": "^4.7.3", | |||
"axe-core": "^4.7.0", | |||
"axe-core": "~4.7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change for customers that are already using 4.8, which is allowed by the old version of this specifier and what a customer would have gotten already if they happen to have installed one of these packages since 4.8 was released.
I agree with not changing the requirement in this PR, and I'd also be fine with trying to avoid a lockfile update that moves our testing to 4.8, but I strongly disagree with converting ^
to ~
in all these packages
d1b4ff1
to
228d9db
Compare
force-push was to correct author email address in merge from develop, to hopefully fix CLA bot |
Reviewed for security |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
The
lerna bootstrap
command is deprecated1and resulted in a very weird CI failure (#685).
This commit switches the repository to instead use
NPM workspaces.2
Fixes #685.