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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroHryshyn committed Dec 6, 2023
1 parent f97b76b commit 95d04a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
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

0 comments on commit 95d04a2

Please sign in to comment.