0.0.0-alpha ā¢ Published 8 months 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 ESMimport
s - Rename your JavaScript files to the appropriate TypeScript extension
- Rewrite extension-less
import
s 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-enhance
for 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
8 months ago