types-auto v1.0.1
types-auto
types-auto is a module that automatically installs TypeScript type declarations for your project's dependencies. It simplifies the process of managing type declarations, making your TypeScript development experience smoother and more efficient.
Installation
You can install types-auto globally for use in any project:
npm install -g types-autoOr you can install it as a devDependency in your specific project:
npm install --save-dev types-autoUsage
Once installed, you can run types-auto in your project directory:
npx types-autoThis will scan your package.json for dependencies and devDependencies, and automatically install the corresponding @types packages for those libraries (if they exist).
You can also configure types-auto to run automatically after every npm install. To do this, add a postinstall script to your package.json file:
"scripts": {
"postinstall": "types-auto"
}With this configuration, types-auto will run every time you run npm install.
Building
If you want to build the types-auto project from source, you can follow these steps:
- Clone the repository:
git clone https://github.com/pp00x/types-auto.git- Navigate into the project directory:
cd types-auto- Install the dependencies:
npm install- Build the project:
npm run buildThis will transpile the TypeScript code to JavaScript and output it in the dist/ directory.
Contributing
Contributions are welcome! Please open an issue if you encounter a bug or have a feature request, or open a pull request if you want to contribute code.
License
Apache-2.0