Files
pdfme/packages/ui/package.json
Kyohei Fukuda 807b92080d Uncaught TypeError: Designer is not a constructor #413 (#415)
* Add umd to ui

* Update pdfjs-dist version

* Fix test
2024-01-27 15:41:49 +09:00

115 lines
3.2 KiB
JSON

{
"name": "@pdfme/ui",
"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"
},
"main": "dist/index.umd.js",
"module": "dist/index.es.js",
"types": "dist/types/index.d.ts",
"scripts": {
"dev": "npm-run-all --parallel devBuild:watch devBuildType:watch",
"devBuild:watch": "esbuild src/index.ts --bundle --outfile=dist/index.es.js --format=esm --watch",
"devBuildType:watch": "tsc --emitDeclarationOnly --watch",
"build": "vite build && tsc --emitDeclarationOnly",
"clean": "rimraf dist",
"lint": "eslint --ext .ts,.tsx src",
"test": "jest",
"prune": "ts-prune src",
"prettier": "prettier --write 'src/**/*.{ts,tsx}'"
},
"dependencies": {
"@ant-design/icons": "^5.2.6",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^7.0.2",
"@scena/react-guides": "^0.16.0",
"antd": "^5.9.4",
"form-render": "^2.2.16",
"hotkeys-js": "^3.8.7",
"pdfjs-dist": "^3.11.174",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-moveable": "^0.30.3",
"react-selecto": "^1.12.0"
},
"devDependencies": {
"@pdfme/common": "file:../common",
"@pdfme/schemas": "file:../schemas",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@types/react": "^17.0.52",
"@types/react-dom": "^17.0.18",
"@vitejs/plugin-react": "^4.2.0",
"css-loader": "^6.8.1",
"csstype": "^3.1.2",
"esbuild": "^0.19.5",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"jest-canvas-mock": "^2.3.1",
"process": "^0.11.10",
"vite": "^5.0.0",
"vite-plugin-css-injected-by-js": "^3.3.0",
"vite-tsconfig-paths": "^4.2.1"
},
"peerDependencies": {
"@pdfme/common": "latest",
"@pdfme/schemas": "latest"
},
"jest": {
"setupFiles": [
"jest-canvas-mock"
],
"setupFilesAfterEnv": [
"./__tests__/test-helpers.js"
],
"moduleNameMapper": {
"\\.(png|css)$": "<rootDir>/__mocks__/assetsTransformer.js",
"^antd/es/": "antd/lib/",
"^form-render/es/": "form-render/lib/",
"^rc-picker/es/": "rc-picker/lib/",
"^lodash-es$": "lodash",
"^pdfjs-dist/legacy/build/pdf.js$": "<rootDir>/__mocks__/pdfjs-dist.js",
"^pdfjs-dist/legacy/build/pdf.worker.entry.js$": "<rootDir>/__mocks__/pdfjs-dist.js"
},
"resolver": "ts-jest-resolver",
"moduleFileExtensions": [
"js",
"ts",
"tsx"
],
"transform": {
"^.+\\.ts$": "ts-jest",
"^.+\\.tsx$": "ts-jest"
},
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.json"
}
},
"testMatch": [
"**/*.test.ts",
"**/*.test.tsx"
]
},
"publishConfig": {
"access": "public"
}
}