Rearrange string-markup exports
MODIFY
packages/@romejs/cli-reporter/Reporter.ts
packages/@romejs/cli-reporter/Reporter.ts
*/
import {
+ MarkupFormatGridOptions,
MarkupFormatOptions,
+ MarkupLinesAndWidth,
+ MarkupTagName,
ansiEscapes,
markupTag,
markupToAnsi,
@@ -31,12 +34,7 @@ import stream = require("stream");
import {CWD_PATH} from "@romejs/path";
import {Event} from "@romejs/events";
import readline = require("readline");
-import {
- MarkupFormatGridOptions,
- MarkupTagName,
-} from "@romejs/string-markup/types";
import select from "./select";
-import {MarkupLinesAndWidth} from "@romejs/string-markup/format";
import {onKeypress} from "./util";
type ListOptions = {

MODIFY
packages/@romejs/string-markup/format.ts
packages/@romejs/string-markup/format.ts
@@ -9,6 +9,7 @@ import {
Children,
MarkupFormatGridOptions,
MarkupFormatNormalizeOptions,
+ MarkupLinesAndWidth,
TagNode,
} from "./types";
import {parseMarkup} from "./parse";
@@ -146,11 +147,6 @@ export function markupToPlainText(
};
}
-export type MarkupLinesAndWidth = {
- width: number;
- lines: Array<string>;
-};
-
export function markupToAnsi(
input: string,
opts: MarkupFormatGridOptions = {},

MODIFY
packages/@romejs/string-markup/index.ts
packages/@romejs/string-markup/index.ts
@@ -13,6 +13,8 @@ export {
MarkupFormatGridOptions,
MarkupFormatNormalizeOptions,
MarkupFormatOptions,
+ MarkupLinesAndWidth,
+ MarkupTagName,
} from "./types";
export {

MODIFY
packages/@romejs/string-markup/types.ts
packages/@romejs/string-markup/types.ts
@@ -87,3 +87,8 @@ export type MarkupFormatGridOptions = MarkupFormatOptions & {
export type MarkupFormatNormalizeOptions = MarkupFormatOptions & {
stripPositions?: boolean;
};
+
+export type MarkupLinesAndWidth = {
+ width: number;
+ lines: Array<string>;
+};

Rearrange string-markup exports (#529)