Skip to content

Commit

Permalink
Fix up moonrepo fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Dec 4, 2024
1 parent 69d602a commit 382c909
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
3 changes: 0 additions & 3 deletions packages/knip/fixtures/plugins/moonrepo/apps/a/moon.yml

This file was deleted.

3 changes: 0 additions & 3 deletions packages/knip/fixtures/plugins/moonrepo/libs/b/moon.yml

This file was deleted.

6 changes: 6 additions & 0 deletions packages/knip/fixtures/plugins/moonrepo/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$schema: 'https://moonrepo.dev/schemas/project.json'
tasks:
lint.readme:
command: 'vite-node $workspaceRoot/tools/linters/lint-readme.ts -- $projectRoot'
start.prod:
command: 'vitest ./server/server.ts'
4 changes: 2 additions & 2 deletions packages/knip/test/plugins/moonrepo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ test('Find dependencies with the moonrepo plugin', async () => {
assert(issues.binaries['.moon/tasks.yml']['ls-lint']);
assert(issues.binaries['.moon/tasks/typescript.yml']['tsc']);
assert(issues.binaries['.moon/tasks/typescript.yml']['eslint']);
assert(issues.binaries['libs/b/moon.yml']['vitest']);
assert(issues.binaries['apps/a/moon.yml']['vite-node']);
assert(issues.binaries['moon.yml']['vite-node']);
assert(issues.binaries['moon.yml']['vitest']);

assert(issues.devDependencies['package.json']['@moonrepo/cli']);
assert(issues.devDependencies['package.json']['vite-node']);
Expand Down

0 comments on commit 382c909

Please sign in to comment.