Skip to content

Commit 60b9c59

Browse files
committed
refactor(ui-scripts): relocate lint command out of legacy lib/test/ folder
Move lint.ts from lib/test/ into lib/commands/, alongside the other yargs command modules (bump.ts, server.ts, etc.) it is registered with in commands/index.ts. The test/ directory is a leftover name from when ui-scripts absorbed the separate ui-test package.
1 parent 766d791 commit 60b9c59

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/ui-scripts/lib/__node_tests__/lint.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ vi.mock('@instructure/command-utils', () => ({
2828
runCommandSync: vi.fn()
2929
}))
3030

31-
import lint from '../test/lint.ts'
31+
import lint from '../commands/lint.ts'
3232
import { runCommandSync } from '@instructure/command-utils'
3333

3434
const runMock = vi.mocked(runCommandSync)

packages/ui-scripts/lib/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import publish from './publish.ts'
3030
import publishPrivate from './publish-private.ts'
3131
import visualDiff from './visual-diff.ts'
3232
import transpileDiff from './transpile-diff.ts'
33-
import lint from '../test/lint.ts'
33+
import lint from './lint.ts'
3434
import bundle from '../build/webpack.ts'
3535
import clean from '../build/clean.ts'
3636
import build from '../build/babel.ts'

0 commit comments

Comments
 (0)