{
  "name": "wphelpdesk/bcc-emails",
  "description": "",
  "type": "wordpress-plugin",
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/Watch-The-Dot/library-settings"
    }
  ],
  "require": {
    "php": ">=7.4",
    "watchthedot/wp-settings-page": "dev-main"
  },
  "require-dev": {
    "php-stubs/wordpress-stubs": "*",
    "php-stubs/wordpress-globals": "*",
    "squizlabs/php_codesniffer": "^3.6",
    "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
    "wp-coding-standards/wpcs": "^2.3",
    "sirbrillig/phpcs-variable-analysis": "^2.11",
    "staabm/annotate-pull-request-from-checkstyle": "^1.8"
  },
  "autoload": {},
  "license": "GPLv2-or-later",
  "authors": [
    {
      "name": "Dominic Carrington",
      "email": "dominic@watchthedot.com"
    }
  ],
  "config": {
    "allow-plugins": {
      "dealerdirect/phpcodesniffer-composer-installer": true,
      "phpstan/extension-installer": true
    }
  },
  "scripts": {
    "post-install-cmd": [
      "@prefix-dependencies"
    ],
    "post-update-cmd": [
      "@prefix-dependencies"
    ],
    "prefix-dependencies": [
      "rm -rf php-scoper",
      "rm -rf third-party",
      "@install-php-scoper",
      "php-scoper/vendor/bin/php-scoper add --output-dir=./third-party --force --quiet",
      "@autoload-third-party",
      "cp vendor/composer/autoload_files.php third-party/vendor/",
      "rm -rf php-scoper"
    ],
    "autoload-third-party": [
      "echo '{ \"autoload\": { \"classmap\": [\"\"] } }' > third-party/composer.json",
      "@composer --working-dir=third-party dump-autoload --classmap-authoritative --no-interaction",
      "cp third-party/vendor/composer/autoload_classmap.php third-party/",
      "rm -rf third-party/vendor && rm third-party/composer.json",
      "mkdir -p third-party/vendor/composer && mv third-party/autoload_classmap.php third-party/vendor/composer/"
    ],
    "install-php-scoper": [
      "mkdir php-scoper",
      "@composer --working-dir=php-scoper require humbug/php-scoper"
    ],
    "lint": "phpcs",
    "lint:fix": "phpcbf",
    "docs:sniff": "phpcs --standard=phpcs.docs.xml",
    "docs:sniff:fix": "phpcbf --standard=phpcs.docs.xml"
  }
}
