Skip to content

Commit

Permalink
refactor: move repl/* to .mts (#3185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Apr 14, 2024
1 parent 6840cf7 commit 26446bb
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/extension.mts
Expand Up @@ -19,7 +19,7 @@ import * as settingsViewer from './infoViewer/infoView.js';
import { IssueTracker } from './issueTracker.js';
import { activateFileIssuesViewer, activateIssueViewer } from './issueViewer/index.js';
import * as modules from './modules.js';
import { createTerminal, registerTerminalProfileProvider } from './repl/index.js';
import { createTerminal, registerTerminalProfileProvider } from './repl/index.mjs';
import type { ConfigTargetLegacy, CSpellSettings } from './settings/index.js';
import * as settings from './settings/index.js';
import { sectionCSpell } from './settings/index.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/repl/args.test.mts
Expand Up @@ -5,7 +5,7 @@ import { parseArgs } from 'node:util';
import { describe, expect, test } from 'vitest';

import { Application, castValueToType, Command, toBoolean } from './args.mjs';
import { parseCommandLineIntoArgs } from './parseCommandLine.js';
import { parseCommandLineIntoArgs } from './parseCommandLine.mjs';
import { unindent } from './textUtils.mjs';

const ac = expect.arrayContaining;
Expand Down
1 change: 1 addition & 0 deletions packages/client/src/repl/index.mts
@@ -0,0 +1 @@
export { createTerminal, registerTerminalProfileProvider } from './repl.mjs';
9 changes: 0 additions & 9 deletions packages/client/src/repl/index.ts

This file was deleted.

@@ -1,6 +1,6 @@
import { describe, expect, test } from 'vitest';

import { commandLineBuilder, parseCommandLine, parseCommandLineIntoArgs } from './parseCommandLine.js';
import { commandLineBuilder, parseCommandLine, parseCommandLineIntoArgs } from './parseCommandLine.mjs';

describe('parseArgs', () => {
test.each`
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/repl/repl.mts
Expand Up @@ -16,7 +16,7 @@ import { emitterToReadStream, emitterToWriteStream } from './emitterToWriteStrea
import type { DirEntry } from './fsUtils.mjs';
import { currentDirectory, globSearch, readDir, resolvePath, toRelativeWorkspacePath } from './fsUtils.mjs';
import { globsToGlob } from './globUtils.mjs';
import { commandLineBuilder, parseCommandLineIntoArgs } from './parseCommandLine.js';
import { commandLineBuilder, parseCommandLineIntoArgs } from './parseCommandLine.mjs';

const defaultWidth = 80;

Expand Down

0 comments on commit 26446bb

Please sign in to comment.