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

rename repomod-engine to filemod #838

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/codemods/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const codemodEntryCodec = t.union([
t.literal('jscodeshift'),
t.literal('ts-morph'),
t.literal('repomod-engine'),
t.literal('filemod'),
t.literal('recipe'),
]),
arguments: argumentsCodec,
Expand Down Expand Up @@ -71,6 +72,7 @@ export const privateCodemodEntryCodec = buildTypeCodec({
t.literal('jscodeshift'),
t.literal('ts-morph'),
t.literal('repomod-engine'),
t.literal('filemod'),
t.literal('recipe'),
]),
permalink: t.union([t.string, t.null]),
Expand Down
1 change: 1 addition & 0 deletions src/components/engineService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ export class EngineService {
if (
config.engine === 'jscodeshift' ||
config.engine === 'ts-morph' ||
config.engine === 'filemod' ||
config.engine === 'repomod-engine' ||
config.engine === 'recipe'
) {
Expand Down
5 changes: 5 additions & 0 deletions src/data/codemodConfigSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ export const codemodConfigSchema = S.union(
engine: S.literal('ts-morph'),
arguments: S.optional(argumentsSchema),
}),
S.struct({
schemaVersion: S.literal('1.0.0'),
engine: S.literal('filemod'),
arguments: S.optional(argumentsSchema),
}),
S.struct({
schemaVersion: S.literal('1.0.0'),
engine: S.literal('repomod-engine'),
Expand Down
Loading