mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
parent
68fd7a927b
commit
751bb45a0a
9 changed files with 25 additions and 5 deletions
1
cli/tests/fix_tsc_file_exists.out
Normal file
1
cli/tests/fix_tsc_file_exists.out
Normal file
|
@ -0,0 +1 @@
|
|||
hello
|
|
@ -2378,6 +2378,11 @@ itest!(fix_js_imports {
|
|||
output: "fix_js_imports.ts.out",
|
||||
});
|
||||
|
||||
itest!(fix_tsc_file_exists {
|
||||
args: "run --quiet --reload tsc/test.js",
|
||||
output: "fix_tsc_file_exists.out",
|
||||
});
|
||||
|
||||
itest!(es_private_fields {
|
||||
args: "run --quiet --reload es_private_fields.js",
|
||||
output: "es_private_fields.js.out",
|
||||
|
|
2
cli/tests/tsc/a.js
Normal file
2
cli/tests/tsc/a.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
import { v4 } from "./d.ts";
|
||||
export function a() {}
|
3
cli/tests/tsc/d.ts
Normal file
3
cli/tests/tsc/d.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function v4() {
|
||||
return "hello";
|
||||
}
|
2
cli/tests/tsc/node_modules/b.js
generated
vendored
Normal file
2
cli/tests/tsc/node_modules/b.js
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
import c from "./c.js";
|
||||
export { c };
|
1
cli/tests/tsc/node_modules/c.js
generated
vendored
Normal file
1
cli/tests/tsc/node_modules/c.js
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export default function c() {}
|
4
cli/tests/tsc/test.js
Normal file
4
cli/tests/tsc/test.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { a } from "./a.js";
|
||||
import { c } from "./node_modules/b.js";
|
||||
|
||||
console.log("hello");
|
|
@ -278,8 +278,9 @@ delete Object.prototype.__proto__;
|
|||
|
||||
/* TypeScript CompilerHost APIs */
|
||||
|
||||
fileExists(_fileName) {
|
||||
return notImplemented();
|
||||
fileExists(fileName) {
|
||||
log(`compiler::host.fileExists("${fileName}")`);
|
||||
return false;
|
||||
}
|
||||
|
||||
getCanonicalFileName(fileName) {
|
||||
|
|
|
@ -66,13 +66,14 @@ def eslint():
|
|||
":!:cli/tests/swc_syntax_error.ts",
|
||||
":!:std/**/testdata/*",
|
||||
":!:std/**/node_modules/*",
|
||||
":!:cli/bench/node*.js",
|
||||
":!:cli/compilers/wasm_wrap.js",
|
||||
":!:cli/dts/**",
|
||||
":!:cli/tests/encoding/**",
|
||||
":!:cli/tests/error_syntax.js",
|
||||
":!:cli/tests/lint/**",
|
||||
":!:cli/tests/encoding/**",
|
||||
":!:cli/dts/**",
|
||||
":!:cli/tests/tsc/**",
|
||||
":!:cli/tsc/*typescript.js",
|
||||
":!:cli/bench/node*.js",
|
||||
])
|
||||
if source_files:
|
||||
max_command_len = 30000
|
||||
|
|
Loading…
Reference in a new issue