Skip to content

Update "StarterBlock" references in "src/Block.js" with the new block name. #24

@chris-decker-volusion

Description

@chris-decker-volusion

Similar to how it handles local/index.js here:

const updateModuleNames = (name: string): Promise<string[]> => {
const options = {
files: [`${name}/local/index.js`],
from: /StarterBlock/g,
to: name,
};
return replace(options);
};

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions