( options: S1ToS2CodemodOptions )
| 5 | const transformPath = path.join(__dirname, 'codemods', 'codemod.js'); |
| 6 | |
| 7 | export async function transform( |
| 8 | options: S1ToS2CodemodOptions |
| 9 | ): Promise<ReturnType<typeof jscodeshift>> { |
| 10 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 11 | const {path: filePath = '.', agent, ...jscodeshiftOptions} = options; |
| 12 | return await jscodeshift(transformPath, [filePath], jscodeshiftOptions); |
| 13 | } |
nothing calls this directly
no outgoing calls
no test coverage detected