package.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "name": "@capacitor/camera",
  3. "version": "7.0.1",
  4. "description": "The Camera API provides the ability to take a photo with the camera or choose an existing one from the photo album.",
  5. "main": "dist/plugin.cjs.js",
  6. "module": "dist/esm/index.js",
  7. "types": "dist/esm/index.d.ts",
  8. "unpkg": "dist/plugin.js",
  9. "files": [
  10. "android/src/main/",
  11. "android/build.gradle",
  12. "dist/",
  13. "ios/Sources",
  14. "ios/Tests",
  15. "Package.swift",
  16. "CapacitorCamera.podspec"
  17. ],
  18. "author": "Ionic <hi@ionicframework.com>",
  19. "license": "MIT",
  20. "repository": {
  21. "type": "git",
  22. "url": "git+https://github.com/ionic-team/capacitor-plugins.git"
  23. },
  24. "bugs": {
  25. "url": "https://github.com/ionic-team/capacitor-plugins/issues"
  26. },
  27. "keywords": [
  28. "capacitor",
  29. "plugin",
  30. "native"
  31. ],
  32. "scripts": {
  33. "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
  34. "verify:ios": "xcodebuild build -scheme CapacitorCamera -destination generic/platform=iOS",
  35. "verify:android": "cd android && ./gradlew clean build test && cd ..",
  36. "verify:web": "npm run build",
  37. "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
  38. "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
  39. "eslint": "eslint . --ext ts",
  40. "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
  41. "swiftlint": "node-swiftlint",
  42. "docgen": "docgen --api CameraPlugin --output-readme README.md --output-json dist/docs.json",
  43. "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
  44. "clean": "rimraf ./dist",
  45. "watch": "tsc --watch",
  46. "prepublishOnly": "npm run build",
  47. "publish:cocoapod": "pod trunk push ./CapacitorCamera.podspec --allow-warnings"
  48. },
  49. "devDependencies": {
  50. "@capacitor/android": "next",
  51. "@capacitor/core": "next",
  52. "@capacitor/docgen": "0.2.2",
  53. "@capacitor/ios": "next",
  54. "@ionic/eslint-config": "^0.4.0",
  55. "@ionic/prettier-config": "~1.0.1",
  56. "@ionic/swiftlint-config": "^1.1.2",
  57. "eslint": "^8.57.0",
  58. "prettier": "~2.3.0",
  59. "prettier-plugin-java": "~1.0.2",
  60. "rimraf": "^6.0.1",
  61. "rollup": "^4.26.0",
  62. "swiftlint": "^1.0.1",
  63. "typescript": "~4.1.5"
  64. },
  65. "peerDependencies": {
  66. "@capacitor/core": ">=7.0.0"
  67. },
  68. "prettier": "@ionic/prettier-config",
  69. "swiftlint": "@ionic/swiftlint-config",
  70. "eslintConfig": {
  71. "extends": "@ionic/eslint-config/recommended"
  72. },
  73. "capacitor": {
  74. "ios": {
  75. "src": "ios"
  76. },
  77. "android": {
  78. "src": "android"
  79. }
  80. },
  81. "publishConfig": {
  82. "access": "public"
  83. },
  84. "gitHead": "927f549a995118acd8e5735835300c4c3cbf3de7"
  85. }