styled-components-to-stylex-codemod 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -119,6 +119,30 @@ const adapter = defineAdapter({
119
119
  };
120
120
  },
121
121
 
122
+ /**
123
+ * Optional: inline styled(ImportedComponent) into an intrinsic element.
124
+ * When the base component can be resolved statically, return the target
125
+ * element, consumed props, and base StyleX declarations. Return undefined
126
+ * to keep normal styled(Component) behavior.
127
+ */
128
+ resolveBaseComponent(ctx) {
129
+ if (ctx.importSource !== "@company/ui" || ctx.importedName !== "Flex") {
130
+ return undefined;
131
+ }
132
+
133
+ const sx: Record<string, string> = { display: "flex" };
134
+ const consumedProps = ["column", "gap", "align"];
135
+
136
+ if (ctx.staticProps.column === true) {
137
+ sx.flexDirection = "column";
138
+ }
139
+ if (typeof ctx.staticProps.gap === "number") {
140
+ sx.gap = `${ctx.staticProps.gap}px`;
141
+ }
142
+
143
+ return { tagName: "div", consumedProps, sx };
144
+ },
145
+
122
146
  /**
123
147
  * Control which exported components accept external className/style
124
148
  * and/or polymorphic `as` prop. Return `{ styles, as }` flags.
@@ -172,6 +196,7 @@ Adapters are the main extension point, see full example above. They let you cont
172
196
  - which exported components should support external className/style extension and/or polymorphic `as` prop (`externalInterface`)
173
197
  - how className/style merging is handled for components accepting external styling (`styleMerger`)
174
198
  - which runtime theme hook import/call to use for emitted wrapper theme conditionals (`themeHook`)
199
+ - how `styled(ImportedComponent)` wrapping an external base component can be inlined into an intrinsic element with static StyleX styles (`resolveBaseComponent`)
175
200
 
176
201
  #### Cross-file selectors (`consumerPaths`)
177
202
 
@@ -224,6 +249,50 @@ Troubleshooting prepass failures with `"auto"`:
224
249
  - check resolver inputs (import paths, tsconfig path aliases, and related module resolution config)
225
250
  - if needed, switch to a manual `externalInterface(ctx)` function to continue migration while you fix prepass inputs
226
251
 
252
+ #### Base component resolution (`resolveBaseComponent`)
253
+
254
+ Use this when you want to **replace a base component entirely** by inlining its styles. If your codebase has a layout primitive like `<Flex>` whose behavior is purely CSS, the codemod can eliminate the runtime import and render a plain `<div>` instead.
255
+
256
+ The resolver receives `ctx.importSource`, `ctx.importedName`, and `ctx.staticProps` (from `.attrs()` and JSX call sites). Return `{ tagName, consumedProps, sx }` to inline, or `undefined` to skip.
257
+
258
+ ```tsx
259
+ // Input
260
+ const Container = styled(Flex).attrs({ column: true, gap: 16 })`
261
+ padding: 8px;
262
+ `;
263
+ ```
264
+
265
+ ```ts
266
+ // Adapter
267
+ resolveBaseComponent(ctx) {
268
+ if (ctx.importedName !== "Flex") return undefined;
269
+ const sx: Record<string, string> = { display: "flex" };
270
+ if (ctx.staticProps.column === true) sx.flexDirection = "column";
271
+ if (typeof ctx.staticProps.gap === "number") sx.gap = `${ctx.staticProps.gap}px`;
272
+ return { tagName: "div", consumedProps: ["column", "gap", "align"], sx };
273
+ },
274
+ ```
275
+
276
+ ```tsx
277
+ // Output — Flex is gone, its styles are merged into stylex.create()
278
+ const styles = stylex.create({
279
+ container: { display: "flex", flexDirection: "column", gap: "16px", padding: "8px" },
280
+ });
281
+ ```
282
+
283
+ If the base component's styles already exist as a `stylex.create()` object, return `mixins` instead of (or alongside) `sx`. The codemod imports the mixin and includes it in `stylex.props(...)`:
284
+
285
+ ```ts
286
+ resolveBaseComponent(ctx) {
287
+ return {
288
+ tagName: "div",
289
+ consumedProps: ["column", "gap"],
290
+ mixins: [{ importSource: "./lib/mixins.stylex", importName: "mixins", styleKey: "flex" }],
291
+ };
292
+ },
293
+ // Output: <div {...stylex.props(mixins.flex, styles.container)} />
294
+ ```
295
+
227
296
  #### Dynamic interpolations
228
297
 
229
298
  When the codemod encounters an interpolation inside a styled template literal, it runs an internal dynamic resolution pipeline which covers common cases like:
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as defineAdapter, i as AdapterInput, t as CollectedWarning } from "./logger-vL9nn4Bu.mjs";
1
+ import { a as defineAdapter, i as AdapterInput, t as CollectedWarning } from "./logger-DyMTX-U6.mjs";
2
2
 
3
3
  //#region src/run.d.ts
4
4
  interface RunTransformOptions {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as assertValidAdapterInput, o as describeValue, r as defineAdapter, t as Logger } from "./logger-Cn8OiPdU.mjs";
1
+ import { a as assertValidAdapterInput, o as describeValue, r as defineAdapter, t as Logger } from "./logger-D7X3KrX1.mjs";
2
2
  import { run } from "jscodeshift/src/Runner.js";
3
3
  import { fileURLToPath } from "node:url";
4
4
  import { dirname, join, resolve } from "node:path";
@@ -106,6 +106,17 @@ async function runTransform(options) {
106
106
  throw e;
107
107
  }
108
108
  };
109
+ const resolveBaseComponentWithLogging = (ctx) => {
110
+ if (!adapterInput.resolveBaseComponent) return;
111
+ try {
112
+ return adapterInput.resolveBaseComponent(ctx);
113
+ } catch (e) {
114
+ const msg = `adapter.resolveBaseComponent threw an error: ${e instanceof Error ? e.message : String(e)}`;
115
+ Logger.logError(msg, ctx.filePath, void 0, ctx);
116
+ Logger.markErrorAsLogged(e);
117
+ throw e;
118
+ }
119
+ };
109
120
  const patterns = Array.isArray(files) ? files : [files];
110
121
  const filePaths = [];
111
122
  const cwd = process.cwd();
@@ -187,7 +198,8 @@ async function runTransform(options) {
187
198
  },
188
199
  resolveValue: resolveValueWithLogging,
189
200
  resolveCall: resolveCallWithLogging,
190
- resolveSelector: resolveSelectorWithLogging
201
+ resolveSelector: resolveSelectorWithLogging,
202
+ resolveBaseComponent: adapterInput.resolveBaseComponent ? resolveBaseComponentWithLogging : void 0
191
203
  };
192
204
  const transformPath = (() => {
193
205
  const adjacent = join(__dirname, "transform.mjs");
@@ -35,6 +35,7 @@ function assertAdapterShape(candidate, where, allowAutoExtIf) {
35
35
  const resolveValue = obj?.resolveValue;
36
36
  const resolveCall = obj?.resolveCall;
37
37
  const resolveSelector = obj?.resolveSelector;
38
+ const resolveBaseComponent = obj?.resolveBaseComponent;
38
39
  const externalInterface = obj?.externalInterface;
39
40
  if (!candidate || typeof candidate !== "object") throw new Error([
40
41
  `${where}: expected an adapter object.`,
@@ -95,6 +96,19 @@ function assertAdapterShape(candidate, where, allowAutoExtIf) {
95
96
  "",
96
97
  `Docs/examples: ${ADAPTER_DOCS_URL}`
97
98
  ].join("\n"));
99
+ if (resolveBaseComponent !== void 0 && typeof resolveBaseComponent !== "function") throw new Error([
100
+ `${where}: adapter.resolveBaseComponent must be a function when provided.`,
101
+ `Received: resolveBaseComponent=${describeValue(resolveBaseComponent)}`,
102
+ "",
103
+ "Adapter shape:",
104
+ " {",
105
+ " resolveBaseComponent(context) {",
106
+ " return { tagName, consumedProps, sx?, mixins? } | undefined",
107
+ " }",
108
+ " }",
109
+ "",
110
+ `Docs/examples: ${ADAPTER_DOCS_URL}`
111
+ ].join("\n"));
98
112
  if (!(typeof externalInterface === "function" || allowAutoExtIf && externalInterface === "auto")) {
99
113
  const expected = allowAutoExtIf ? "adapter.externalInterface must be a function or \"auto\"." : "adapter.externalInterface must be a function.";
100
114
  throw new Error([`${where}: ${expected}`, `Received: externalInterface=${describeValue(externalInterface)}`].join("\n"));
@@ -232,6 +232,48 @@ type ImportSpec = {
232
232
  local?: string;
233
233
  }>;
234
234
  };
235
+ type ResolveBaseComponentStaticValue = string | number | boolean;
236
+ interface ResolveBaseComponentContext {
237
+ /**
238
+ * Import source for the wrapped base component.
239
+ * - package import: "@linear/orbiter/components/Flex"
240
+ * - relative import: resolved absolute path
241
+ */
242
+ importSource: string;
243
+ /**
244
+ * Imported binding name for the wrapped base component.
245
+ * Example: `import { Flex as OrbiterFlex } ...` -> importedName: "Flex"
246
+ */
247
+ importedName: string;
248
+ /**
249
+ * Static props from `.attrs({...})` and/or JSX call sites.
250
+ * Includes only literal values that can be resolved at codemod time.
251
+ */
252
+ staticProps: Record<string, ResolveBaseComponentStaticValue>;
253
+ /**
254
+ * Absolute path of the file currently being transformed.
255
+ * Useful for resolver logic that branches by caller file.
256
+ */
257
+ filePath: string;
258
+ }
259
+ interface ResolveBaseComponentMixinRef {
260
+ /** Import source for the mixin namespace/object (module specifier or absolute path) */
261
+ importSource: string;
262
+ /** Imported binding name for the mixin namespace/object (e.g., "mixins") */
263
+ importName: string;
264
+ /** Property key on the imported namespace/object (e.g., "flex") */
265
+ styleKey: string;
266
+ }
267
+ interface ResolveBaseComponentResult {
268
+ /** Intrinsic element to render after inlining (e.g., "div", "section") */
269
+ tagName: string;
270
+ /** Props consumed by the resolver and stripped from DOM forwarding */
271
+ consumedProps: string[];
272
+ /** Base StyleX declarations merged into stylex.create() (camelCase, no shorthands) */
273
+ sx?: Record<string, string>;
274
+ /** External StyleX mixin references included in stylex.props(...) */
275
+ mixins?: ResolveBaseComponentMixinRef[];
276
+ }
235
277
  /**
236
278
  * Context for `adapter.resolveSelector(...)`.
237
279
  *
@@ -404,6 +446,14 @@ interface Adapter {
404
446
  * - `undefined` to bail/skip the file
405
447
  */
