jterrazz / package-typescript

This package provides a consistent TypeScript configuration for projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package Typescript

This package provides a consistent TypeScript configuration for projects. It includes two commands: swc-compiler and swc-runner.

Installation

Install the package globally or locally:

npm install @jterrazz/package-typescript

Usage

TypeScript Configuration

Use the provided tsconfig.json in your project:

// tsconfig.json
{
    extends: '@jterrazz/package-typescript/tsconfig/node-esm',
    compilerOptions: {
        // Your custom compiler options here
    },
}

Commands

  • swc-compiler: Compile TypeScript files using SWC.
  • swc-runner: Execute TypeScript files using SWC.

Implementation Details

  • The package reads directly from the tsconfig.json file, keeping the implementation details hidden.
  • Consumers don't need to worry about the underlying scripts.

Happy coding!

About

This package provides a consistent TypeScript configuration for projects.


Languages

Language:Shell 91.5%Language:JavaScript 8.5%