|
15 | 15 | "srcts/types/**/*.d.ts" |
16 | 16 | ], |
17 | 17 | "engines": { |
18 | | - "node": ">= 14", |
19 | | - "yarn": ">= 1.22" |
| 18 | + "node": ">= 18", |
| 19 | + "npm": ">= 10" |
20 | 20 | }, |
21 | 21 | "dependencies": { |
22 | | - "@types/bootstrap": "3.4.0", |
23 | | - "@types/bootstrap-datepicker": "0.0.14", |
24 | | - "@types/datatables.net": "^1.10.19", |
25 | | - "@types/ion-rangeslider": "2.3.0", |
26 | | - "@types/jquery": "3.5.14", |
27 | | - "@types/selectize": "0.12.34", |
28 | | - "lit": "^3.0.0" |
| 22 | + "@types/bootstrap": "5.2.10", |
| 23 | + "@types/bootstrap-datepicker": "1.10.0", |
| 24 | + "@types/datatables.net": "^1.10.28", |
| 25 | + "@types/ion-rangeslider": "2.3.5", |
| 26 | + "@types/jquery": "3.5.32", |
| 27 | + "@types/selectize": "0.12.39", |
| 28 | + "lit": "^3.2.1" |
29 | 29 | }, |
30 | 30 | "devDependencies": { |
31 | | - "@deanc/esbuild-plugin-postcss": "^1.0.2", |
32 | 31 | "@selectize/selectize": "https://github.com/selectize/selectize.js.git#e3f2e0b4aa251375bc21b5fcd8ca7d374a921f08", |
33 | | - "@testing-library/dom": "^7.31.0", |
34 | | - "@testing-library/jest-dom": "^5.12.0", |
35 | | - "@testing-library/user-event": "^13.1.9", |
| 32 | + "@testing-library/dom": "^10.4.0", |
| 33 | + "@testing-library/jest-dom": "^6.6.3", |
| 34 | + "@testing-library/user-event": "^14.6.1", |
36 | 35 | "@types/highlightjs": "^9.12.1", |
37 | 36 | "@types/jest": "^26.0.23", |
38 | 37 | "@types/jqueryui": "1.12.16", |
39 | 38 | "@types/lodash": "^4.14.170", |
40 | 39 | "@types/node": "^18.14.2", |
41 | 40 | "@types/showdown": "^1.9.3", |
42 | | - "@typescript-eslint/eslint-plugin": "^5.38.1", |
43 | | - "@typescript-eslint/parser": "^5.38.1", |
| 41 | + "@typescript-eslint/eslint-plugin": "^8.23.0", |
| 42 | + "@typescript-eslint/parser": "^8.23.0", |
44 | 43 | "autoprefixer": "^10.2.6", |
45 | 44 | "browserslist": "^4.19.1", |
46 | | - "caniuse-lite": "^1.0.30001312", |
47 | | - "core-js": "^3.13.0", |
48 | | - "esbuild": "^0.15.10", |
| 45 | + "esbuild": ">=0.20.0", |
49 | 46 | "esbuild-plugin-globals": "^0.1.1", |
50 | | - "esbuild-plugin-sass": "^1.0.1", |
51 | | - "eslint": "^8.24.0", |
52 | | - "eslint-config-prettier": "^8.5.0", |
53 | | - "eslint-plugin-jest": "^27.0.4", |
54 | | - "eslint-plugin-jest-dom": "^4.0.2", |
55 | | - "eslint-plugin-prettier": "^4.2.1", |
56 | | - "eslint-plugin-unicorn": "^43.0.2", |
| 47 | + "esbuild-sass-plugin": "^3.3.1", |
| 48 | + "eslint": "^9.19.0", |
| 49 | + "eslint-config-prettier": "^10.0.1", |
| 50 | + "eslint-plugin-jest": "^28.11.0", |
| 51 | + "eslint-plugin-jest-dom": "^5.5.0", |
| 52 | + "eslint-plugin-prettier": "^5.2.3", |
| 53 | + "eslint-plugin-unicorn": "^56.0.1", |
57 | 54 | "fs-readdir-recursive": "^1.1.0", |
58 | | - "jest": "^26.6.3", |
| 55 | + "jest": "^29.7.0", |
59 | 56 | "jquery": "^3.6.0", |
60 | 57 | "lodash": "^4.17.21", |
61 | | - "madge": "^4.0.2", |
| 58 | + "@types/madge": "^5.0.3", |
| 59 | + "madge": "^8.0.0", |
62 | 60 | "node-gyp": "^8.1.0", |
63 | | - "phantomjs-prebuilt": "^2.1.16", |
64 | | - "postcss": "^8.3.5", |
65 | | - "prettier": "^2.7.1", |
66 | | - "prettier-plugin-organize-imports": "^3.2.4", |
| 61 | + "postcss": "^8.5.1", |
| 62 | + "prettier": "^3.4.2", |
| 63 | + "prettier-plugin-organize-imports": "^4.1.0", |
67 | 64 | "readcontrol": "^1.0.0", |
68 | 65 | "replace": "^1.2.1", |
69 | | - "ts-jest": "^26", |
70 | | - "ts-node": "^10.9.1", |
71 | | - "type-coverage": "^2.22.0", |
72 | | - "typescript": "^4.8.4", |
73 | | - "util-inspect": "https://github.com/deecewan/browser-util-inspect#c0b4350df4378ffd743e8c36dd3898ce3992823e" |
| 66 | + "ts-jest": "^29.2.5", |
| 67 | + "ts-node": "^10.9.2", |
| 68 | + "type-coverage": "^2.29.7", |
| 69 | + "typescript": "^5.7.3" |
74 | 70 | }, |
75 | 71 | "scripts": { |
76 | | - "prepare": "node --eval \"1+1; // help yarn users not install the whole repo; https://github.com/yarnpkg/yarn/issues/2822#issuecomment-847360267\"", |
77 | | - "watch": "yarn run build_shiny --watch", |
78 | | - "build": "yarn run build_shiny && yarn run bundle_extras && yarn run bundle_external_libs", |
79 | | - "build_shiny": "yarn run checks && yarn run bundle_shiny", |
| 72 | + "watch": "npm run build_shiny --watch", |
| 73 | + "build": "npm run build_shiny && npm run bundle_extras && npm run bundle_external_libs", |
| 74 | + "build_shiny": "npm run checks && npm run bundle_shiny", |
80 | 75 | "bundle_shiny": "ts-node srcts/build/shiny.ts", |
81 | 76 | "bundle_external_libs": "ts-node srcts/build/external_libs.ts", |
82 | 77 | "bundle_extras": "ts-node srcts/build/extras.ts", |
83 | 78 | "test": "jest --coverage", |
84 | | - "test_phantom": "echo '\n\t!! Must manually stop phantomjs test !!\n\n' && yarn bundle_shiny && phantomjs --debug=yes ../inst/www/shared/shiny.js", |
85 | | - "checks": "yarn run lint && yarn run build_types && yarn run coverage && yarn run circular", |
86 | | - "lint": "node --eval \"console.log('linting code...')\" && eslint --fix --ext .ts srcts/src", |
| 79 | + "checks": "npm run lint && npm run build_types && npm run coverage && npm run circular", |
| 80 | + "lint": "node --eval \"console.log('linting code...')\" && eslint 'srcts/src/**/*.ts' --fix", |
87 | 81 | "build_types": "tsc -p tsconfig.json", |
88 | | - "coverage_detailed": "yarn type-check --detail", |
| 82 | + "coverage_detailed": "npx type-check --detail", |
89 | 83 | "coverage": "type-coverage -p tsconfig.json --at-least 90", |
90 | | - "circular": "madge --circular --extensions ts srcts/src", |
91 | | - "circular_image": "madge --circular --extensions ts --image madge.svg srcts/src" |
| 84 | + "circular": "npx dpdm --transform ./srcts/src/index.ts" |
92 | 85 | }, |
93 | 86 | "prettier": { |
94 | 87 | "plugins": [ |
|
0 commit comments