Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@bitaccess/ts-config

Package Overview
Dependencies
Maintainers
23
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitaccess/ts-config

Commong typescript config

latest
Source
npmnpm
Version
1.3.5
Version published
Maintainers
23
Created
Source

ts-config

Common typescript config

Usage

npm i -D bitaccess/ts-config

Extend the files needed.

Examples

jest.config.js

const base = require('@bitaccess/ts-config/library/jest.config.js')

module.exports = Object.assign({}, base, {
  // overrides here
})

tsconfig.json

{
  "extends": "@bitaccess/ts-config/library/tsconfig.json",
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "dist/lib",
    "declarationDir": "dist/types",
    "paths": {
      "#/*": ["./src/*"],
    }
  },
  "exclude": ["node_modules", "dist"]
}

Templates

To initialize a new project from scratch copy the entire template directory. If migrating an existing project you'll need to copy over only desired files manually to avoid overwriting src and package.json.

For Libraries

cp -r ./template/library/. /path/to/empty/project

For Servers

cp -r ./template/server/. /path/to/empty/project

For React Frontends (using webpack)

cp -r ./template/react/. /path/to/empty/project

FAQs

Package last updated on 05 Aug 2022

Did you know?

Socket

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.

Install

Related posts