@mittwald/flow-codemods 1.2.0-next.6 → 1.2.0-next.61

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.
Files changed (50) hide show
  1. package/README.md +35 -6
  2. package/dist/catalog/entries.d.ts +0 -1
  3. package/dist/catalog/select.d.ts +0 -1
  4. package/dist/catalog/types.d.ts +0 -1
  5. package/dist/cli/args.d.ts +0 -1
  6. package/dist/cli/choose.d.ts +0 -1
  7. package/dist/cli/codemod.d.ts +16 -1
  8. package/dist/cli/codemod.js +21 -0
  9. package/dist/cli/list.d.ts +30 -2
  10. package/dist/cli/list.js +15 -4
  11. package/dist/cli/upgrade.d.ts +7 -1
  12. package/dist/cli/upgrade.js +31 -20
  13. package/dist/cli.d.ts +0 -1
  14. package/dist/cli.js +16 -1
  15. package/dist/flowPackages.generated.d.ts +0 -1
  16. package/dist/git.d.ts +0 -1
  17. package/dist/install.d.ts +110 -12
  18. package/dist/install.js +163 -50
  19. package/dist/manifest.d.ts +0 -1
  20. package/dist/migrations/action-prop-to-on-action/transform.js +91 -5
  21. package/dist/migrations/imports-to-package-root/transform.js +25 -2
  22. package/dist/migrations/password-tools-rule/transform.js +12 -1
  23. package/dist/migrations/popover-open-state-props/transform.js +101 -0
  24. package/dist/migrations/renamed-css-export/transform.js +73 -0
  25. package/dist/migrations/table-column-width-props/transform.js +131 -0
  26. package/dist/migrations.generated.d.ts +0 -1
  27. package/dist/migrations.generated.js +42 -6
  28. package/dist/resolve/range.d.ts +0 -1
  29. package/dist/resolve/registry.d.ts +0 -1
  30. package/dist/resolve/target.d.ts +0 -1
  31. package/dist/run/jscodeshift.d.ts +0 -1
  32. package/package.json +4 -2
  33. package/dist/catalog/entries.d.ts.map +0 -1
  34. package/dist/catalog/select.d.ts.map +0 -1
  35. package/dist/catalog/types.d.ts.map +0 -1
  36. package/dist/cli/args.d.ts.map +0 -1
  37. package/dist/cli/choose.d.ts.map +0 -1
  38. package/dist/cli/codemod.d.ts.map +0 -1
  39. package/dist/cli/list.d.ts.map +0 -1
  40. package/dist/cli/upgrade.d.ts.map +0 -1
  41. package/dist/cli.d.ts.map +0 -1
  42. package/dist/flowPackages.generated.d.ts.map +0 -1
  43. package/dist/git.d.ts.map +0 -1
  44. package/dist/install.d.ts.map +0 -1
  45. package/dist/manifest.d.ts.map +0 -1
  46. package/dist/migrations.generated.d.ts.map +0 -1
  47. package/dist/resolve/range.d.ts.map +0 -1
  48. package/dist/resolve/registry.d.ts.map +0 -1
  49. package/dist/resolve/target.d.ts.map +0 -1
  50. package/dist/run/jscodeshift.d.ts.map +0 -1
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * Drops `maxWidth` from `TableColumn`, and drops `width`/`minWidth` where they
5
+ * were `null` (alpha.956).
6
+ *
7
+ * Two changes with different decidability, which is why the transform covers
8
+ * both but not equally:
9
+ *
10
+ * - **`maxWidth` always goes.** The prop was removed from the type, so an
11
+ * explicit `maxWidth` attribute is wrong whatever its value is —
12
+ * `maxWidth={400}` and `maxWidth={computed}` alike. Removing it does change
13
+ * the rendered column (there is no maximum any more); that is the migration,
14
+ * not a side effect.
15
+ * - **`width` and `minWidth` only go when the source says `null`.** The type
16
+ * dropped `null`, and `null` meant "no explicit width", which is what
17
+ * omitting the prop means now. Only the literal is decidable:
18
+ * `width={maybeNull}` could be anything at runtime and is left alone, the way
19
+ * `accent-box-color-to-background-color` leaves `color={expression}`.
20
+ *
21
+ * The scope is the same as its neighbours': only JSX elements that resolve to
22
+ * `TableColumn` — imported named, aliased, or through a namespace, from
23
+ * `@mittwald/flow-react-components` or
24
+ * `@mittwald/flow-remote-react-components`, including their subpath entries.
25
+ *
26
+ * A spread (`<TableColumn {...props} />`) carrying `maxWidth` is invisible
27
+ * here. The explicit attributes beside it are still handled; `apply` names the
28
+ * gap.
29
+ */
30
+ const tableColumnWidthPropsTransform = (fileInfo, { j }) => {
31
+ const flowPackages = [
32
+ "@mittwald/flow-react-components",
33
+ "@mittwald/flow-remote-react-components",
34
+ ];
35
+ const affectedComponents = new Set(["TableColumn"]);
36
+ /** Removed from the type — an explicit attribute is wrong at any value. */
37
+ const removedProps = new Set(["maxWidth"]);
38
+ /** Retyped without `null` — remove only where the source literally says so. */
39
+ const nullableProps = new Set(["width", "minWidth"]);
40
+ const isFlowImport = (source) => flowPackages.some((pkg) => source === pkg || source.startsWith(`${pkg}/`));
41
+ /**
42
+ * Whether this JSX attribute value is the literal `null`.
43
+ *
44
+ * Both spellings, because which one appears depends on the parser: babel
45
+ * emits `NullLiteral`, esprima-style parsers a `Literal` whose `value` is
46
+ * `null`. Anything else — an identifier, a call, a ternary — is not decidable
47
+ * from the source and stays.
48
+ */
49
+ const isNullLiteral = (value) => {
50
+ if (!value || typeof value !== "object" || !("type" in value)) {
51
+ return false;
52
+ }
53
+ const container = value;
54
+ if (container.type !== "JSXExpressionContainer") {
55
+ return false;
56
+ }
57
+ const expression = container.expression;
58
+ if (!expression ||
59
+ typeof expression !== "object" ||
60
+ !("type" in expression)) {
61
+ return false;
62
+ }
63
+ const typed = expression;
64
+ return (typed.type === "NullLiteral" ||
65
+ (typed.type === "Literal" && typed.value === null));
66
+ };
67
+ const root = j(fileInfo.source, { parser: "tsx" });
68
+ // Local JSX identifier -> canonical component name (resolves `as` aliases).
69
+ const localToComponent = new Map();
70
+ // Local names of `import * as Flow` namespace imports from a Flow package.
71
+ const flowNamespaces = new Set();
72
+ root
73
+ .find(j.ImportDeclaration)
74
+ .filter((path) => isFlowImport(String(path.node.source.value)))
75
+ .forEach((path) => {
76
+ for (const specifier of path.node.specifiers ?? []) {
77
+ if (specifier.type === "ImportSpecifier" &&
78
+ specifier.imported.type === "Identifier" &&
79
+ affectedComponents.has(specifier.imported.name)) {
80
+ localToComponent.set(String(specifier.local?.name ?? specifier.imported.name), String(specifier.imported.name));
81
+ }
82
+ else if (specifier.type === "ImportNamespaceSpecifier" &&
83
+ specifier.local) {
84
+ flowNamespaces.add(String(specifier.local.name));
85
+ }
86
+ }
87
+ });
88
+ if (localToComponent.size === 0 && flowNamespaces.size === 0) {
89
+ return fileInfo.source;
90
+ }
91
+ let changed = false;
92
+ root.find(j.JSXOpeningElement).forEach((path) => {
93
+ const name = path.node.name;
94
+ let isAffected = false;
95
+ if (name.type === "JSXIdentifier") {
96
+ isAffected = localToComponent.has(name.name);
97
+ }
98
+ else if (name.type === "JSXMemberExpression" &&
99
+ name.object.type === "JSXIdentifier" &&
100
+ name.property.type === "JSXIdentifier") {
101
+ isAffected =
102
+ flowNamespaces.has(name.object.name) &&
103
+ affectedComponents.has(name.property.name);
104
+ }
105
+ if (!isAffected) {
106
+ return;
107
+ }
108
+ const attributes = path.node.attributes ?? [];
109
+ const kept = attributes.filter((attribute) => {
110
+ if (attribute.type !== "JSXAttribute" ||
111
+ attribute.name.type !== "JSXIdentifier") {
112
+ return true;
113
+ }
114
+ const attributeName = attribute.name.name;
115
+ if (removedProps.has(attributeName)) {
116
+ return false;
117
+ }
118
+ if (nullableProps.has(attributeName) && isNullLiteral(attribute.value)) {
119
+ return false;
120
+ }
121
+ return true;
122
+ });
123
+ if (kept.length !== attributes.length) {
124
+ path.node.attributes = kept;
125
+ changed = true;
126
+ }
127
+ });
128
+ // Returning the source untouched keeps this file out of the "changed" count.
129
+ return changed ? root.toSource() : fileInfo.source;
130
+ };
131
+ exports.default = tableColumnWidthPropsTransform;
@@ -1,4 +1,3 @@
1
1
  import type { MigrationEntry } from "./catalog/types.js";
