@ethereumjs/config-tsc

Common TypeScript configuration for EthereumJS libraries.

Usage no npm install needed!

<script type="module">
  import ethereumjsConfigTsc from 'https://cdn.skypack.dev/@ethereumjs/config-tsc';
</script>

README

@ethereumjs/config-tsc

Common TypeScript configuration for EthereumJS libraries.

Tool: TypeScript

Supported Version: ^3.2.2

Exposed CLI commands:

  • ethereumjs-config-tsc
  • ethereumjs-config-build

Usage

Add tsconfig.json:

{
  "extends": "@ethereumjs/config-tsc",
  "include": ["src/**/*.ts", "test/**/*.ts"]
}

Add tsconfig.prod.json:

{
  "extends": "@ethereumjs/config-tsc",
  "compilerOptions": {
    "outDir": "./dist"
  },
  "include": ["src/**/*.ts"]
}

Use CLI commands above in package.json:

  "scripts": {
    "tsc": "ethereumjs-config-tsc",
    "build": "ethereumjs-config-build"
  }