
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@tsconfig/node10
Advanced tools
@tsconfig/node10 is a TypeScript configuration preset specifically tailored for Node.js version 10. It provides a set of default TypeScript compiler options that are optimized for developing Node.js applications using TypeScript.
TypeScript Configuration Preset
This feature allows you to extend the default TypeScript configuration for Node.js 10 by simply referencing the preset in your `tsconfig.json` file. This helps in setting up a TypeScript project quickly with sensible defaults for Node.js 10.
{
"extends": "@tsconfig/node10/tsconfig.json"
}
Node.js 10 Compatibility
The configuration ensures compatibility with Node.js 10 by setting the appropriate ECMAScript version and module system. This helps in leveraging the features available in Node.js 10 while maintaining compatibility.
{
"compilerOptions": {
"lib": ["es2018"],
"module": "commonjs",
"target": "es2018"
}
}
@tsconfig/node12 is similar to @tsconfig/node10 but is tailored for Node.js version 12. It provides a TypeScript configuration preset optimized for Node.js 12, including support for newer ECMAScript features available in that version.
@tsconfig/node14 is another similar package that provides a TypeScript configuration preset for Node.js version 14. It includes configurations that take advantage of the features and improvements in Node.js 14.
@tsconfig/recommended provides a general-purpose TypeScript configuration preset that is not specific to any Node.js version. It offers a set of recommended TypeScript compiler options that can be used for a wide range of projects.
Add the package to your "devDependencies"
:
npm install --save-dev @tsconfig/node10
yarn add --dev @tsconfig/node10
Add to your tsconfig.json
:
"extends": "@tsconfig/node10/tsconfig.json"
The tsconfig.json
:
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"lib": ["es2018"],
"module": "commonjs",
"target": "es2018",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node"
}
}
You can find the code here.
FAQs
A base TSConfig for working with Node 10.
The npm package @tsconfig/node10 receives a total of 20,417,778 weekly downloads. As such, @tsconfig/node10 popularity was classified as popular.
We found that @tsconfig/node10 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.