2
2
  /** Every migration, newest first. Bodies live in `src/migrations`. */
3
3
  export declare const migrations: Omit<MigrationEntry, "body">[];
4
- //# sourceMappingURL=migrations.generated.d.ts.map
@@ -3,6 +3,33 @@
3
3
  // Source: packages/codemods/src/migrations/<id>/entry.md
4
4
  /** Every migration, newest first. Bodies live in `src/migrations`. */
5
5
  export const migrations = [
6
+ {
7
+ id: "popover-open-state-props",
8
+ since: "1.1.47",
9
+ title: "Popover: `defaultOpen` renamed, `isOpen` and `onOpenChange` now work",
10
+ kind: "migration",
11
+ action: "codemod",
12
+ remotePackage: true,
13
+ apply: "Rename `defaultOpen` to `isDefaultOpen` on `Popover`, `ContextualHelp` and `ContextMenu` — a codemod does it, scoped to those three. Leave `defaultOpen` alone on `Select`, `MenuTrigger`, `Tooltip`, `TooltipTrigger`, `DialogTrigger`, `DatePicker` and `DateRangePicker`, where it is react-aria's own prop and unchanged. Then check every `isOpen` and `onOpenChange` passed to those three by hand, because both changed behaviour and neither is mechanically decidable. `isOpen` used to be ignored and now controls the popover: a value that is not kept up to date through `onOpenChange` keeps the popover closed. `onOpenChange` used to take over the open state and now only reports it, so a handler that performed the close itself — `onOpenChange={(open) => controller.setOpen(open)}` — can drop that call, and a handler that relied on the prop to *suppress* the close no longer does; use the controller's `onClose` for that.",
14
+ },
15
+ {
16
+ id: "tabler-icons-no-longer-transitive",
17
+ since: "1.1.40",
18
+ title: "@tabler/icons-react is no longer installed alongside Flow",
19
+ kind: "migration",
20
+ action: "manual",
21
+ remotePackage: true,
22
+ apply: "Only affects code that imports from `@tabler/icons-react` — typically a `<Icon><IconSomething /></Icon>` using an icon that is not in Flow's own set. Add the package to your own dependencies (`npm i @tabler/icons-react`); the imports themselves stay unchanged. Flow's own `Icon*` components are unaffected, keep their names, and render exactly as before.",
23
+ },
24
+ {
25
+ id: "option-value-inferred-from-mixed-children",
26
+ since: "1.1.12",
27
+ title: "Option: value is inferred from mixed children",
28
+ kind: "migration",
29
+ action: "none",
30
+ remotePackage: true,
31
+ apply: "No code change required for the option itself. An `Option` whose children are text plus an element — text and a `Badge`, text and an icon — now carries that text as its key, where it previously fell back to react-aria's generated `react-aria-N`. Check anywhere such a key was read back: a stored or server-side selection, a `defaultValue`/`value` matched against it, or a test asserting on it. Pass an explicit `value` to pin the key to something other than the display text.",
32
+ },
6
33
  {
7
34
  id: "use-design-tokens-build-metadata-removed",
8
35
  since: "1.0.16",
@@ -75,14 +102,23 @@ export const migrations = [
75
102
  remotePackage: false,
76
103
  apply: "Replace the import path `@mittwald/flow-react-components/password-tools` with `@mittwald/flow-react-components/mittwald-password-tools-js`.",
77
104
  },
105
+ {
106
+ id: "tabs-navigation-usage-to-tab-navigation",
107
+ since: "0.2.0-alpha.977",
108
+ title: "Tabs restyled; navigation usage moves to TabNavigation",
109
+ kind: "migration",
110
+ action: "manual",
111
+ remotePackage: true,
112
+ apply: "Tabs' rendering changed: the tab list now fills the available width with equal-size tabs and a shared, animated indicator that slides between them, replacing the previous fit-content tabs that each carried their own hover/pressed/selected background. Nothing else about `Tabs` changed, and a `Tabs` that switches content within a page needs no code change — the new look applies on upgrade. Where `Tabs` was used to fake real navigation instead — a `TabTitle` given an `href` (`Aria.Tab`'s routing props: `href`, `target`, `routerOptions`, …) so selecting it pushed a real route change — replace it with `TabNavigation`: plain `Link` children instead of `Tab`/`TabTitle`/panels, `aria-current=\"page\"` on the active `Link` instead of `selectedKey`/`defaultSelectedKey`/`onSelectionChange`. `TabNavigation` keeps the visual language the old `Tabs` used to have, because it now owns that use case.",
113
+ },
78
114
  {
79
115
  id: "table-column-width-props",
80
116
  since: "0.2.0-alpha.956",
81
117
  title: "TableColumn: `maxWidth` removed, `width` and `minWidth` retyped",
82
118
  kind: "migration",
83
- action: "manual",
119
+ action: "codemod",
84
120
  remotePackage: true,
85
- apply: "Remove `maxWidth` from every `TableColumn`. Where `width` or `minWidth` was `null`, omit the prop instead — the type no longer accepts `null`, only `number | string`.",
121
+ apply: "Remove `maxWidth` from every `TableColumn`. Where `width` or `minWidth` was `null`, omit the prop instead — the type no longer accepts `null`, only `number | string`. A codemod does both for the cases it can decide from the source. Two it declines: a `width`/`minWidth` whose value is an expression (`width={maybeNull}`), and a spread that might carry `maxWidth` (`<TableColumn {...props} />`). Check those by hand.",
86
122
  },
87
123
  {
88
124
  id: "table-render-prop-removed",
@@ -190,7 +226,7 @@ export const migrations = [
190
226
  kind: "migration",
191
227
  action: "codemod",
192
228
  remotePackage: true,
193
- apply: "Rename the `action` prop on `Action` to `onAction`. Not only a rename: the new prop is typed `ActionFn` (`(...args: unknown[]) => unknown`), so a function *reference* that declares a parameter no longer type-checks and needs wrapping — `onAction={() => controller.close()}` rather than `onAction={controller.close}`. Check every site where you passed a reference rather than an inline arrow; the codemod renames the prop but cannot decide this one from the source.",
229
+ apply: "Rename the `action` prop on `Action` to `onAction`. Not only a rename: the new prop is typed `ActionFn` (`(...args: unknown[]) => unknown`), so a function *reference* that declares a parameter no longer type-checks and needs wrapping — `onAction={() => controller.close()}` rather than `onAction={controller.close}`. A codemod does both. It wraps every bare reference (`close`, `controller.close`), because the wrap is a no-op for a reference that did not need it. It leaves a value that already is the handler or produces one — an arrow function, a function expression, a call like `makeHandler()` or `close.bind(controller)` — and anything that is not one reference, such as `isOpen ? close : open` or `controller?.close`. Two wraps to look at afterwards: a handler that read the event `Action` forwards stops receiving it, and a possibly-undefined reference (`onAction={props.onAction}`) becomes a call TypeScript rejects — add the guard it asks for.",
194
230
  },
195
231
  {
196
232
  id: "button-props-interfaces",
@@ -208,15 +244,15 @@ export const migrations = [
208
244
  kind: "migration",
209
245
  action: "codemod",
210
246
  remotePackage: false,
211
- apply: 'Rewrite every subdirectory import from `@mittwald/flow-react-components` to the package root, except `react-hook-form` and `nextjs`, which move to `@mittwald/flow-react-components/react-hook-form` and `@mittwald/flow-react-components/nextjs`. If you hit missing module errors, set `"module": "esnext"` in `tsconfig.json`.',
247
+ apply: 'Rewrite every subdirectory import from `@mittwald/flow-react-components` to the package root, except `react-hook-form` and `nextjs`, which move to `@mittwald/flow-react-components/react-hook-form` and `@mittwald/flow-react-components/nextjs`. Asset imports are not part of this: a CSS specifier stays a CSS specifier — `all.css` and `all-layered.css` unchanged, a stale `global.css` or `globals.css` rewritten to `all.css` — and keeps any bundler query it carries (`?url`, `?inline`, `?raw`). It never becomes a named import from the package root, which has no JS binding behind a stylesheet. If you hit missing module errors, set `"module": "esnext"` in `tsconfig.json`.',
212
248
  },
213
249
  {
214
250
  id: "renamed-css-export",
215
251
  since: "0.1.0-alpha.292",
216
252
  title: "Renamed CSS export",
217
253
  kind: "migration",
218
- action: "manual",
254
+ action: "codemod",
219
255
  remotePackage: false,
220
- apply: "Replace the import `@mittwald/flow-react-components/styles` with `@mittwald/flow-react-components/all.css`.",
256
+ apply: "Replace the import `@mittwald/flow-react-components/styles` with `@mittwald/flow-react-components/all.css`, keeping any bundler query the specifier carries (`.../styles?url` becomes `.../all.css?url`). A codemod does this for JavaScript and TypeScript files. An `@import` of the old path inside a `.css` or `.scss` file is not covered — search for it by hand.",
221
257
  },
222
258
  ];
@@ -47,4 +47,3 @@ export type RangeResult = ResolvedRange | UnresolvedRange;
47
47
  * fine; two callers computing the fact differently is how they drift.
48
48
  */
49
49
  export declare const resolveRange: (revision: string, deps: RangeDeps) => Promise<RangeResult>;
50
- //# sourceMappingURL=range.d.ts.map
@@ -30,4 +30,3 @@ export declare const fetchAllVersions: (names: string[], fetchOne: (name: string
30
30
  * the intersection, not any single package's list.
31
31
  */
32
32
  export declare const intersectVersions: (packages: PackageVersions[]) => string[];
33
- //# sourceMappingURL=registry.d.ts.map
@@ -60,4 +60,3 @@ export type ResolveTargetResult = {
60
60
  * stable line never drifts onto the collection branch.
61
61
  */
62
62
  export declare const resolveTarget: ({ revision, current, versions, distTags, }: ResolveTargetInput) => ResolveTargetResult;
63
- //# sourceMappingURL=target.d.ts.map
@@ -42,4 +42,3 @@ export interface CodemodResult {
42
42
  * load does not predict, so the flag keeps its deliberately vague name.
43
43
  */
44
44
  export declare const runCodemod: ({ id, path, dry, print, }: CodemodOptions) => Promise<CodemodResult>;
45
- //# sourceMappingURL=jscodeshift.d.ts.map
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@mittwald/flow-codemods",
3
- "version": "1.2.0-next.6",
3
+ "version": "1.2.0-next.61",
4
4
  "type": "module",
5
5
  "description": "Codemods and an upgrade CLI for consumers of Flow, mittwald's design system",
6
6
  "homepage": "https://flow.mittwald.de",
7
7
  "repository": "https://github.com/mittwald/flow",
8
+ "license": "MIT",
8
9
  "bin": {
9
10
  "flow-codemods": "dist/cli.js"
10
11
  },
@@ -22,6 +23,7 @@
22
23
  "dependencies": {
23
24
  "@inquirer/prompts": "^7.9.0",
24
25
  "jscodeshift": "^17.3.0",
26
+ "package-manager-detector": "^1.8.0",
25
27
  "picocolors": "^1.1.1",
26
28
  "registry-url": "^7.2.0",
27
29
  "semver": "^7.8.5"
@@ -36,5 +38,5 @@
36
38
  "vitest": "^4.1.11",
37
39
  "yaml": "^2.8.1"
38
40
  },
39
- "gitHead": "9e74f995ca1e430f85aaff420759d73f47fec6bc"
41
+ "gitHead": "283fa3e69a84acef72d881532ff1e7763bb6def7"
40
42
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../src/catalog/entries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAExD,eAAO,MAAM,UAAU,EAAE,YAAY,EAAe,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,OAAQ,MAAM,KAAG,MAC+C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/catalog/select.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,WAAW,YAAa,YAAY,EAAE,KAAG,YAAY,EAG/D,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,aAAa,YACf,YAAY,EAAE,UACf,MAAM,KACb,YAAY,EACmD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/catalog/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,aAAa,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAE1E,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;CACrB;AAQD,eAAO,MAAM,cAAc,SAAU,MAAM,EAAE,KAAG,aAqD/C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"choose.d.ts","sourceRoot":"","sources":["../../src/cli/choose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,GAAG,EAAE,OAAO,CAAC;IACb,8BAA8B;IAC9B,KAAK,EAAE,OAAO,CAAC;IACf;;;;;;;;OAQG;IACH,IAAI,EAAE,OAAO,CAAC;IACd,2CAA2C;IAC3C,MAAM,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACvD,6CAA6C;IAC7C,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,4CAMtB,iBAAiB,KAAG,CAAC,CACtB,OAAO,EAAE,YAAY,EAAE,KACpB,OAAO,CAAC,YAAY,EAAE,CAAC,CAwB3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"codemod.d.ts","sourceRoot":"","sources":["../../src/cli/codemod.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,aAClB,MAAM,GAAG,SAAS,OACvB,MAAM,WACH,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,KAChC,MAKF,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,GAAG,CAAC,EAAE,OAAO,UAAU,CAAC;CACzB;AAED,eAAO,MAAM,gBAAgB,WACnB,aAAa,qBACW,kBAAkB,KACjD,OAAO,CAAC,MAAM,CA6DhB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/cli/list.ts"],"names":[],"mappings":"AAEA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B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAsB,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI/C,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,2EAA2E;IAC3E,MAAM,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAC7D,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAClC,oBAAoB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACxE,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,kBAAkB,QAAS,MAAM,KAAG,WAS/C,CAAC;AA2BH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,WACb,aAAa,QACf,WAAW,KAChB,OAAO,CAAC,MAAM,CAwMhB,CAAC"}
package/dist/cli.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"flowPackages.generated.d.ts","sourceRoot":"","sources":["../src/flowPackages.generated.ts"],"names":[],"mappings":"AAIA,mFAAmF;AACnF,eAAO,MAAM,YAAY,EAAE,MAAM,EAahC,CAAC"}
package/dist/git.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../src/git.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,OAkCnD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;AAe7D;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,YAAa,MAAM,EAAE,KAAG,cAOxD,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAS,MAAM,KAAG,cAKlD,CAAC;AAEJ,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,oEAAoE;IACpE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,YAAa,cAAc,KAAG,cAkBxD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;AAE3E,eAAO,MAAM,UAAU,EAAE,aAOxB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GACvB,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,sBAAsB,CAAC;AAS3B,MAAM,WAAW,QAAQ;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,aACrB,QAAQ,gBACJ,MAAM,EAAE,KACrB,cAAc,EAKd,CAAC;AAKJ;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,UAAW,MAAM,UAAU,MAAM,KAAG,MAQ5D,CAAC;AAgBF,qEAAqE;AACrE,eAAO,MAAM,UAAU,eAAgB,cAAc,KAAG,OACb,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,QAAQ,YAClC,CAAC,UACH,MAAM,gBACA,MAAM,EAAE,KACrB,CAcF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,iBACjB,cAAc,EAAE,wBACR,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,KACzD,MAAM,GAAG,SAgBX,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrations.generated.d.ts","sourceRoot":"","sources":["../src/migrations.generated.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,sEAAsE;AACtE,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,EAoPpD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/resolve/range.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,QAAQ,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,aAAa,EAEd,MAAM,eAAe,CAAC;AAGvB;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,QAC1B,MAAM,QACL,MAAM,KACX,MAAM,GAAG,SASX,CAAC;AA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