0.0.0-alpha ⢠Published 2 years ago
ts-initialize v0.0.0-alpha
Usage
ts-initialize is a CLI tool to onboard an existing project onto TypeScript in as few changes as possible.
It will:
- Create a TSConfig with settings tailored to your project
- Rewrite any
require()s as ESMimports - Rename your JavaScript files to the appropriate TypeScript extension
- Rewrite extension-less
imports to include an extension as needed - Rewrite import paths for situations where the type system explicitly needs extensions
- Install
@types/packages that exist for dependencies
It will not:
- Modify the runtime behavior of your code
- Infer explicit type annotations (use
ts-enhancefor that) - Augment configurations for common existing tools such as Babel and typescript-eslint (yet!)
ā” To start, the ts-initialize command will launch an interactive guide to setting up a configuration file. ā”
npx ts-initializeš Welcome to ts-initialize! š ...
After running ts-initialize, use ts-enhance for improving the types in your code.
Development
See Development.md. š
š This package is based on @JoshuaKGoldberg's create-typescript-app.
0.0.0-alpha
2 years ago