mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix(npm): handle directory resolution when resolving declaration files (#16706)
Also fixes resolving specifiers like `./something.generated` in declaration files. Closes #16695
This commit is contained in:
parent
7ab08130a0
commit
a57134de38
7 changed files with 88 additions and 12 deletions
|
@ -4,3 +4,7 @@ export class Class1 extends Class2 {
|
|||
|
||||
export class Class2 extends Class1 {
|
||||
}
|
||||
|
||||
// these should be fine though
|
||||
export { subDir } from "./sub_dir";
|
||||
export { otherDir } from "./other_dir";
|
||||
|
|
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/other_dir.d.ts
vendored
Normal file
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/other_dir.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export const otherDir: 2;
|
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/other_dir/index.js
vendored
Normal file
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/other_dir/index.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
module.exports.otherDir = 2;
|
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/sub_dir/index.d.ts
vendored
Normal file
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/sub_dir/index.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export * from './lib';
|
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/sub_dir/index.js
vendored
Normal file
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/sub_dir/index.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
module.exports.subDir = 1;
|
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/sub_dir/lib.d.ts
vendored
Normal file
1
cli/tests/testdata/npm/registry/@denotest/check-error/1.0.0/sub_dir/lib.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export const subDir: 1;
|
Loading…
Add table
Add a link
Reference in a new issue