mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
Convert all shared library packages from CommonJS to ESM for consistency with apps/server and modern JavaScript standards. Changes: - Add "type": "module" to package.json for all libs - Update tsconfig.json to use "NodeNext" module/moduleResolution - Add .js extensions to all relative imports Packages migrated: - @automaker/dependency-resolver (already ESM, added .js extension) - @automaker/git-utils (CommonJS → ESM) - @automaker/model-resolver (CommonJS → ESM) - @automaker/platform (CommonJS → ESM) - @automaker/utils (CommonJS → ESM) Benefits: ✅ Consistent module system across all packages ✅ Better tree-shaking and modern bundling support ✅ Native browser support (future-proof) ✅ Fixes E2E CI server startup issues All tests passing: 632/632 server tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
26 lines
588 B
JSON
26 lines
588 B
JSON
{
|
|
"name": "@automaker/utils",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"description": "Shared utility functions for AutoMaker",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"watch": "tsc --watch",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"keywords": ["automaker", "utils"],
|
|
"author": "AutoMaker Team",
|
|
"license": "SEE LICENSE IN LICENSE",
|
|
"dependencies": {
|
|
"@automaker/types": "^1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.10.5",
|
|
"typescript": "^5.7.3",
|
|
"vitest": "^4.0.16"
|
|
}
|
|
}
|