1.7.0 • Published 2 years ago
@jterrazz/package-typescript v1.7.0
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-typescriptUsage
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.jsonfile, keeping the implementation details hidden. - Consumers don't need to worry about the underlying scripts.
Happy coding!