|
36 | 36 | "url": "https://github.com/rtfpessoa/diff2html-cli/issues" |
37 | 37 | }, |
38 | 38 | "engines": { |
39 | | - "node": ">=12" |
| 39 | + "node": ">=16" |
40 | 40 | }, |
41 | 41 | "preferGlobal": true, |
42 | 42 | "scripts": { |
|
46 | 46 | "prettier": "prettier --ignore-path .gitignore '**/*.+(js|jsx|ts|tsx|json|css|html|md|mdx)'", |
47 | 47 | "format:check": "yarn run prettier --check", |
48 | 48 | "format:fix": "yarn run prettier --write", |
49 | | - "build": "yarn run build:es5", |
50 | | - "build:es5": "rm -rf lib; tsc -p tsconfig.json --outDir lib", |
| 49 | + "build": "rm -rf lib; tsc -p tsconfig.json --outDir lib", |
51 | 50 | "gen": "yarn run gen:toc", |
52 | 51 | "gen:toc-base": "markdown-toc --maxdepth 3 --bullets='-' -i", |
53 | 52 | "gen:toc": "yarn run gen:toc-base README.md", |
54 | 53 | "test": "is-ci 'test:coverage' 'test:watch'", |
55 | | - "test:coverage": "jest --coverage", |
56 | | - "test:watch": "jest --watch", |
57 | | - "test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --watch", |
| 54 | + "test:coverage": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --coverage", |
| 55 | + "test:watch": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --watch", |
| 56 | + "test:debug": "node --experimental-vm-modules --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --watch", |
58 | 57 | "coverage:open": "yarn run test:coverage && open ./coverage/index.html", |
59 | 58 | "validate": "yarn run format:check && yarn run lint:check && yarn run build && yarn run test:coverage", |
60 | 59 | "fix": "yarn run format:fix && yarn run lint:fix", |
61 | 60 | "preversion": "yarn run validate", |
62 | 61 | "version": "git add -A package.json", |
63 | 62 | "prepare": "husky install" |
64 | 63 | }, |
| 64 | + "type": "module", |
65 | 65 | "bin": { |
66 | | - "diff2html": "./bin/diff2html" |
| 66 | + "diff2html": "./bin/diff2html.js" |
67 | 67 | }, |
68 | 68 | "main": "./lib/diff2html.js", |
69 | 69 | "types": "./lib/diff2html.d.ts", |
|
80 | 80 | ] |
81 | 81 | }, |
82 | 82 | "dependencies": { |
83 | | - "clipboardy": "^2.3.0", |
| 83 | + "clipboardy": "^3.0.0", |
84 | 84 | "diff2html": "^3.4.19", |
85 | | - "node-fetch": "^2.6.7", |
86 | | - "open": "^8.4.0", |
| 85 | + "node-fetch": "^3.3.2", |
| 86 | + "open": "^9.1.0", |
87 | 87 | "yargs": "^17.6.0" |
88 | 88 | }, |
89 | 89 | "devDependencies": { |
| 90 | + "@babel/core": "^7.22.9", |
| 91 | + "@babel/preset-env": "^7.22.9", |
| 92 | + "@babel/preset-typescript": "^7.22.5", |
| 93 | + "@jest/globals": "^29.6.2", |
90 | 94 | "@types/hogan.js": "^3.0.1", |
91 | | - "@types/jest": "29.1.2", |
92 | | - "@types/node": "18.11.0", |
| 95 | + "@types/jest": "^29.5.3", |
| 96 | + "@types/node": "20.4.8", |
93 | 97 | "@types/node-fetch": "^2.6.2", |
94 | 98 | "@types/request": "2.48.8", |
95 | | - "@typescript-eslint/eslint-plugin": "5.40.0", |
96 | | - "@typescript-eslint/parser": "5.40.0", |
97 | | - "eslint": "8.25.0", |
98 | | - "eslint-config-prettier": "8.5.0", |
99 | | - "eslint-plugin-import": "2.26.0", |
100 | | - "eslint-plugin-jest": "27.1.2", |
| 99 | + "@typescript-eslint/eslint-plugin": "6.2.1", |
| 100 | + "@typescript-eslint/parser": "6.2.1", |
| 101 | + "babel-jest": "^29.6.2", |
| 102 | + "eslint": "8.46.0", |
| 103 | + "eslint-config-prettier": "9.0.0", |
| 104 | + "eslint-import-resolver-typescript": "^3.5.5", |
| 105 | + "eslint-plugin-import": "2.28.0", |
| 106 | + "eslint-plugin-jest": "27.2.3", |
101 | 107 | "eslint-plugin-json": "3.1.0", |
102 | 108 | "eslint-plugin-node": "11.1.0", |
103 | 109 | "eslint-plugin-optimize-regex": "1.2.1", |
104 | | - "eslint-plugin-promise": "6.1.0", |
105 | | - "eslint-plugin-sonarjs": "0.16.0", |
106 | | - "husky": "8.0.1", |
| 110 | + "eslint-plugin-promise": "6.1.1", |
| 111 | + "eslint-plugin-sonarjs": "0.20.0", |
| 112 | + "husky": "8.0.3", |
107 | 113 | "is-ci-cli": "2.2.0", |
108 | | - "jest": "29.2.0", |
109 | | - "lint-staged": "13.0.3", |
| 114 | + "jest": "29.6.2", |
| 115 | + "lint-staged": "13.2.3", |
110 | 116 | "markdown-toc": "^1.2.0", |
111 | | - "prettier": "2.7.1", |
112 | | - "ts-jest": "29.0.3", |
113 | | - "typescript": "4.8.4" |
| 117 | + "prettier": "3.0.1", |
| 118 | + "ts-jest": "^29.1.1", |
| 119 | + "ts-node": "^10.9.1", |
| 120 | + "typescript": "5.1.6" |
114 | 121 | }, |
115 | 122 | "license": "MIT", |
116 | 123 | "files": [ |
|
0 commit comments