Skip to content

Commit

Permalink
Customize module names to correspond to exports
Browse files Browse the repository at this point in the history
  • Loading branch information
aabounegm committed Sep 23, 2024
1 parent e21044a commit 34f851b
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 7 deletions.
5 changes: 3 additions & 2 deletions packages/langium/src/generate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
* Copyright 2023 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
******************************************************************************/
*
* @module langium/generate
*/

export * from './generator-node.js';
export type { SourceRegion, TextRegion, TraceRegion, TraceSourceSpec } from './generator-tracing.js';
export * from './node-joiner.js';
export * from './template-node.js';
export { expandToString, expandToStringLF, expandToStringLFWithNL, expandToStringWithNL, normalizeEOL } from './template-string.js';

4 changes: 3 additions & 1 deletion packages/langium/src/grammar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* Copyright 2023 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
******************************************************************************/
*
* @module langium/grammar
*/

// This file contains Langium grammar language internals.
// It is not supposed to be exported with the general `langium` export.
Expand Down
4 changes: 3 additions & 1 deletion packages/langium/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* Copyright 2021 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
******************************************************************************/
*
* @module langium
*/

export * from './default-module.js';
export * from './dependency-injection.js';
Expand Down
4 changes: 3 additions & 1 deletion packages/langium/src/lsp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* Copyright 2021 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
******************************************************************************/
*
* @module langium/lsp
*/

export * from './completion/completion-provider.js';
export * from './completion/follow-element-computation.js';
Expand Down
4 changes: 3 additions & 1 deletion packages/langium/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* Copyright 2022 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
******************************************************************************/
*
* @module langium/node
*/

export * from './node-file-system-provider.js';
export * from './worker-thread-async-parser.js';
4 changes: 3 additions & 1 deletion packages/langium/src/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Copyright 2021 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
******************************************************************************/
*
* @module langium/test
*/

export * from './langium-test.js';
5 changes: 5 additions & 0 deletions packages/langium/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "Langium",
"entryPoints": [
"./src/index.ts",
"./src/generate/index.ts",
Expand All @@ -9,6 +10,10 @@
],
"tsconfig": "tsconfig.src.json",
"out": "./docs",
"navigation": {
"includeFolders": false
},
"includeVersion": true,
"sortEntryPoints": false,
"githubPages": true
}

0 comments on commit 34f851b

Please sign in to comment.