Skip to content

Commit

Permalink
Merge pull request #63 from line/refactor/rename-remove-unused-export
Browse files Browse the repository at this point in the history
refactor: rename remove unused export
  • Loading branch information
kazushisan authored Nov 23, 2024
2 parents 65b8efc + 145c54d commit 4dfbe6a
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 93 deletions.
6 changes: 3 additions & 3 deletions lib/remove.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import ts from 'typescript';
import { MemoryFileService } from './util/MemoryFileService.js';
import { removeUnusedExport } from './util/removeUnusedExport.js';
import { edit } from './util/edit.js';
import chalk from 'chalk';
import { Logger } from './util/Logger.js';
import { cwd, stdout } from 'node:process';
import { CliEditTracker } from './util/CliEditTracker.js';
import { relative } from 'node:path';
import { WorkerPool } from './util/WorkerPool.js';
import type { processFile } from './util/removeUnusedExport.js';
import type { processFile } from './util/edit.js';
import { formatCount } from './util/formatCount.js';
import { dts } from './util/regex.js';

Expand Down Expand Up @@ -106,7 +106,7 @@ export const remove = async ({
new URL('./worker.js', import.meta.url).href,
});

await removeUnusedExport({
await edit({
fileService,
entrypoints,
deleteUnusedFile: true,
Expand Down
Loading

0 comments on commit 4dfbe6a

Please sign in to comment.