Thank you for your interest in contributing to Prisma Drop Migration Warning! We welcome all contributions, whether they are issues, bug fixes, or new features. Before contributing, please take a moment to review this guide.
- Getting Started
- Project Structure
- Setting Up the Environment
- Scripts
- Testing
- Linting and Formatting
- Building the Package
- Submitting a Pull Request
- Code of Conduct
- Fork this repository.
- Clone your fork to your local machine:
git clone https://github.com/your-username/prisma-drop-migration-warning.git
- Navigate to the project directory:
cd prisma-drop-migration-warning
- Install dependencies:
npm install
The project is organized as follows:
- _tests/: Contains test files for validating the functionality of the project (Jest)
- dist/: The bundled output directory created by
ncc
for publishing. - lib/: The compiled JavaScript code after TypeScript is transpiled.
- src/: The source TypeScript files.
- tsconfig.json: TypeScript configuration file.
- .eslintrc.js: ESLint configuration for linting JavaScript/TypeScript files.
- package.json: Project metadata and scripts.
Make sure you have Node.js (v16+) and npm installed. After cloning the repository and running npm install
, you should be able to run all scripts and tests.
Here’s a list of available npm scripts:
npm run build
: Compiles the TypeScript code in thesrc/
folder into JavaScript and places it in thelib/
directory.npm run test
: Runs the tests using Jest.npm run lint
: Lints the code using ESLint.npm run lint:fix
: Lints the code and automatically fixes issues where possible.npm run package
: Bundles the project using@vercel/ncc
and generates the output in thedist/
folder.npm run build:package
: Combines both the build and package steps.
We use Jest for testing. You can run all the tests using:
npm run test
Make sure to add tests for any new features or changes. Test files are located in the _tests/ directory. Tests should follow the format *.test.js.
Thank you for contributing! 🙌