mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -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",
|
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 {
|
itest!(es_private_fields {
|
||||||
args: "run --quiet --reload es_private_fields.js",
|
args: "run --quiet --reload es_private_fields.js",
|
||||||
output: "es_private_fields.js.out",
|
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 */
|
/* TypeScript CompilerHost APIs */
|
||||||
|
|
||||||
fileExists(_fileName) {
|
fileExists(fileName) {
|
||||||
return notImplemented();
|
log(`compiler::host.fileExists("${fileName}")`);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
getCanonicalFileName(fileName) {
|
getCanonicalFileName(fileName) {
|
||||||
|
|
|
@ -66,13 +66,14 @@ def eslint():
|
||||||
":!:cli/tests/swc_syntax_error.ts",
|
":!:cli/tests/swc_syntax_error.ts",
|
||||||
":!:std/**/testdata/*",
|
":!:std/**/testdata/*",
|
||||||
":!:std/**/node_modules/*",
|
":!:std/**/node_modules/*",
|
||||||
|
":!:cli/bench/node*.js",
|
||||||
":!:cli/compilers/wasm_wrap.js",
|
":!:cli/compilers/wasm_wrap.js",
|
||||||
|
":!:cli/dts/**",
|
||||||
|
":!:cli/tests/encoding/**",
|
||||||
":!:cli/tests/error_syntax.js",
|
":!:cli/tests/error_syntax.js",
|
||||||
":!:cli/tests/lint/**",
|
":!:cli/tests/lint/**",
|
||||||
":!:cli/tests/encoding/**",
|
":!:cli/tests/tsc/**",
|
||||||
":!:cli/dts/**",
|
|
||||||
":!:cli/tsc/*typescript.js",
|
":!:cli/tsc/*typescript.js",
|
||||||
":!:cli/bench/node*.js",
|
|
||||||
])
|
])
|
||||||
if source_files:
|
if source_files:
|
||||||
max_command_len = 30000
|
max_command_len = 30000
|
||||||
|
|
Loading…
Add table
Reference in a new issue