Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@typedash/tsconfig
Advanced tools
Readme
Centralized and shared TypeScript configuration.
npm install --save-dev @typedash/tsconfig
yarn add --dev @typedash/tsconfig
If you're consuming this package from inside the monorepo, then we can leverage a root level configuration (that extends this package's tsconfig) that adds paths. This allows for any package in the monorepo to perform a build
without building all the sibling dependencies first! This is accomplished via the paths
configuration that maps @typedash
to sibling src
directories (instead of the dist
).
tsconfig.json
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist/esm"
},
"include": ["./src"]
}
If you intend on publishing your project/package, you should also include a cjs
configuration to emit both esm
and commonjs
.
tsconfig.cjs.json
{
"extends": "../../tsconfig.cjs.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist/cjs"
},
"include": ["./src"]
}
NOTE: Don't forget to add local path "references"
to the sibling packages you depend on. See the README.md at the root of this monorepo for more information.
Configuration for usage outside the monorepo is exactly the same, except you'll refer to this package directly. Here's the normal usage for a project that doesn't intend on publishing consumable assets.
tsconfig.json
{
"extends": "@typedash/tsconfig/tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist/esm"
},
"include": ["./src"]
}
If you intend on publishing your project/package, you should also include a cjs
configuration to emit both esm
and commonjs
.
tsconfig.cjs.json
{
"extends": "@typedash/tsconfig/tsconfig.cjs.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist/cjs"
},
"include": ["./src"]
}
FAQs
Shared TypeScript Configuration
The npm package @typedash/tsconfig receives a total of 0 weekly downloads. As such, @typedash/tsconfig popularity was classified as not popular.
We found that @typedash/tsconfig demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.