mirror of
https://github.com/pdfme/pdfme.git
synced 2026-05-19 12:15:08 -04:00
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>
85 lines
1.9 KiB
JSON
85 lines
1.9 KiB
JSON
{
|
|
"name": "@pdfme/common",
|
|
"version": "0.0.0",
|
|
"sideEffects": false,
|
|
"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"
|
|
},
|
|
"type": "module",
|
|
"module": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"dev": "node set-version.js && tsc -w",
|
|
"prebuild": "node set-version.js",
|
|
"build": "tsc",
|
|
"clean": "rimraf dist",
|
|
"lint": "eslint --ext .ts src --config eslint.config.mjs",
|
|
"test": "jest",
|
|
"prune": "ts-prune src",
|
|
"prettier": "prettier --write 'src/**/*.ts'"
|
|
},
|
|
"dependencies": {
|
|
"@pdfme/pdf-lib": "*",
|
|
"acorn": "^8.15.0",
|
|
"buffer": "^6.0.3",
|
|
"zod": "^3.25.67"
|
|
},
|
|
"peerDependencies": {
|
|
"antd": "^5.11.2",
|
|
"form-render": "^2.2.20"
|
|
},
|
|
"jest": {
|
|
"preset": "ts-jest/presets/default-esm",
|
|
"resolver": "ts-jest-resolver",
|
|
"extensionsToTreatAsEsm": [".ts"],
|
|
"moduleNameMapper": {
|
|
"^(\\.{1,2}/.*)\\.js$": "$1"
|
|
},
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"ts"
|
|
],
|
|
"transform": {
|
|
"^.+\\.ts?$": [
|
|
"ts-jest",
|
|
{
|
|
"tsconfig": "tsconfig.esm.json",
|
|
"useESM": true
|
|
}
|
|
]
|
|
},
|
|
"testMatch": [
|
|
"**/*.test.ts"
|
|
],
|
|
"testEnvironment": "node"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"devDependencies": {
|
|
"@types/estree": "^1.0.6"
|
|
}
|
|
}
|