* feat(types): move Emigrate types to separate package Also refactor the types to use discriminating unions for easier error handling and such. Errors passed to storage plugins should now be serialized and storage plugins are expected to return already serialized errors on failed history entries. * fix(mysql): handle the new type changes * fix(storage-fs): handle the new type changes * feat(cli): better error handling and types Adapt to the new types from the @emigrate/types package, like discriminating union types and serializing and deserializing errors
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"name": "@emigrate/mysql",
|
|
"version": "0.1.2",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"description": "A MySQL plugin for Emigrate. Uses a MySQL database for storing migration history. Can load and generate .sql migration files.",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.js",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc --pretty",
|
|
"build:watch": "tsc --pretty --watch",
|
|
"lint": "xo --cwd=../.. $(pwd)"
|
|
},
|
|
"keywords": [
|
|
"emigrate",
|
|
"emigrate-storage",
|
|
"emigrate-loader",
|
|
"emigrate-plugin",
|
|
"emigrate-generator",
|
|
"migrations",
|
|
"mysql"
|
|
],
|
|
"author": "Aboviq AB <dev@aboviq.com> (https://www.aboviq.com)",
|
|
"homepage": "https://github.com/aboviq/emigrate/tree/main/packages/mysql#readme",
|
|
"repository": "https://github.com/aboviq/emigrate/tree/main/packages/mysql",
|
|
"bugs": "https://github.com/aboviq/emigrate/issues",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@emigrate/plugin-tools": "workspace:*",
|
|
"@emigrate/types": "workspace:*",
|
|
"mysql2": "3.6.5"
|
|
},
|
|
"devDependencies": {
|
|
"@emigrate/tsconfig": "workspace:*"
|
|
},
|
|
"volta": {
|
|
"extends": "../../package.json"
|
|
}
|
|
}
|