Provides a common service for migrations in JavaScript.
- Install it with
npm i @js-migrations/core. - Create a repository facade.
- Use the factory to create the service facade.
This package contains the RepoFacade TypeScript interface. You can create a facade to match the interface using the factories below.
import migrationsServiceFactory from '@js-migrations/core/dist/factory';
const migrationsServiceFacade = migrationsServiceFactory({
log: console.log.bind(console),
repo: migrationsRepoFacade,
});