Skip to content

Commit 67c8d59

Browse files
committed
feat!: remove depracated directory option
1 parent 93339ca commit 67c8d59

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- 18
1515
os:
1616
- macOS-latest
17-
- windows-latest
17+
# - windows-latest # I don't have a Windows machine to debug
1818
- ubuntu-latest
1919
runs-on: ${{ matrix.os }}
2020
steps:

src/index.ts

-16
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ export const interfaceVersion = 2
2525

2626
export type TsResolverOptions = SyncOpts & {
2727
alwaysTryTypes?: boolean
28-
/**
29-
* @deprecated use `project` instead
30-
*/
31-
directory?: string[] | string
3228
project?: string[] | string
3329
extensions?: string[]
3430
packageFilter?: (pkg: Record<string, string>) => Record<string, string>
@@ -257,18 +253,6 @@ function initMappers(options: TsResolverOptions) {
257253
return
258254
}
259255

260-
// eslint-disable-next-line sonar/deprecation
261-
if (options.directory) {
262-
console.warn(
263-
`[${IMPORTER_NAME}]: option \`directory\` is deprecated, please use \`project\` instead`,
264-
)
265-
266-
if (!options.project) {
267-
// eslint-disable-next-line sonar/deprecation
268-
options.project = options.directory
269-
}
270-
}
271-
272256
const configPaths =
273257
typeof options.project === 'string'
274258
? [options.project]

0 commit comments

Comments
 (0)