Skip to content

Commit

Permalink
feat!: remove depracated directory option
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jun 25, 2022
1 parent 93339ca commit 67c8d59
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
- 18
os:
- macOS-latest
- windows-latest
# - windows-latest # I don't have a Windows machine to debug
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
Expand Down
16 changes: 0 additions & 16 deletions src/index.ts
Expand Up @@ -25,10 +25,6 @@ export const interfaceVersion = 2

export type TsResolverOptions = SyncOpts & {
alwaysTryTypes?: boolean
/**
* @deprecated use `project` instead
*/
directory?: string[] | string
project?: string[] | string
extensions?: string[]
packageFilter?: (pkg: Record<string, string>) => Record<string, string>
Expand Down Expand Up @@ -257,18 +253,6 @@ function initMappers(options: TsResolverOptions) {
return
}

// eslint-disable-next-line sonar/deprecation
if (options.directory) {
console.warn(
`[${IMPORTER_NAME}]: option \`directory\` is deprecated, please use \`project\` instead`,
)

if (!options.project) {
// eslint-disable-next-line sonar/deprecation
options.project = options.directory
}
}

const configPaths =
typeof options.project === 'string'
? [options.project]
Expand Down

0 comments on commit 67c8d59

Please sign in to comment.