emigrate/packages/cli/src
Joakim Carlstein cae6d11d53
feat(types): move Emigrate types to separate package and improve types (#41)
* 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
2023-12-15 13:03:35 +01:00
..
commands feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
reporters feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
array-from-async.ts refactor(cli): introduce the migration-runner helper for less code duplication and fewer return paths 2023-12-12 15:47:37 +01:00
cli.ts feat(reporters): pass the CLI's version number to reporters (#38) 2023-12-14 13:11:55 +01:00
collect-migrations.ts feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
errors.ts feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
exec.ts feat(storage): add "end" method to storage for cleaning up resources when commands are finished 2023-12-08 13:01:46 +01:00
filter-async.ts refactor(cli): introduce the migration-runner helper for less code duplication and fewer return paths 2023-12-12 15:47:37 +01:00
get-config.ts feat(remove): implement the "remove" command for removing migrations from the history 2023-11-24 15:45:17 +01:00
get-duration.ts feat(remove): implement the "remove" command for removing migrations from the history 2023-11-24 15:45:17 +01:00
get-migration.ts feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
get-migrations.ts feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
get-package-info.ts feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
index.ts feat(cli): improve "up" command output and flow a lot 2023-11-17 12:50:35 +01:00
migration-runner.ts feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
plugin-loader-js.ts feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
to-migration-metadata.ts feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
types.ts feat(types): move Emigrate types to separate package and improve types (#41) 2023-12-15 13:03:35 +01:00
with-leading-period.ts feat(cli): improve "up" command output and flow a lot 2023-11-17 12:50:35 +01:00