MCPcopy Create free account
hub / github.com/adobe/react-spectrum / transform

Function transform

packages/dev/codemods/src/s1-to-s2/src/transform.ts:7–13  ·  view source on GitHub ↗
(
  options: S1ToS2CodemodOptions
)

Source from the content-addressed store, hash-verified

5const transformPath = path.join(__dirname, 'codemods', 'codemod.js');
6
7export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected