This package contains the code to migrate stories and templates to the latest version.
-
DATA_VERSION
: the latest version -
migrate
: the function to migrate a story, given a data object and the story's current version.
- Dashboard
- Editor
- Continuous Integration (automated migrations of templates and FTUE story)
This package uses depends on third-party packages like polished
.
To ensure the migrations can be run via Node.js on CI, Rollup is used to create a working ES module for it.
Usage:
$ npx rollup --config rollup.config.js
index.js → module.js...
created module.js in 123ms