mirror of
https://github.com/hanzoai/ts-node.git
synced 2026-10-30 19:36:25 +00:00
* increase formatting print-width to 120; 80 hurts legibility of TS too much * apply formatting * fix
14 lines
453 B
TypeScript
14 lines
453 B
TypeScript
import { foo } from './foo';
|
|
import { bar } from './bar';
|
|
import { baz } from './baz';
|
|
import { biff } from './biff';
|
|
import { libfoo } from 'libfoo';
|
|
|
|
// Test import builtin modules
|
|
import { readFileSync } from 'fs';
|
|
if (typeof readFileSync !== 'function') throw new Error('failed to import builtin module');
|
|
|
|
if (typeof module !== 'undefined') throw new Error('module should not exist in ESM');
|
|
|
|
console.log(`${foo} ${bar} ${baz} ${biff} ${libfoo}`);
|