UNPKG

@becklyn/contentful-adapter

Version:

[![CI](https://github.com/Becklyn-Studios/contentful-adapter/actions/workflows/ci.yml/badge.svg)](https://github.com/Becklyn-Studios/contentful-adapter/actions/workflows/ci.yml)

13 lines (12 loc) 530 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.executeMigrationCommand = void 0; const config_1 = require("../config/config"); const migrator_1 = require("../migrations/migrator"); const executeMigrationCommand = async () => { console.log("Executing migrations..."); const config = await (0, config_1.loadConfig)(); await (0, migrator_1.executeMigrations)(config.clientConfig, config.migrations); process.exit(0); }; exports.executeMigrationCommand = executeMigrationCommand;