@googleforcreators/migration
v0.1.202410011217
Published
Utility package for migrating stories to the latest data format.
Downloads
102
Readme
Migrations
This package contains the code to migrate stories and templates to the latest version.
Exports
DATA_VERSION
: the latest versionmigrate
: the function to migrate a story, given a data object and the story's current version.
Used by
- Dashboard
- Editor
- Continuous Integration (automated migrations of templates and FTUE story)
ES Module
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