406
448
  resolveSelector: (context: SelectorResolveContext) => SelectorResolveResult | undefined;
449
+ /**
450
+ * Optional resolver for inlining `styled(ImportedBase)` components.
451
+ *
452
+ * Return:
453
+ * - `{ tagName, consumedProps, sx?, mixins? }` to inline the base component
454
+ * - `undefined` to keep normal `styled(Component)` behavior
455
+ */
456
+ resolveBaseComponent?: (context: ResolveBaseComponentContext) => ResolveBaseComponentResult | undefined;
407
457
  /**
408
458
  * Called for exported styled components to determine their external interface.
409
459
  *
@@ -450,6 +500,7 @@ interface AdapterInput {
450
500
  resolveValue: Adapter["resolveValue"];
451
501
  resolveCall: Adapter["resolveCall"];
452
502
  resolveSelector: Adapter["resolveSelector"];
503
+ resolveBaseComponent?: Adapter["resolveBaseComponent"];
453
504
  /**
454
505
  * Called for exported styled components to determine their external interface.
455
506
  *
@@ -522,7 +573,7 @@ declare function defineAdapter<T extends AdapterInput>(adapter: T): T;
522
573
  //#endregion
523
574
  //#region src/internal/logger.d.ts
524
575
  type Severity = "info" | "warning" | "error";
525
- type WarningType = "`css` helper function switch must return css templates in all branches" | "`css` helper usage as a function call (css(...)) is not supported" | "`css` helper used outside of a styled component template cannot be statically transformed" | "Adapter helper call in border interpolation did not resolve to a single CSS value" | "Adapter resolveCall returned an unparseable styles expression" | "Adapter resolveCall returned an unparseable value expression" | "Adapter resolveCall returned StyleX styles for helper call where a CSS value was expected" | "Adapter resolveCall returned undefined for helper call" | "Adapter resolved StyleX styles cannot be applied under nested selectors/at-rules" | "Adapter resolved StyleX styles inside pseudo selector but did not provide cssText for property expansion — add cssText to resolveCall result to enable pseudo-wrapping" | 'Adapter resolveCall cssText could not be parsed as CSS declarations — expected semicolon-separated property: value pairs (e.g. "white-space: nowrap; overflow: hidden;")' | "Adapter resolveValue returned an unparseable value expression" | "Adapter resolveValue returned undefined for imported value" | "Arrow function: body is not a recognized pattern (expected ternary, logical, call, or member expression)" | "Arrow function: conditional branches could not be resolved to static or theme values" | "Arrow function: helper call body is not supported" | "Arrow function: indexed theme lookup pattern not matched" | "Arrow function: logical expression pattern not supported" | "Arrow function: prop access cannot be converted to style function for this CSS property" | "Arrow function: theme access path could not be resolved" | "Component selectors like `${OtherComponent}:hover &` are not directly representable in StyleX. Manual refactor is required" | "Conditional `css` block: !important is not supported in StyleX" | "Conditional `css` block: @-rules (e.g., @media, @supports) are not supported" | "CSS block contains unsupported at-rule (only @media is supported; @supports, @container, etc. require manual handling)" | "Conditional `css` block: dynamic interpolation could not be resolved to a single component prop" | "Conditional `css` block: failed to parse expression" | "Conditional `css` block: missing CSS property name" | "Conditional `css` block: missing interpolation expression" | "Conditional `css` block: mixed static/dynamic values with non-theme expressions cannot be safely transformed" | "Conditional `css` block: multiple interpolation slots in a single property value" | "Conditional `css` block: ternary branch value could not be resolved (imported values require adapter support)" | "Conditional `css` block: ternary expressions inside pseudo selectors are not supported" | "Conditional `css` block: unsupported selector" | "Directional border helper styles are not supported" | "Multi-slot border interpolation could not be resolved" | "createGlobalStyle is not supported in StyleX. Global styles should be handled separately (e.g., in a CSS file or using CSS reset libraries)" | "Dynamic styles inside pseudo elements (::before/::after) are not supported by StyleX. See https://github.com/facebook/stylex/issues/1396" | "Failed to parse theme expressions" | "Heterogeneous background values (mix of gradients and colors) not currently supported" | "Higher-order styled factory wrappers (e.g. hoc(styled)) are not supported" | "Imported CSS helper mixins: cannot determine inherited properties for correct pseudo selector handling" | "Styled-components specificity hacks like `&&` / `&&&` are not representable in StyleX" | "Theme-dependent block-level conditional could not be fully resolved (branches may contain dynamic interpolations)" | "Theme-dependant call expression could not be resolved (e.g. theme helper calls like theme.highlight() are not supported)" | "Theme value with fallback (props.theme.X ?? / || default) cannot be resolved statically — use adapter.resolveValue to map theme paths to StyleX tokens" | "Theme-dependent nested prop access requires a project-specific theme source (e.g. useTheme())" | "Theme-dependent template literals require a project-specific theme source (e.g. useTheme())" | "Theme prop overrides on styled components are not supported" | "Universal selectors (`*`) are currently unsupported" | "Unsupported call expression (expected imported helper(...) or imported helper(...)(...))" | "Unsupported conditional test in shouldForwardProp" | "Unsupported shouldForwardProp pattern (only !prop.startsWith(), ![].includes(prop), and prop !== are supported)" | "Unsupported interpolation: arrow function" | "Unsupported interpolation: call expression" | "Unsupported interpolation: identifier" | "Unsupported interpolation: member expression" | "Unsupported interpolation: property" | "Unsupported interpolation: unknown" | "Unsupported nested conditional interpolation" | "Unsupported prop-based inline style expression cannot be safely inlined" | "Unsupported prop-based inline style props.theme access is not supported" | "Unsupported selector interpolation: imported value in selector position" | "Unsupported selector: class selector" | "Unsupported selector: comma-separated selectors must all be simple pseudos or pseudo-elements" | "Unsupported selector: descendant pseudo selector (space before pseudo)" | "Unsupported selector: descendant/child/sibling selector" | "Unsupported selector: interpolated pseudo selector" | "Unsupported selector: sibling combinator" | "Unsupported selector: unresolved interpolation in sibling selector" | "Unsupported selector: ambiguous element selector" | "Unsupported selector: attribute selector on unsupported element" | "Unsupported selector: element selector on exported component" | "Unsupported selector: element selector with combined ancestor and child pseudos" | "Unsupported selector: element selector with dynamic children" | "Unsupported selector: element selector with plain intrinsic children" | "Unsupported selector: element selector pseudo collision" | "Unsupported selector: unresolved interpolation in cross-file component selector" | "Unsupported selector: unresolved interpolation in descendant component selector" | "Unsupported selector: unresolved interpolation in element selector" | "Unsupported selector: unresolved interpolation in reverse component selector" | "Unsupported selector: grouped reverse selector references different components" | "Unsupported selector: unknown component selector" | "Unsupported css`` mixin: after-base mixin style is not a plain object" | "Unsupported css`` mixin: nested contextual conditions in after-base mixin" | "Unsupported css`` mixin: cannot infer base default for after-base contextual override (base value is non-literal)" | "css`` helper function interpolation references closure variable that cannot be hoisted" | "Sibling selector broadened: & + & (adjacent) becomes general sibling (~) in StyleX — interleaved non-matching elements will no longer block the match" | "Using styled-components components as mixins is not supported; use css`` mixins or strings instead" | "styled(ImportedComponent) wraps a component whose file contains internal styled-components — convert the base component's file first to avoid CSS cascade conflicts";
576
+ type WarningType = "`css` helper function switch must return css templates in all branches" | "`css` helper usage as a function call (css(...)) is not supported" | "`css` helper used outside of a styled component template cannot be statically transformed" | "Adapter helper call in border interpolation did not resolve to a single CSS value" | "Adapter resolveCall returned an unparseable styles expression" | "Adapter resolveCall returned an unparseable value expression" | "Adapter resolveCall returned StyleX styles for helper call where a CSS value was expected" | "Adapter resolveCall returned undefined for helper call" | "Adapter resolveBaseComponent threw an error" | "Adapter resolved StyleX styles cannot be applied under nested selectors/at-rules" | "Adapter resolved StyleX styles inside pseudo selector but did not provide cssText for property expansion — add cssText to resolveCall result to enable pseudo-wrapping" | 'Adapter resolveCall cssText could not be parsed as CSS declarations — expected semicolon-separated property: value pairs (e.g. "white-space: nowrap; overflow: hidden;")' | "Adapter resolveValue returned an unparseable value expression" | "Adapter resolveValue returned undefined for imported value" | "Arrow function: body is not a recognized pattern (expected ternary, logical, call, or member expression)" | "Arrow function: conditional branches could not be resolved to static or theme values" | "Arrow function: helper call body is not supported" | "Arrow function: indexed theme lookup pattern not matched" | "Arrow function: logical expression pattern not supported" | "Arrow function: prop access cannot be converted to style function for this CSS property" | "Arrow function: theme access path could not be resolved" | "Component selectors like `${OtherComponent}:hover &` are not directly representable in StyleX. Manual refactor is required" | "Conditional `css` block: !important is not supported in StyleX" | "Conditional `css` block: @-rules (e.g., @media, @supports) are not supported" | "CSS block contains unsupported at-rule (only @media is supported; @supports, @container, etc. require manual handling)" | "Conditional `css` block: dynamic interpolation could not be resolved to a single component prop" | "Conditional `css` block: failed to parse expression" | "Conditional `css` block: missing CSS property name" | "Conditional `css` block: missing interpolation expression" | "Conditional `css` block: mixed static/dynamic values with non-theme expressions cannot be safely transformed" | "Conditional `css` block: multiple interpolation slots in a single property value" | "Conditional `css` block: ternary branch value could not be resolved (imported values require adapter support)" | "Conditional `css` block: ternary expressions inside pseudo selectors are not supported" | "Conditional `css` block: unsupported selector" | "Directional border helper styles are not supported" | "Multi-slot border interpolation could not be resolved" | "createGlobalStyle is not supported in StyleX. Global styles should be handled separately (e.g., in a CSS file or using CSS reset libraries)" | "Dynamic styles inside pseudo elements (::before/::after) are not supported by StyleX. See https://github.com/facebook/stylex/issues/1396" | "Failed to parse theme expressions" | "Heterogeneous background values (mix of gradients and colors) not currently supported" | "Higher-order styled factory wrappers (e.g. hoc(styled)) are not supported" | "Imported CSS helper mixins: cannot determine inherited properties for correct pseudo selector handling" | "Styled-components specificity hacks like `&&` / `&&&` are not representable in StyleX" | "Theme-dependent block-level conditional could not be fully resolved (branches may contain dynamic interpolations)" | "Theme-dependant call expression could not be resolved (e.g. theme helper calls like theme.highlight() are not supported)" | "Theme value with fallback (props.theme.X ?? / || default) cannot be resolved statically — use adapter.resolveValue to map theme paths to StyleX tokens" | "Theme-dependent nested prop access requires a project-specific theme source (e.g. useTheme())" | "Theme-dependent template literals require a project-specific theme source (e.g. useTheme())" | "Theme prop overrides on styled components are not supported" | "Universal selectors (`*`) are currently unsupported" | "Unsupported call expression (expected imported helper(...) or imported helper(...)(...))" | "Unsupported conditional test in shouldForwardProp" | "Unsupported shouldForwardProp pattern (only !prop.startsWith(), ![].includes(prop), and prop !== are supported)" | "Unsupported interpolation: arrow function" | "Unsupported interpolation: call expression" | "Unsupported interpolation: identifier" | "Unsupported interpolation: member expression" | "Unsupported interpolation: property" | "Unsupported interpolation: unknown" | "Unsupported nested conditional interpolation" | "Unsupported prop-based inline style expression cannot be safely inlined" | "Unsupported prop-based inline style props.theme access is not supported" | "Unsupported selector interpolation: imported value in selector position" | "Unsupported selector: class selector" | "Unsupported selector: comma-separated selectors must all be simple pseudos or pseudo-elements" | "Unsupported selector: descendant pseudo selector (space before pseudo)" | "Unsupported selector: descendant/child/sibling selector" | "Unsupported selector: interpolated pseudo selector" | "Unsupported selector: sibling combinator" | "Unsupported selector: unresolved interpolation in sibling selector" | "Unsupported selector: ambiguous element selector" | "Unsupported selector: attribute selector on unsupported element" | "Unsupported selector: element selector on exported component" | "Unsupported selector: element selector with combined ancestor and child pseudos" | "Unsupported selector: element selector with dynamic children" | "Unsupported selector: element selector with plain intrinsic children" | "Unsupported selector: element selector pseudo collision" | "Unsupported selector: unresolved interpolation in cross-file component selector" | "Unsupported selector: unresolved interpolation in descendant component selector" | "Unsupported selector: unresolved interpolation in element selector" | "Unsupported selector: unresolved interpolation in reverse component selector" | "Unsupported selector: grouped reverse selector references different components" | "Unsupported selector: unknown component selector" | "Unsupported css`` mixin: after-base mixin style is not a plain object" | "Unsupported css`` mixin: nested contextual conditions in after-base mixin" | "Unsupported css`` mixin: cannot infer base default for after-base contextual override (base value is non-literal)" | "css`` helper function interpolation references closure variable that cannot be hoisted" | "Sibling selector broadened: & + & (adjacent) becomes general sibling (~) in StyleX — interleaved non-matching elements will no longer block the match" | "Using styled-components components as mixins is not supported; use css`` mixins or strings instead" | "styled(ImportedComponent) wraps a component whose file contains internal styled-components — convert the base component's file first to avoid CSS cascade conflicts";
526
577
  interface WarningLog {
527
578
  severity: Severity;
528
579
  type: WarningType;
@@ -1,4 +1,4 @@
1
- import { n as WarningLog, r as Adapter } from "./logger-vL9nn4Bu.mjs";
1
+ import { n as WarningLog, r as Adapter } from "./logger-DyMTX-U6.mjs";
2
2
  import "stylis";
3
3
  import { API, FileInfo, Options } from "jscodeshift";
4
4