Skip to content

Commit 3b9e9d6

Browse files
Merge pull request #12 from push-based/feature/esm-migration
feat(): migration to esm
2 parents d4b77fb + 0e9ae2b commit 3b9e9d6

File tree

143 files changed

+811
-4761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+811
-4761
lines changed

CONTRIBUTING.MD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ This is an Nx monorepo with the following structure:
7373
│ ├── minimal-repo/ # Test fixtures and examples
7474
│ └── shared/ # Shared libraries
7575
│ ├── angular-ast-utils/ # Angular AST parsing
76-
│ ├── angular-cli-utils/ # Angular CLI utilities
7776
│ ├── ds-component-coverage/ # Design system analysis
7877
│ ├── models/ # Core types and schemas
7978
│ ├── styles-ast-utils/ # CSS/SCSS AST parsing

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A Model Context Protocol (MCP) server that provides Angular project analysis and
2424

2525
### Prerequisites
2626

27-
- Node.js (version 18 or higher)
27+
- Node.js (version 18 or higher) with ESM support
2828

2929
### Installation & Setup
3030

@@ -108,7 +108,7 @@ const dsComponents = [
108108
}
109109
];
110110

111-
module.exports = dsComponents;
111+
export default dsComponents;
112112
```
113113

114114
### Example Project Structure

docs/architecture-internal-design.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ Validation is handled via **Zod** in `angular-mcp-server-options.schema.ts`.
110110
models (types & schemas)
111111
├─ utils
112112
├─ styles-ast-utils
113-
├─ angular-cli-utils
114113
└─ angular-ast-utils
115114
└─ ds-component-coverage (top-level plugin)
116115
```

jest.preset.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

jest.preset.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import nxPreset from '@nx/jest/preset';
2+
3+
export default { ...nxPreset };

package-lock.json

Lines changed: 54 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@push-based/source",
33
"version": "0.0.0",
4+
"type": "module",
45
"license": "MIT",
56
"scripts": {},
67
"private": true,
@@ -61,12 +62,11 @@
6162
"@angular-devkit/schematics": "~19.2.0",
6263
"@angular/cli": "~19.2.0",
6364
"@angular/compiler": "~19.2.0",
64-
"@code-pushup/core": "^0.69.0",
65-
"@code-pushup/eslint-plugin": "^0.69.0",
66-
"@code-pushup/models": "^0.69.0",
67-
"@code-pushup/utils": "^0.69.0",
65+
"@code-pushup/core": "^0.75.0",
66+
"@code-pushup/eslint-plugin": "^0.75.0",
67+
"@code-pushup/models": "^0.75.0",
68+
"@code-pushup/utils": "^0.75.0",
6869
"@modelcontextprotocol/sdk": "^1.12.1",
69-
"@push-based/angular-cli-utils": "^0.0.1",
7070
"@push-based/ds-component-coverage": "^0.0.1",
7171
"@push-based/models": "^0.0.1",
7272
"@push-based/utils": "^0.0.1",

packages/angular-mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@push-based/angular-mcp-server",
33
"version": "0.0.1",
44
"private": true,
5-
"type": "commonjs",
5+
"type": "module",
66
"main": "./dist/index.js",
77
"module": "./dist/index.js",
88
"types": "./dist/index.d.ts",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './lib/angular-mcp-server';
1+
export * from './lib/angular-mcp-server.js';

packages/angular-mcp-server/src/lib/angular-mcp-server.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ import {
1111
ListResourcesResult,
1212
ListToolsRequestSchema,
1313
} from '@modelcontextprotocol/sdk/types.js';
14-
import { TOOLS } from './tools/tools';
15-
import { toolNotFound } from './tools/utils';
14+
import { TOOLS } from './tools/tools.js';
15+
import { toolNotFound } from './tools/utils.js';
1616
import * as fs from 'node:fs';
1717
import * as path from 'node:path';
1818
import {
1919
AngularMcpServerOptionsSchema,
2020
AngularMcpServerOptions,
21-
} from './validation/angular-mcp-server-options.schema';
22-
import { validateAngularMcpServerFilesExist } from './validation/file-existence';
23-
import { validateDeprecatedCssClassesFile } from './validation/ds-components-file.validation';
21+
} from './validation/angular-mcp-server-options.schema.js';
22+
import { validateAngularMcpServerFilesExist } from './validation/file-existence.js';
23+
import { validateDeprecatedCssClassesFile } from './validation/ds-components-file.validation.js';
2424

2525
export class AngularMcpServerWrapper {
2626
private readonly mcpServer: McpServer;

0 commit comments

Comments
 (0)