Files
pdfme/package.json
hand-dot 16c9cf9306 feat\!: Convert all packages to ESM-only distribution
BREAKING CHANGE: Remove CommonJS support from all packages

- Add "type": "module" to all package.json files
- Remove CommonJS build outputs and configurations
- Update all imports to use explicit .js extensions
- Simplify build process to single ESM output
- Remove babel-loader, ts-loader, and npm-run-all dependencies
- Update TypeScript configurations for ESM-only builds
- Fix ESM compatibility issues with external dependencies

This change aligns the project with modern JavaScript standards
and significantly simplifies the build and distribution process.

Migration Guide:
- All packages must now be imported using ESM syntax
- Node.js projects must use "type": "module" or .mjs extensions
- CommonJS require() is no longer supported

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 15:25:03 +09:00

76 lines
2.8 KiB
JSON

{
"name": "root",
"version": "0.0.0",
"private": true,
"author": "hand-dot",
"license": "MIT",
"keywords": [
"pdf",
"pdf-generation",
"pdf-designer",
"pdf-viewer",
"typescript",
"react"
],
"description": "TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!",
"homepage": "https://pdfme.com",
"repository": {
"type": "git",
"url": "git@github.com:pdfme/pdfme.git"
},
"bugs": {
"url": "https://github.com/pdfme/pdfme/issues"
},
"workspaces": [
"packages/common",
"packages/pdf-lib",
"packages/converter",
"packages/schemas",
"packages/generator",
"packages/manipulator",
"packages/ui"
],
"scripts": {
"postinstall": "./scripts/link-workspaces.sh",
"clean": "npm run clean:common && npm run clean:pdf-lib && npm run clean:converter && npm run clean:schemas && npm run clean:generator && npm run clean:manipulator && npm run clean:ui",
"clean:common": "npm run -w packages/common clean",
"clean:pdf-lib": "npm run -w packages/pdf-lib clean",
"clean:converter": "npm run -w packages/converter clean",
"clean:schemas": "npm run -w packages/schemas clean",
"clean:generator": "npm run -w packages/generator clean",
"clean:manipulator": "npm run -w packages/manipulator clean",
"clean:ui": "npm run -w packages/ui clean",
"build": "npm run clean && npm run build:pdf-lib && npm run build:common && npm run build:converter && npm run build:schemas && npm run build:generator && npm run build:ui && npm run build:manipulator",
"build:common": "npm run -w packages/common build",
"build:pdf-lib": "npm run -w packages/pdf-lib build",
"build:converter": "npm run -w packages/converter build",
"build:schemas": "npm run -w packages/schemas build",
"build:generator": "npm run -w packages/generator build",
"build:manipulator": "npm run -w packages/manipulator build",
"build:ui": "npm run -w packages/ui build",
"test": "npm run test --workspaces",
"test:ui:update-snapshots": "npm run -w packages/ui test -- -u",
"lint": "npm run lint --workspaces",
"prettier": "npm run prettier --workspaces"
},
"devDependencies": {
"@humanwhocodes/config-array": "^0.13.0",
"@types/jest": "^29.5.14",
"@types/jest-image-snapshot": "^6.4.0",
"@types/node": "^24.0.8",
"@typescript-eslint/eslint-plugin": "^8.35.1",
"@typescript-eslint/parser": "^8.32.0",
"eslint": "^9.30.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.5.1",
"jest": "^29.7.0",
"jest-image-snapshot": "^6.5.1",
"prettier": "^3.6.2",
"rimraf": "^6.0.1",
"ts-jest": "^29.3.4",
"ts-jest-resolver": "^2.0.1",
"ts-prune": "^0.10.3",
"typescript": "^5.8.3"
}
}