mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-06 08:23:19 +08:00
- workspace-linked untyped dists register before the tsc gate and take the node_modules-JS island treatment (errors suppressed, out of userFiles) - bare '.' and '..' specifiers resolve as relative directory imports (corpus 2386, coverage fixture dot-parent, SEMANTICS 362) - TS default imports of supported builtins pass under the project's adopted interop knobs (corpus 2387) - benign-cycle admission accepts d.ts-rooted callable arguments — promisify(fs.readFile) at a cycle member's top level (SEMANTICS 363) - --npm-static auto probes runtime JS from the importing file's realm, not the entry's (nested-realm fixture)
6 lines
146 B
JavaScript
6 lines
146 B
JavaScript
export default function shouty(text) {
|
|
let out = "";
|
|
for (const ch of text) out += ch === " " ? "_" : ch.toUpperCase();
|
|
return out + "!";
|
|
}
|