Skip to content

Commit c512f16

Browse files
authored
Enable verbatimModuleSyntax in tsconfig (#1936)
1 parent d4bc5e3 commit c512f16

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/langium/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ export * from './workspace/index.js';
2323
// Export the Langium Grammar AST definitions in the `GrammarAST` namespace
2424
import * as GrammarAST from './languages/generated/ast.js';
2525
import type { Grammar } from './languages/generated/ast.js';
26-
export { Grammar, GrammarAST };
26+
export type { Grammar };
27+
export { GrammarAST };

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
// Skip type checking of declaration files.
4747
"skipLibCheck": true,
4848
// This setting controls how TypeScript determines whether a file is a script or a module.
49-
"moduleDetection": "force"
49+
"moduleDetection": "force",
50+
// any imports or exports without a type modifier are left around. Anything that uses the type modifier is dropped entirely.
51+
"verbatimModuleSyntax": true
5052
},
5153
"include": [
5254
"**/src/**/*",

0 commit comments

Comments
 (0)