File: nodeNextModuleKindCaching1.ts

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (35 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/// <reference path="../fourslash.ts"/>

// @Filename: tsconfig.json
////{
////    "compilerOptions": {
////      "rootDir": "src",
////      "outDir": "dist",
////      "target": "ES2020",
////      "module": "NodeNext",
////      "strict": true
////    },
////    "include": ["src\\**\\*.ts"]
////}

// @Filename: package.json
////{
////    "type": "module",
////    "private": true
////}

// @Filename: src/index.ts
////// The line below should show a "Relative import paths need explicit file
////// extensions..." error in VS Code, but it doesn't. The error is only picked up
////// by `tsc` which seems to properly infer the module type.
////import { helloWorld } from './example'
/////**/
////helloWorld()

// @Filename: src/example.ts
////export function helloWorld() {
////    console.log('Hello, world!')
////}

goTo.marker();
verify.numberOfErrorsInCurrentFile(1);