summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc')
-rw-r--r--cli/tsc/99_main_compiler.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index 2190dda99..43a3c3bcf 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -58,7 +58,8 @@ delete Object.prototype.__proto__;
]);
const unstableMsgSuggestion =
"If not, try changing the 'lib' compiler option to include 'deno.unstable' " +
- 'or add a triple-slash directive to your entrypoint: /// <reference lib="deno.unstable" />';
+ "or add a triple-slash directive to the top of your entrypoint (main file): " +
+ '/// <reference lib="deno.unstable" />';
/**
* @param {unknown} value
@@ -344,7 +345,8 @@ delete Object.prototype.__proto__;
if (msg === "Cannot find name 'Deno'.") {
msg += " Do you need to change your target library? " +
"Try changing the 'lib' compiler option to include 'deno.ns' " +
- 'or add a triple-slash directive to your entrypoint: /// <reference lib="deno.ns" />';
+ "or add a triple-slash directive to the top of your entrypoint " +
+ '(main file): /// <reference lib="deno.ns" />';
}
return msg;
}