{
  "name": "@woocommerce/email-editor",
  "version": "2.1.0",
  "description": "Gutenberg based email editor that is used in WooCommerce emails.",
  "author": "Automattic",
  "license": "GPL-2.0-or-later",
  "keywords": [
    "wordpress",
    "woocommerce",
    "email"
  ],
  "homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/email-editor",
  "repository": {
    "type": "git",
    "url": "https://github.com/woocommerce/woocommerce.git"
  },
  "bugs": {
    "url": "https://github.com/woocommerce/woocommerce/issues"
  },
  "main": "build/index.js",
  "module": "build-module/index.js",
  "types": "build-types",
  "files": [
    "build",
    "build-module",
    "build-style",
    "build-types",
    "assets"
  ],
  "publishConfig": {
    "access": "public"
  },
  "sideEffects": [
    "build-style/**",
    "src/**/*.scss"
  ],
  "lint-staged": {
    "*.{js,jsx,json,ts,tsx,yml,yaml,scss}": "pnpm run format",
    "*.{scss,css}": "pnpm run lint:lang:style",
    "*.{js,jsx,ts,tsx}": "pnpm run lint:lang:js"
  },
  "dependencies": {
    "@wordpress/api-fetch": "7.19.2",
    "@wordpress/base-styles": "5.19.1",
    "@wordpress/block-editor": "14.14.6",
    "@wordpress/block-library": "9.19.6",
    "@wordpress/blocks": "14.8.2",
    "@wordpress/commands": "1.19.4",
    "@wordpress/components": "29.5.4",
    "@wordpress/compose": "7.19.2",
    "@wordpress/core-data": "7.19.6",
    "@wordpress/data": "10.19.2",
    "@wordpress/data-controls": "4.19.2",
    "@wordpress/dom-ready": "4.19.1",
    "@wordpress/editor": "14.19.7",
    "@wordpress/element": "6.19.1",
    "@wordpress/format-library": "5.19.6",
    "@wordpress/global-styles-engine": "^1.3.0",
    "@wordpress/hooks": "4.19.1",
    "@wordpress/html-entities": "4.19.1",
    "@wordpress/i18n": "5.19.1",
    "@wordpress/icons": "10.19.1",
    "@wordpress/interface": "9.4.4",
    "@wordpress/is-shallow-equal": "5.19.1",
    "@wordpress/keyboard-shortcuts": "5.19.2",
    "@wordpress/keycodes": "4.19.1",
    "@wordpress/notices": "5.19.2",
    "@wordpress/plugins": "7.19.4",
    "@wordpress/preferences": "4.19.4",
    "@wordpress/priority-queue": "3.19.1",
    "@wordpress/private-apis": "^1.19.1",
    "@wordpress/rich-text": "7.19.2",
    "@wordpress/url": "4.19.2",
    "clsx": "2.1.x",
    "deepmerge": "^4.3.1",
    "lodash": "^4.17.21",
    "react": "18.3.x",
    "react-dom": "18.3.x"
  },
  "devDependencies": {
    "@testing-library/dom": "^10.4.x",
    "@testing-library/jest-dom": "^6.x.x",
    "@testing-library/react": "^16.x.x",
    "@testing-library/user-event": "13.5.0",
    "@types/history": "^4.7.11",
    "@types/jest": "29.5.x",
    "@types/js-cookie": "^3.0.2",
    "@types/lodash": "^4.14.180",
    "@types/node": "^24.1.0",
    "@types/react": "18.3.x",
    "@types/react-dom": "18.3.x",
    "@types/wordpress__block-editor": "14.21.8",
    "@types/wordpress__block-library": "2.6.3",
    "@types/wordpress__blocks": "12.5.18",
    "@types/wordpress__edit-post": "8.4.2",
    "@wordpress/browserslist-config": "next",
    "@wordpress/prettier-config": "2.17.0",
    "@wordpress/stylelint-config": "^21.0.0",
    "eslint": "^8.55.0",
    "jest": "29.5.x",
    "jest-cli": "29.5.x",
    "jest-environment-jsdom": "29.5.x",
    "prettier": "npm:wp-prettier@^2.8.5",
    "rimraf": "5.0.5",
    "stylelint": "^14.16.1",
    "ts-jest": "29.1.x",
    "ts-loader": "9.5.x",
    "typescript": "5.7.x",
    "wireit": "0.14.12",
    "@woocommerce/eslint-plugin": "2.3.0",
    "@woocommerce/internal-js-tests": "1.1.0",
    "@woocommerce/internal-style-build": "1.0.0",
    "@woocommerce/internal-ts-config": "1.0.0"
  },
  "config": {
    "ci": {
      "lint": {
        "command": "lint",
        "changes": "src/**/*.{js,ts,tsx,scss,css}"
      },
      "tests": [
        {
          "name": "JavaScript",
          "command": "test:js",
          "changes": [
            "webpack.config.js",
            "jest.config.json",
            "jest.setup.ts",
            "tsconfig.json",
            "src/**/*.{js,jsx,ts,tsx}",
            "typings/**/*.ts"
          ],
          "events": [
            "pull_request",
            "push"
          ]
        }
      ]
    }
  },
  "wireit": {
    "build:project:bundle": {
      "command": "webpack",
      "clean": "if-file-deleted",
      "env": {
        "NODE_ENV": {
          "external": true,
          "default": "production"
        }
      },
      "files": [
        "webpack.config.js",
        "src/**/*.scss"
      ],
      "output": [
        "build-style"
      ],
      "dependencies": [
        "dependencyOutputs"
      ]
    },
    "watch:build:project:bundle": {
      "command": "webpack --watch",
      "service": true
    },
    "build:project:cjs": {
      "command": "tsc --project tsconfig-cjs.json --noCheck",
      "clean": "if-file-deleted",
      "files": [
        "tsconfig-cjs.json",
        "src/**/*.{js,jsx,ts,tsx}",
        "typings/**/*.ts"
      ],
      "output": [
        "build"
      ],
      "dependencies": [
        "dependencyOutputs"
      ]
    },
    "watch:build:project:cjs": {
      "command": "tsc --project tsconfig-cjs.json --watch --noCheck",
      "service": true
    },
    "build:project:esm": {
      "command": "tsc --project tsconfig.json",
      "clean": "if-file-deleted",
      "files": [
        "tsconfig.json",
        "src/**/*.{js,jsx,ts,tsx}",
        "typings/**/*.ts"
      ],
      "output": [
        "build-module",
        "build-types"
      ],
      "dependencies": [
        "dependencyOutputs"
      ]
    },
    "watch:build:project:esm": {
      "command": "tsc --project tsconfig.json --watch",
      "service": true
    },
    "dependencyOutputs": {
      "allowUsuallyExcludedPaths": true,
      "files": [
        "package.json",
        "../../../pnpm-lock.yaml",
        "node_modules/@woocommerce/eslint-plugin/configs",
        "node_modules/@woocommerce/eslint-plugin/rules",
        "node_modules/@woocommerce/eslint-plugin/index.js",
        "node_modules/@woocommerce/internal-js-tests/build",
        "node_modules/@woocommerce/internal-js-tests/build-module",
        "node_modules/@woocommerce/internal-js-tests/jest-preset.js",
        "node_modules/@woocommerce/internal-style-build/index.js",
        "node_modules/@woocommerce/internal-style-build/webpack-rtl-plugin.js",
        "node_modules/@woocommerce/internal-style-build/style-asset-plugin.js",
        "node_modules/@woocommerce/internal-style-build/abstracts",
        "node_modules/@woocommerce/internal-ts-config/tsconfig.json",
        "node_modules/@woocommerce/internal-ts-config/tsconfig-cjs.json",
        "node_modules/@woocommerce/internal-ts-config/types"
      ]
    }
  },
  "scripts": {
    "build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'",
    "build:project": "pnpm --if-present '/^build:project:.*$/'",
    "build:project:bundle": "wireit",
    "build:project:cjs": "wireit",
    "build:project:esm": "wireit",
    "changelog": "XDEBUG_MODE=off composer install --quiet && composer exec -- changelogger",
    "update:php": "XDEBUG_MODE=off composer update --quiet",
    "format": "prettier --write 'src/**/*.{js,jsx,json,ts,tsx,yml,yaml,scss}'",
    "format:check": "prettier --check 'src/**/*.{js,jsx,json,ts,tsx,yml,yaml,scss}'",
    "lint": "pnpm --if-present '/^lint:lang:.*$/' && pnpm format:check && pnpm lint:lang:style",
    "lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/' && pnpm format && pnpm lint:fix:lang:style",
    "lint:fix:lang:js": "eslint --ext=js,ts,tsx src --fix",
    "lint:fix:lang:style": "stylelint 'src/**/*.{css,scss}' --fix",
    "lint:lang:js": "eslint --ext=js,ts,tsx src",
    "lint:lang:style": "stylelint 'src/**/*.{css,scss}'",
    "test:js": "jest --config ./jest.config.json --passWithNoTests",
    "watch:build": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel '/^watch:build:project:.*$/'",
    "watch:build:project": "pnpm --if-present run '/^watch:build:project:.*$/'",
    "watch:build:project:bundle": "wireit",
    "watch:build:project:cjs": "wireit",
    "watch:build:project:esm": "wireit"
  }
}