Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
migration
by
Codemod
Netlify/0.8.1/AddBuildEventContext
Made for
Netlify-sdk
Last update
Apr 23, 2024
This codemod renames addBuildContext
to addBuildEventContext
as required in Netlify SDK v0.8.1.
Before
import { NetlifyIntegration } from '@netlify/sdk';const integration = new NetlifyIntegration();// Adding a build event handlerintegration.addBuildContext(() => {});
After
import { NetlifyIntegration } from '@netlify/sdk';const integration = new NetlifyIntegration();// Adding a build event handlerintegration.addBuildEventContext(() => {});
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community