Registry /
devops / east-migration-duration-logger
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ require('east-migration-duration-logger')
✗ import eastMigrationDurationLogger from 'east-migration-duration-logger'
This package is used as a plugin via East config, not typically imported in user code. If imported, use CommonJS require(). ESM import may not work due to lack of 'type': 'module' or export map.
plugin
✓ // Add to .eastrc.json: "plugins": ["east-migration-duration-logger"]
✗ plugins: [require('east-migration-duration-logger')]
Plugins in East config are specified by package name string, not by require().
east-migration-duration-logger
✓ npm install east-migration-duration-logger
✗ npm install --save-dev east-migration-duration-logger
It can be a regular dependency or devDependency; the plugin is loaded at runtime by East.
Shows how to install and configure the plugin to log migration durations using East.
// Ensure east is installed globally or as a dependency
// Install this plugin:
// npm install east-migration-duration-logger
// Add to your .eastrc file (e.g., .eastrc.json):
{
"plugins": ["east-migration-duration-logger"]
}
// Then run:
// npx east migrate
// Output will show duration for each migration action.
Debug
Known issues
breakingPeer dependency range east >=1.2.0-rc.1 <3.0.0 may not be compatible with East v3+.fixCheck East version; if using East v3, this plugin may not work. Consider seeking an updated fork.
affects: >=1.2.0-rc.1 <3.0.0
deprecatedNode engine requirement '>=4.0.0' is outdated; modern Node versions (>=12) are common.fixNo action needed, but consider upgrading to a newer plugin if available.
affects: >=1.0.0
gotchaPlugin is loaded by East at runtime; if the package is not installed where East runs, it will fail silently or throw an error.fixEnsure the package is installed in the same node_modules context as East.
affects: all
gotchaThe plugin only logs duration for migrate and rollback actions; other actions (e.g., create) are not timed.fixNo fix; it's by design.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'east-migration-duration-logger'
Package not installed or not in the correct node_modules path.
fixRun 'npm install east-migration-duration-logger' in your project directory.
east-migration-duration-logger: plugin is not a function (or similar)
East expects the plugin to export a function; older version may not meet requirements.
fixEnsure you are using east-migration-duration-logger version compatible with your East version.
Invalid plugin configuration: east-migration-duration-logger must be a string
Plugins array in .eastrc contains a non-string entry (e.g., object instead of package name).
fixUse a string: "plugins": ["east-migration-duration-logger"]
Audit
Dependencies
eastrequiredPeer dependency: this is a plugin for the East migration tool.