|
23 | 23 | "source": "source/index.ts", |
24 | 24 | "types": "dist/index.d.ts", |
25 | 25 | "dependencies": { |
26 | | - "web-utility": "^2.4.4" |
| 26 | + "web-utility": "^2.6.0" |
27 | 27 | }, |
28 | 28 | "peerDependencies": { |
29 | 29 | "@webcomponents/webcomponentsjs": "^2.5.0", |
30 | | - "core-js": "^3.9.0", |
31 | | - "jsdom": "^16.4.0" |
| 30 | + "core-js": "^3.16.0", |
| 31 | + "jsdom": "^16.6.0" |
32 | 32 | }, |
33 | 33 | "devDependencies": { |
34 | 34 | "@types/core-js": "^2.5.4", |
35 | | - "@types/jest": "^26.0.20", |
36 | | - "@types/jsdom": "^16.2.6", |
37 | | - "@typescript-eslint/parser": "^4.15.2", |
38 | | - "element-internals-polyfill": "0.1.9", |
39 | | - "eslint": "^7.20.0", |
40 | | - "eslint-config-prettier": "^8.0.0", |
41 | | - "eslint-plugin-prettier": "^3.3.1", |
42 | | - "husky": "^4.3.8", |
43 | | - "jest": "^26.6.3", |
44 | | - "lint-staged": "^10.5.4", |
45 | | - "open-cli": "^6.0.1", |
46 | | - "parcel-bundler": "^1.12.4", |
47 | | - "prettier": "^2.2.1", |
| 35 | + "@types/jest": "^26.0.24", |
| 36 | + "@types/jsdom": "^16.2.13", |
| 37 | + "@typescript-eslint/eslint-plugin": "^4.28.5", |
| 38 | + "@typescript-eslint/parser": "^4.28.5", |
| 39 | + "element-internals-polyfill": "0.1.43", |
| 40 | + "eslint": "^7.32.0", |
| 41 | + "eslint-config-prettier": "^8.3.0", |
| 42 | + "husky": "^7.0.1", |
| 43 | + "jest": "^27.0.6", |
| 44 | + "lint-staged": "^11.1.1", |
| 45 | + "open-cli": "^7.0.0", |
| 46 | + "parcel-bundler": "^1.12.5", |
| 47 | + "prettier": "^2.3.2", |
48 | 48 | "snabbdom": "^2.1.0", |
49 | | - "ts-jest": "^26.5.2", |
50 | | - "typedoc": "^0.20.28", |
51 | | - "typescript": "^4.2.2" |
| 49 | + "ts-jest": "^27.0.4", |
| 50 | + "typedoc": "^0.21.5", |
| 51 | + "typescript": "^4.3.5" |
52 | 52 | }, |
53 | 53 | "scripts": { |
| 54 | + "prepare": "husky install", |
54 | 55 | "lint": "lint-staged", |
55 | 56 | "test": "npm run lint && jest", |
56 | 57 | "pack-type": "tsc && rm -f dist/*.{js,map} dist/**/*.{js,map}", |
|
62 | 63 | }, |
63 | 64 | "lint-staged": { |
64 | 65 | "source/**/*.{ts,tsx}": "eslint --fix", |
65 | | - "*.{js,ts,tsx}": [ |
66 | | - "prettier --write", |
67 | | - "eslint --fix --rule 'require-atomic-updates: 1'" |
68 | | - ], |
69 | | - "*.{html,md,css,json,yml}": "prettier --write" |
70 | | - }, |
71 | | - "husky": { |
72 | | - "hooks": { |
73 | | - "pre-commit": "npm test", |
74 | | - "pre-push": "npm run build" |
75 | | - } |
| 66 | + "*.{js,ts,tsx}": "eslint --fix --rule 'require-atomic-updates: 1'", |
| 67 | + "*.{html,md,css,json,yml,js,ts,tsx}": "prettier --write" |
76 | 68 | }, |
77 | 69 | "prettier": { |
78 | 70 | "singleQuote": true, |
|
81 | 73 | "tabWidth": 4 |
82 | 74 | }, |
83 | 75 | "jest": { |
| 76 | + "testEnvironment": "jsdom", |
84 | 77 | "preset": "ts-jest/presets/js-with-ts", |
85 | 78 | "globals": { |
86 | 79 | "ts-jest": { |
87 | | - "tsConfig": "test/tsconfig.json", |
| 80 | + "tsconfig": "test/tsconfig.json", |
88 | 81 | "isolatedModules": true |
89 | 82 | } |
90 | 83 | }, |
|
0 commit comments