Skip to content

Commit

Permalink
feat: add TypeScript v5.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Sep 25, 2024
1 parent 43be779 commit 3135c4f
Show file tree
Hide file tree
Showing 79 changed files with 4,512 additions and 6,145 deletions.
8 changes: 0 additions & 8 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
node: [16.14.0, 17, 18, 19, 20]
node: [21, 22]

steps:
- name: Checkout code
Expand Down
11 changes: 11 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import shared from "@wessberg/ts-config/eslint.config.js";

export default [
...shared,
{
rules: {
"@typescript-eslint/no-deprecated": "off",
"@typescript-eslint/no-empty-object-type": "off"
}
}
];
94 changes: 41 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
"clean": "rimraf dist",
"lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color",
"prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"",
"test": "cross-env NODE_NO_WARNINGS=1 FORCE_COLOR=3 NODE_OPTIONS=\"--loader=tsx --max_old_space_size=4096\" ava",
"test": "node --import tsx --test \"./test/**/*.test.ts\"",
"prebuild": "pnpm run clean",
"build": "pnpm run prebuild && pnpm run rollup",
"prewatch": "pnpm run clean",
"watch": "pnpm run prewatch && pnpm run rollup -- --watch",
"rollup": "rollup -c rollup.config.js",
"preversion": "pnpm run lint && pnpm run build && dotcjs dist/cjs",
"build": "tsup \"src/index.ts\" --sourcemap --dts --format cjs,esm",
"preversion": "pnpm run lint && pnpm run build",
"version": "pnpm run preversion && pnpm run generate:all && git add .",
"release": "np --no-cleanup --no-yarn --no-tests",
"update:check": "pnpx npm-check-updates -x typescript-* --dep dev,prod",
Expand Down Expand Up @@ -45,38 +42,33 @@
],
"license": "MIT",
"devDependencies": {
"@types/semver": "^7.5.0",
"@types/node": "^20.4.7",
"@types/prettier": "^2.7.3",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"@wessberg/ts-config": "^4.0.0",
"@types/semver": "^7.5.8",
"@types/node": "^22.7.0",
"@types/prettier": "^3.0.0",
"@wessberg/ts-config": "^5.0.16",
"@wessberg/prettier-config": "1.0.0",
"@prettier/sync": "0.3.0",
"@prettier/sync": "0.5.2",
"eslint": "^9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jsdoc": "^50.2.4",
"eslint-plugin-prettier": "^5.2.1",
"typescript-eslint": "^8.7.0",
"crosspath": "2.0.0",
"dotcjs": "1.0.1",
"rollup-plugin-ts": "^3.4.2",
"sandhog": "^2.0.2",
"ava": "^5.3.1",
"cross-env": "^7.0.3",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsdoc": "^46.4.5",
"husky": "^8.0.3",
"np": "8.0.4",
"pnpm": "^8.6.11",
"prettier": "^3.0.1",
"lint-staged": "^13.2.3",
"rimraf": "^5.0.1",
"rollup": "^3.27.2",
"standard-changelog": "^3.0.0",
"tsx": "^3.12.7",
"semver": "^7.5.4",
"husky": "^9.1.6",
"np": "10.0.7",
"pnpm": "^9.11.0",
"prettier": "^3.3.3",
"lint-staged": "^15.2.10",
"rimraf": "^6.0.1",
"standard-changelog": "^6.0.0",
"tsup": "^8.3.0",
"tsx": "^4.19.1",
"semver": "^7.6.3",
"helpertypes": "^0.0.19",
"tslib": "^2.6.1",
"npm-check-updates": "^16.10.17",
"typescript": "5.1.6",
"tslib": "^2.7.0",
"npm-check-updates": "^17.1.3",
"typescript": "5.6.2",
"typescript-3-0-1": "npm:[email protected]",
"typescript-3-1-1": "npm:[email protected]",
"typescript-3-2-1": "npm:[email protected]",
Expand All @@ -97,22 +89,28 @@
"typescript-4-7-2": "npm:[email protected]",
"typescript-4-8-2": "npm:[email protected]",
"typescript-4-9-4": "npm:[email protected]",
"typescript-5-0-4": "npm:[email protected]"
"typescript-5-0-4": "npm:[email protected]",
"typescript-5-1-6": "npm:[email protected]",
"typescript-5-2-2": "npm:[email protected]",
"typescript-5-3-3": "npm:[email protected]",
"typescript-5-4-5": "npm:[email protected]",
"typescript-5-5-4": "npm:[email protected]",
"typescript-5-6-2": "npm:[email protected]"
},
"dependencies": {
"compatfactory": "^3.0.0"
"compatfactory": "^4.0.2"
},
"peerDependencies": {
"typescript": "^3.x || ^4.x || ^5.x"
},
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"type": "module",
"types": "./dist/esm/index.d.ts",
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"funding": {
"type": "github",
"url": "https://github.com/wessberg/ts-clone-node?sponsor=1"
Expand All @@ -125,20 +123,10 @@
"url": "https://github.com/wessberg/ts-clone-node/issues"
},
"engines": {
"node": ">=14.9.0"
"node": ">=18.20.0"
},
"lint-staged": {
"*": "prettier --ignore-unknown --write"
},
"prettier": "@wessberg/prettier-config",
"ava": {
"files": [
"test/**.test.ts"
],
"verbose": true,
"timeout": "400s",
"extensions": {
"ts": "module"
}
}
"prettier": "@wessberg/prettier-config"
}
Loading

0 comments on commit 3135c4f

Please sign in to comment.