-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update imports * Update out dir * Add resolver * Update configs * Update resolutions * Add changeset * Update dep * Fix types * Prettier * Use `isomorphic-resolve`
- Loading branch information
Mark Skelton
authored
Jan 30, 2023
1 parent
50ca470
commit ea84151
Showing
24 changed files
with
1,796 additions
and
360 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'expect-axe-playwright': major | ||
--- | ||
|
||
Update to ESM-first. CommonJS is still supported. |
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 +1 @@ | ||
lib/ | ||
dist/ |
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,5 @@ | ||
.vscode/ | ||
lib/ | ||
dist/ | ||
test-results/ | ||
|
||
# Yarn | ||
|
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,2 +1,2 @@ | ||
lib/config/ | ||
dist/config/ | ||
*.spec.js |
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 |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
CHANGELOG.md | ||
|
||
# Misc | ||
lib/ | ||
dist/ | ||
test-results/ |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"license": "ISC", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=16.0.0" | ||
}, | ||
"repository": "github:Widen/expect-axe-playwright", | ||
"homepage": "https://github.com/Widen/expect-axe-playwright#readme", | ||
|
@@ -19,32 +19,48 @@ | |
"axe-core", | ||
"playwright-test" | ||
], | ||
"main": "./lib/index.js", | ||
"types": "global.d.ts", | ||
"files": [ | ||
"lib", | ||
"global.d.ts" | ||
], | ||
"scripts": { | ||
"lint": "eslint .", | ||
"format": "prettier --write .", | ||
"build": "tsup ./src/index.ts --format cjs,esm", | ||
"release": "./scripts/release.sh", | ||
"test": "playwright test", | ||
"ts": "tsc" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
"types": "./global.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"files": [ | ||
"dist", | ||
"global.d.ts" | ||
], | ||
"peerDependencies": { | ||
"@playwright/test": ">=1.20.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@playwright/test": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
"axe-core": "^4.4.2", | ||
"axe-reporter-html": "^0.1.2", | ||
"axe-core": "^4.6.3", | ||
"axe-reporter-html": "^1.0.0", | ||
"isomorphic-resolve": "^1.0.0", | ||
"merge-deep": "^3.0.3" | ||
}, | ||
"devDependencies": { | ||
"@changesets/cli": "^2.23.0", | ||
"@playwright/test": "^1.23.1", | ||
"@changesets/cli": "^2.26.0", | ||
"@playwright/test": "^1.30.0", | ||
"@types/merge-deep": "^3.0.0", | ||
"@types/node": "^18.0.3", | ||
"@typescript-eslint/eslint-plugin": "^5.30.5", | ||
"@typescript-eslint/parser": "^5.30.5", | ||
"eslint": "^8.19.0", | ||
"prettier": "^2.7.1", | ||
"typescript": "^4.7.4" | ||
"@types/node": "^18.11.18", | ||
"@typescript-eslint/eslint-plugin": "^5.49.0", | ||
"@typescript-eslint/parser": "^5.49.0", | ||
"eslint": "^8.33.0", | ||
"prettier": "^2.8.3", | ||
"tsup": "^6.5.0", | ||
"typescript": "^4.9.4" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import matchers from './matchers' | ||
export { waitForAxeResults } from './waitForAxeResults' | ||
import matchers from './matchers/index.js' | ||
|
||
export { waitForAxeResults } from './waitForAxeResults.js' | ||
export default matchers |
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
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,7 +1,6 @@ | ||
import path from 'path' | ||
import fs from 'fs' | ||
import fs from 'node:fs/promises' | ||
|
||
export async function readFile(filename: string) { | ||
const filePath = path.join(__dirname, '../config/templates', filename) | ||
return fs.promises.readFile(filePath, { encoding: 'utf-8' }) | ||
const fileURL = new URL(`../config/templates/${filename}`, import.meta.url) | ||
return fs.readFile(fileURL, { encoding: 'utf-8' }) | ||
} |
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
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
Oops, something went wrong.