From 9b55bf8f9583cbeac6d67779533807e187dfe306 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 4 Nov 2024 22:13:34 +0800 Subject: [PATCH] refactor: rename files --- packages/transformers/src/index.ts | 4 ++-- ...nsformer-meta-highlight-word.ts => meta-highlight-word.ts} | 0 .../{transformer-meta-highlight.ts => meta-highlight.ts} | 0 packages/transformers/test/meta-line-highlight.test.ts | 2 +- packages/transformers/test/meta-word-highlight.test.ts | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename packages/transformers/src/transformers/{transformer-meta-highlight-word.ts => meta-highlight-word.ts} (100%) rename packages/transformers/src/transformers/{transformer-meta-highlight.ts => meta-highlight.ts} (100%) diff --git a/packages/transformers/src/index.ts b/packages/transformers/src/index.ts index 52f8be834..1d305eaa9 100644 --- a/packages/transformers/src/index.ts +++ b/packages/transformers/src/index.ts @@ -1,4 +1,6 @@ export * from './transformers/compact-line-options' +export * from './transformers/meta-highlight' +export * from './transformers/meta-highlight-word' export * from './transformers/notation-diff' export * from './transformers/notation-error-level' export * from './transformers/notation-focus' @@ -7,6 +9,4 @@ export * from './transformers/notation-highlight-word' export * from './transformers/remove-line-breaks' export * from './transformers/remove-notation-escape' export * from './transformers/render-whitespace' -export * from './transformers/transformer-meta-highlight' -export * from './transformers/transformer-meta-highlight-word' export * from './utils' diff --git a/packages/transformers/src/transformers/transformer-meta-highlight-word.ts b/packages/transformers/src/transformers/meta-highlight-word.ts similarity index 100% rename from packages/transformers/src/transformers/transformer-meta-highlight-word.ts rename to packages/transformers/src/transformers/meta-highlight-word.ts diff --git a/packages/transformers/src/transformers/transformer-meta-highlight.ts b/packages/transformers/src/transformers/meta-highlight.ts similarity index 100% rename from packages/transformers/src/transformers/transformer-meta-highlight.ts rename to packages/transformers/src/transformers/meta-highlight.ts diff --git a/packages/transformers/test/meta-line-highlight.test.ts b/packages/transformers/test/meta-line-highlight.test.ts index 874aaf80a..e030acb98 100644 --- a/packages/transformers/test/meta-line-highlight.test.ts +++ b/packages/transformers/test/meta-line-highlight.test.ts @@ -1,5 +1,5 @@ import { expect, it } from 'vitest' -import { parseMetaHighlightString } from '../src/transformers/transformer-meta-highlight' +import { parseMetaHighlightString } from '../src/transformers/meta-highlight' it('parseHighlightLines', () => { expect(parseMetaHighlightString('')).toBe(null) diff --git a/packages/transformers/test/meta-word-highlight.test.ts b/packages/transformers/test/meta-word-highlight.test.ts index 8499a2dd0..7c48fcf0e 100644 --- a/packages/transformers/test/meta-word-highlight.test.ts +++ b/packages/transformers/test/meta-word-highlight.test.ts @@ -1,5 +1,5 @@ import { expect, it } from 'vitest' -import { parseMetaHighlightWords } from '../src/transformers/transformer-meta-highlight-word' +import { parseMetaHighlightWords } from '../src/transformers/meta-highlight-word' it('parseHighlightWords', () => { expect(parseMetaHighlightWords('')).toEqual([])