Skip to content

Commit

Permalink
build(scanner): change module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohansebas committed Jul 11, 2024
1 parent 5e6fa56 commit 1a9ded6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion config/tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"noEmit": true,
"inlineSources": false,
"isolatedModules": true,
"moduleResolution": "node",
"moduleDetection": "force",
"moduleResolution": "Bundler",
"noUnusedLocals": false,
"noUnusedParameters": false,
"preserveWatchOutput": true,
Expand Down
4 changes: 3 additions & 1 deletion packages/cli/src/commands/scan.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import path from 'node:path'

import { generateReport, scanFolder } from '@rapidbuild/scanner'
import { generateReport } from '@rapidbuild/scanner'
import { scanFolder } from '@rapidbuild/scanner/helpers'

import ora from 'ora'
import { cyan, green } from 'picocolors'

Expand Down
3 changes: 2 additions & 1 deletion packages/scanner/src/helpers/transpile-packages.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { ConfigReport, Project } from '@/types'
import { getFileOfPath } from '@/utils/splitPath'

import { getLanguages, getPackageManager } from '..'
import { getFormatters } from './get-formatter'
import { getLanguages } from './get-languages'
import { getLinters } from './get-linter'
import { getPackageManager } from './get-package-manager'
import { resolveFiles } from './resolve-files'

export const transpileMainPackage = async (files: string[], config: ConfigReport) => {
Expand Down
2 changes: 0 additions & 2 deletions packages/scanner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ export async function generateReport(files: string[], config?: ConfigReport): Pr

return configProject
}

export * from './helpers'

0 comments on commit 1a9ded6

Please sign in to comment.