Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@chatie/tsconfig
Advanced tools
Picture: What is tsconfig.json
Reusable TypeScript configuration files to extend from.
This module enables other module to inheritance tsconfig.json via Node.js packages
Extends from @chatie/tsconfig
from your tsconfig.json, to have the chatie version of the TypeScript Configuration.
It aim the following goals:
esnext
ECMAScriptES6
esModuleInterop
and resolveJsonModule
etc.Do not put any directory related configurations into this module. Only put directory related configurations to the consumer of this module.
Because all directory in tsconfig.json is related to the curfrent directory.
TypeScript 3.2 now resolves tsconfig.jsons from node_modules. When using a bare path for the "extends" field in tsconfig.json, TypeScript will dive into node_modules packages for us.
{ "extends": "@my-team/tsconfig-base", "include": ["./**/*"] "compilerOptions": { // Override certain options on a project-by-project basis. "strictBindCallApply": false, } }
Here, TypeScript will climb up node_modules folders looking for a @my-team/tsconfig-base package. For each of those packages, TypeScript will first check whether package.json contains a "tsconfig" field, and if it does, TypeScript will try to load a configuration file from that field. If neither exists, TypeScript will try to read from a tsconfig.json at the root. This is similar to the lookup process for .js files in packages that Node uses, and the .d.ts lookup process that TypeScript already uses.
This feature can be extremely useful for bigger organizations, or projects with lots of distributed dependencies.
This module will run a unit test before it could be able to publish to NPM.
The unit test load tsconfig schema from JSON Schema Store and then use is-my-json-valid to validate it.
Speed up ts-node
with Rust TypeScript runtime.
ts-node.transpileOnly: true
ts-node.transpiler: "ts-node/transpilers/swc-experimental"
"module": "es2020"
"target": "es2020"
"isolatedModules": true
"importsNotUsedAsValues": "error"
"moduleResolution": "node"
See: Intro to the TSConfig Reference:
dom
to lib
in tsconfig.jsontsconfig.json
in project root directory after install if it not exists.tsconfig.json
to NPM to prevent strange bugsFAQs
tsconfig.json inheritance via Node.js packages
The npm package @chatie/tsconfig receives a total of 274 weekly downloads. As such, @chatie/tsconfig popularity was classified as not popular.
We found that @chatie/tsconfig 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.