CLI for applying database migrations
npm install @larner.dev/migrateA tool to run database migrations. Currently only supports postgres.
``
npx @larner.dev/migrate up [options]
Apply all new migrations in
Options:
-w, --watch Watch for changes to
Setup Locally
Run
npm installDev Commands
Use
npm run followed by any of these commands:-
build: Output both ESM and CJS versions of the project, as well as type definitions to build directory.
- build-cjs: Output CJS versions of the project to build/cjs directory.
- build-ems: Output ESM versions of the project to build/esm directory.
- build-types: Output type definitions to build/types.d.ts file.
- dev: Re-build the ESM version any time there are changes to the project.
- format: Format all typescript files using prettier.
- lint: Run the linter to check for errors.
- test`: Run unit tests.