jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.2k stars 505 forks source link

Type Script 4.7.4 #1151

Open kamalkech opened 1 year ago

kamalkech commented 1 year ago

package.json

"devDependencies": {
    "@size-limit/preset-small-lib": "^8.0.0",
    "@types/react": "^18.0.15",
    "@types/react-dom": "^18.0.6",
    "@typescript-eslint/eslint-plugin": "^5.32.0",
    "@typescript-eslint/parser": "^5.32.0",
    "husky": "^8.0.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "size-limit": "^8.0.0",
    "tsdx": "^0.14.1",
    "tslib": "^2.4.0",
    "typescript": "^4.7.4"
  },
  "resolutions": {
    "**/@typescript-eslint/eslint-plugin": "^5.32.0",
    "**/@typescript-eslint/parser": "^5.32.0",
    "**/jest": "^27.3.1",
    "**/ts-jest": "^27.0.7",
    "**/typescript": "^4.7.4"
  }

the code


const _number: number = 0;
type RulesList =
  | 'required'
  | `min:${typeof _number}`;

in playground typescript working good with same version ts but not working on tsdx 

any idea ??
karlhorky commented 1 year ago

If you are using resolutions in your package.json, you need to be using Yarn as your package manager.

There are a number of other issues in this repository about the super-old TypeScript 3.9.9 inside tsdx@0.14.1 causing problems for people, where this is documented: