Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Commit 405566b

Browse files
authored
INT-2349 persist the codemod name in the config files on S3 (#544)
1 parent a16c4cc commit 405566b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

builder/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ const build = async () => {
147147

148148
await removeDirectoryContents(buildDirectoryPath);
149149

150+
// this is a deprecated feature
150151
await writeFile(
151152
join(buildDirectoryPath, 'names.json'),
152153
JSON.stringify(names),
@@ -170,9 +171,14 @@ const build = async () => {
170171
});
171172

172173
{
174+
const configWithName = {
175+
...config,
176+
name,
177+
};
178+
173179
const buildConfigPath = join(codemodDirectoryPath, 'config.json');
174180

175-
writeFile(buildConfigPath, JSON.stringify(config));
181+
writeFile(buildConfigPath, JSON.stringify(configWithName));
176182
}
177183

178184
if (

0 commit comments

Comments
 (0)