0.1.202401011233 • Published 4 months ago

@googleforcreators/migration v0.1.202401011233

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

Migrations

This package contains the code to migrate stories and templates to the latest version.

Exports

  • DATA_VERSION: the latest version
  • migrate: 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