Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codecompose/typescript-config

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codecompose/typescript-config - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

3

library.json

@@ -6,5 +6,2 @@ {

"compilerOptions": {
/* If transpiling with TypeScript: */
"sourceMap": true,
/* AND if you're building for a library: */

@@ -11,0 +8,0 @@ "declaration": true,

6

package.json
{
"name": "@codecompose/typescript-config",
"description": "Opinionated reusable TypeScript configurations",
"version": "1.0.5",
"version": "1.1.0",
"license": "MIT",

@@ -29,4 +29,6 @@ "author": "Thijs Koerselman",

"devDependencies": {
"eslint": "^8.57.0"
"eslint": "^8.57.0",
"prettier": "^3.3.3",
"prettier-plugin-jsdoc": "^1.3.0"
}
}

@@ -8,4 +8,2 @@ {

"jsx": "react-jsx",
/* If transpiling with TypeScript: */
"sourceMap": true,

@@ -12,0 +10,0 @@ /* AND if you're building for a library: */

# typescript-config
Opinionated reusable Typescript configurations.
Opinionated reusable Typescript configurations, assuming:
It assumes:
- A monorepo setup
- You transpile using a bundler
- A monorepo setup (\*)
- Transpile with a bundler
- Strict rules
- src and dist directories
- ~/ as path alias for src
- Use of `src` and `dist` directories
- Use of `~/` as path alias for `src`
(\*) Use the `single-*.json` variants if you do **not** use a monorepo setup.
All configurations have `incremental` set to `true`. For this reason I recommend
adding the following script to your manifest based on `del-cli`:
`"clean": "del dist tsconfig.tsbuildinfo"`
In my experience, it can happen that builds get stuck in limbo and you need to
delete the `tsbuildinfo` file to get things going again.
Source maps are not enabled, because we assume that your bundler will handle
that.
## Install
pnpm i @codecompose/typescript-config
`pnpm i @codecompose/typescript-config -D`
...or the equivalent for your package manager.
## Usage

@@ -21,3 +34,3 @@

{
"extends": "@codecompose/typescript-config/library.json"
"extends": "@codecompose/typescript-config/single-react-library.json"
}

@@ -28,3 +41,2 @@ ```

- base
- library

@@ -34,1 +46,3 @@ - react-library

- nextjs
- single-library
- single-react-library
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc