|
2 | 2 | "name": "@guidepup/virtual-screen-reader", |
3 | 3 | "version": "0.17.1", |
4 | 4 | "description": "Virtual Screen Reader driver for unit test automation.", |
5 | | - "main": "lib/index.js", |
6 | 5 | "author": "Craig Morten <[email protected]>", |
7 | 6 | "license": "MIT", |
8 | 7 | "repository": { |
|
20 | 19 | "a11y", |
21 | 20 | "guidepup" |
22 | 21 | ], |
| 22 | + "main": "lib/cjs/index.js", |
| 23 | + "module": "lib/esm/index.js", |
| 24 | + "types": "lib/types/index.d.ts", |
| 25 | + "exports": { |
| 26 | + ".": { |
| 27 | + "types": "./lib/cjs/index.d.ts", |
| 28 | + "import": "./lib/esm/index.js", |
| 29 | + "require": "./lib/cjs/index.js" |
| 30 | + } |
| 31 | + }, |
23 | 32 | "scripts": { |
24 | 33 | "build": "yarn clean && yarn compile", |
25 | 34 | "ci": "yarn clean && yarn lint && yarn test:coverage && yarn build", |
26 | 35 | "clean": "rimraf lib", |
27 | | - "compile": "tsc", |
28 | | - "lint": "eslint src --ext .ts,.tsx --cache", |
| 36 | + "compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json && ./scripts/package.sh", |
| 37 | + "lint": "eslint src test --ext .js,.jsx,.ts,.tsx --cache", |
29 | 38 | "lint:fix": "yarn lint --fix", |
30 | 39 | "test": "jest", |
31 | 40 | "test:coverage": "yarn test --coverage", |
|
47 | 56 | "@typescript-eslint/parser": "^6.18.0", |
48 | 57 | "eslint": "^8.56.0", |
49 | 58 | "eslint-config-prettier": "^9.1.0", |
| 59 | + "eslint-plugin-require-extensions": "^0.1.3", |
50 | 60 | "jest": "^29.7.0", |
51 | 61 | "jest-environment-jsdom": "^29.7.0", |
52 | 62 | "react": "^18.2.0", |
53 | 63 | "react-dom": "^18.2.0", |
54 | 64 | "rimraf": "^5.0.5", |
55 | 65 | "ts-jest": "^29.1.1", |
| 66 | + "ts-jest-resolver": "^2.0.1", |
56 | 67 | "ts-node": "^10.9.2", |
57 | 68 | "typescript": "^5.3.3" |
58 | 69 | } |
|
0 commit comments