Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Why lib and target are not the same in @tsconfig/nodexx #271

Closed
zanminkian opened this issue Jun 21, 2024 · 2 comments
Closed

Comments

@zanminkian
Copy link
Contributor

For example, in @tsconfig/node18

{
  "$schema": "https://json.schemastore.org/tsconfig",

  "_version": "18.2.0",

  "compilerOptions": {
    "lib": ["es2023"],
    "module": "node16",
    "target": "es2022",

    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "moduleResolution": "node16"
  }
}

One is es2023 while the other is es2022. Why?

@jakebailey
Copy link

target es2023 didn't exist until TS 5.5, released just yesterday.

@zanminkian
Copy link
Contributor Author

zanminkian commented Jun 21, 2024

Got it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants