{ "name": "gutenberg", "version": "24.5.0-rc.1", "private": true, "description": "A new WordPress editor experience.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", "keywords": [ "WordPress", "editor" ], "homepage": "https://github.com/WordPress/gutenberg/", "repository": "git+https://github.com/WordPress/gutenberg.git", "bugs": { "url": "https://github.com/WordPress/gutenberg/issues" }, "engines": { "node": ">=24.18.0", "npm": ">=11.18.0" }, "devEngines": { "runtime": { "name": "node", "version": ">=24.18.0" }, "packageManager": { "name": "npm", "version": ">=11.18.0", "onFail": "error" } }, "wpPlugin": { "name": "gutenberg", "scriptGlobal": "wp", "packageNamespace": "wordpress", "handlePrefix": "wp", "pages": [ { "id": "font-library", "capability": "edit_theme_options" }, "options-connectors", { "id": "dashboard", "init": [ "@wordpress/dashboard-init" ], "experimental": true }, { "id": "experiments", "experimental": true }, { "id": "guidelines", "experimental": true }, { "id": "media-editor", "init": [ "@wordpress/edit-site-init" ], "capability": "upload_files", "experimental": true }, { "id": "site-editor-v2", "init": [ "@wordpress/edit-site-init" ], "capability": "edit_theme_options", "experimental": true }, { "id": "theme-preview", "capability": "switch_themes", "experimental": true } ] }, "config": { "IS_GUTENBERG_PLUGIN": true }, "devDependencies": { "@playwright/test": "^1.65.0", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@wordpress/env": "file:./packages/env", "@wordpress/eslint-tools": "file:./tools/eslint", "@wordpress/monorepo-tools": "file:./tools/monorepo", "@wordpress/release-tools": "file:./tools/release", "@wordpress/scripts": "file:./packages/scripts", "@wordpress/stylelint-tools": "file:./tools/stylelint", "concurrently": "^9.2.1", "cross-env": "^7.0.3", "eslint": "^10.0.0", "husky": "^7.0.0", "lerna": "^10.1.1", "lint-staged": "^16.4.0", "prettier": "npm:wp-prettier@^3.9.6", "stylelint": "^17.14.1", "syncpack": "^15.3.1" }, "overrides": { "@y/websocket-server": { "yjs": "npm:@y/y@^14.0.0-rc.7" }, "eslint-plugin-import": { "eslint": "^10.0.0" }, "eslint-plugin-jsx-a11y": { "eslint": "^10.0.0" }, "eslint-plugin-react": { "eslint": "^10.0.0" } }, "scripts": { "agents:setup": "npm run --workspace @wordpress/agent-tools setup --", "browse": "npm run browse --workspace @wordpress/e2e-tests-playwright --", "build": "npm run --workspace @wordpress/build-scripts build:all --", "build:plugin-zip": "npm run --workspace @wordpress/release-tools build-plugin-zip --", "check:type-declarations": "npm run --workspace @wordpress/build-scripts check-type-declarations --", "clean:package-types": "npm run --workspace @wordpress/build-scripts clean:package-types --", "clean:packages": "npm run --workspace @wordpress/build-scripts clean:packages --", "dev": "npm run --workspace @wordpress/build-scripts dev --", "distclean": "git clean --force -d -X", "docs:api-ref": "npm run --workspace @wordpress/docs-tools docs:api-ref --", "docs:blocks": "npm run --workspace @wordpress/docs-tools docs:blocks --", "docs:blocks-detail": "npm run --workspace @wordpress/docs-tools docs:blocks-detail --", "docs:build": "npm run docs:components && npm run docs:gen && npm run docs:blocks && npm run docs:blocks-detail && npm run docs:api-ref && npm run docs:theme-ref", "docs:check-api-docs-unstaged": "npm run --workspace @wordpress/docs-tools docs:check-api-docs-unstaged --", "docs:components": "npm run --workspace @wordpress/docs-tools docs:components --", "docs:gen": "npm run --workspace @wordpress/docs-tools docs:gen --", "docs:theme-ref": "npm run --workspace @wordpress/docs-tools docs:theme-ref --", "env": "wp-env", "fixtures:clean": "npm run --workspace @wordpress/integration-tests fixtures:clean --", "fixtures:generate": "cross-env GENERATE_MISSING_FIXTURES=y npm run test:unit -- test/integration/full-content/ && npm run format test/integration/fixtures/blocks/*.json", "fixtures:regenerate": "npm run fixtures:clean && npm run fixtures:generate", "format": "wp-scripts format", "preformat:php": "npm run other:update-packages:php", "format:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script format", "prelint:js": "npm run --if-present --workspaces prelint:js", "lint": "concurrently \"npm run lint:lockfile\" \"npm run lint:tsconfig\" \"npm run lint:js\" \"npm run lint:pkg-json\" \"npm run lint:deps\" \"npm run lint:peer-deps\" \"npm run lint:css\"", "lint:css": "wp-scripts lint-style --suppress-location=tools/stylelint/stylelint-suppressions.json \"**/*.{css,pcss,scss}\"", "lint:css:fix": "npm run lint:css -- --fix", "lint:css:update-suppressions": "npm run lint:css -- --suppress && wp-scripts format tools/stylelint/stylelint-suppressions.json", "lint:deps": "syncpack lint", "lint:deps:fix": "syncpack fix", "lint:js": "node ./tools/eslint/lint-js.cjs --concurrency=auto", "lint:js:fix": "npm run lint:js -- --fix", "lint:js:prune-suppressions": "npm run lint:js -- --prune-suppressions", "lint:lockfile": "npm run --workspace @wordpress/validation-tools validate-package-lock --", "lint:package-contents": "npm run --if-present --workspaces lint:package-contents", "lint:peer-deps": "npm run --workspace @wordpress/validation-tools check-peer-dependencies --", "lint:peer-ranges": "npm run --workspace @wordpress/validation-tools check-peer-version-ranges --", "lint:tsconfig": "npm run --workspace @wordpress/validation-tools validate-tsconfig --", "lint:changelogs": "npm run --workspace @wordpress/validation-tools validate-changelogs --", "lint:md:docs": "wp-scripts lint-md-docs", "prelint:php": "npm run other:update-packages:php", "lint:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script lint", "lint:pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'", "lint:published-deps": "npm run --workspace @wordpress/validation-tools dependency-audit --", "other:changelog": "npm exec --no release-cli -- changelog", "other:check-licenses": "concurrently \"npm run --workspace @wordpress/validation-tools check-licenses --\" \"wp-scripts check-licenses --dev\"", "preother:check-local-changes": "npm run docs:build && npm run --workspace @wordpress/theme build", "other:check-local-changes": "npm run --workspace @wordpress/validation-tools check-local-changes --", "other:cherry-pick": "npm run --workspace @wordpress/release-tools cherry-pick --", "other:generate-php-sync-issue": "npm run --workspace @wordpress/release-tools generate-php-sync-issue --", "other:update-packages:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer update --no-interaction", "postinstall": "npm run agents:setup -- --if-safe", "prepare": "husky install", "prepublishOnly": "npm run build", "rtc:http": "node ./test/e2e/bin/rtc-dev.mjs --mode=http", "rtc:ws": "node ./test/e2e/bin/rtc-dev.mjs --mode=websockets", "rtc:ws:slow": "cross-env RTC_WS_DELAY=50 npm run rtc:ws", "start": "npm run dev", "prestorybook:build": "npm run build", "storybook:build": "npm run --workspace @wordpress/storybook storybook:build", "storybook:dev": "npm run dev -- --on-ready=\"npm run --workspace @wordpress/storybook storybook:dev\"", "storybook:e2e:dev": "npm run dev -- --on-ready=\"npm run --workspace @wordpress/storybook-playwright storybook:dev\"", "storybook:e2e:build": "npm run --workspace @wordpress/storybook-playwright storybook:build", "storybook:manifest-snapshot": "npm run --workspace @wordpress/storybook manifest-snapshot", "test": "npm run lint && npm run test:unit", "test:create-block": "npm run --workspace @wordpress/validation-tools test-create-block --", "test:e2e": "npm exec --no --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.config.ts --wp-env-config=../../.wp-env.test.json", "test:e2e:debug": "npm exec --no --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.config.ts --wp-env-config=../../.wp-env.test.json --ui", "test:e2e:playwright": "npm run test:e2e", "test:e2e:playwright:debug": "npm run test:e2e:debug", "test:e2e:rtc-websocket": "npm exec --no --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.rtc-websocket.config.ts --wp-env-config=../../.wp-env.test.json", "test:e2e:rtc-websocket:debug": "npm exec --no --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-e2e --config playwright.rtc-websocket.config.ts --wp-env-config=../../.wp-env.test.json --ui", "test:e2e:storybook": "npm exec --no --workspace @wordpress/storybook-playwright -- playwright test --config playwright.config.ts", "test:e2e:trunk": "npm run --workspace @wordpress/e2e-tests-playwright test:e2e:trunk --", "test:e2e:watch": "npm run test:e2e -- --watch", "test:performance": "npm exec --no --workspace @wordpress/performance-tests -- wp-scripts test-e2e --config playwright.config.ts", "test:performance:debug": "npm exec --no --workspace @wordpress/performance-tests -- wp-scripts test-e2e --config playwright.config.ts --debug", "test:php": "npm run lint:php && npm run test:unit:php", "test:php:watch": "wp-env --config .wp-env.test.json run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script test:watch", "test:unit": "npm run --workspace @wordpress/unit-tests test:unit --", "test:unit:conventions": "npm run --workspace @wordpress/unit-tests test:unit:conventions", "test:unit:vitest": "npm run --workspace @wordpress/unit-tests test:unit:vitest --", "test:unit:vitest:shuffled": "npm run --workspace @wordpress/unit-tests test:unit:vitest:shuffled --", "test:unit:vitest:update": "npm run --workspace @wordpress/unit-tests test:unit:vitest:update --", "test:unit:vitest:watch": "npm run --workspace @wordpress/unit-tests test:unit:vitest:watch --", "test:unit:routing": "npm run --workspace @wordpress/unit-tests test:unit:routing --", "test:unit:date": "npm run --workspace @wordpress/unit-tests test:unit:date", "test:unit:debug": "npm run --workspace @wordpress/unit-tests test:unit:debug --", "test:unit:profile": "npm run --workspace @wordpress/unit-tests test:unit:profile --", "test:unit:php:setup": "wp-env --config .wp-env.test.json start", "test:unit:php:setup:debug": "wp-env --config .wp-env.test.json start --xdebug", "test:unit:php:base": "wp-env --config .wp-env.test.json run --env-cwd='wp-content/plugins/gutenberg' wordpress vendor/bin/phpunit -c phpunit.xml.dist --verbose", "test:unit:php": "npm run test:unit:php:setup && npm run test:unit:php:base", "test:unit:php:debug": "npm run test:unit:php:setup:debug && npm run test:unit:php:base", "test:unit:php:multisite:base": "wp-env --config .wp-env.test.json run --env-cwd='wp-content/plugins/gutenberg' wordpress vendor/bin/phpunit -c phpunit/multisite.xml --verbose", "test:unit:php:multisite": "npm run test:unit:php:setup && npm run test:unit:php:multisite:base", "test:unit:php:multisite:debug": "npm run test:unit:php:setup:debug && npm run test:unit:php:multisite:base", "test:unit:update": "npm run --workspace @wordpress/unit-tests test:unit:vitest:update --", "test:unit:watch": "npm run --workspace @wordpress/unit-tests test:unit:watch --", "test:agent-evals": "npm --prefix test/ai-development run eval --", "pretypecheck": "npm run --workspace @wordpress/build-scripts generate-worker-placeholders --", "typecheck": "npm run --workspace @wordpress/build-scripts typecheck --", "typecheck:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script phpstan --", "typecheck:php:default": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script phpstan:default --", "typecheck:php:strict": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script phpstan:strict --", "typecheck:php:baselines": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script phpstan:baselines --", "typecheck:php:fix": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script phpstan:fix --", "typecheck:php:fix:strict": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script phpstan:fix:strict --", "wp-env": "wp-env", "wp-env-test": "wp-env --config .wp-env.test.json", "test:unit:consumers": "npm run --workspace @wordpress/validation-tools test-vitest-consumers --" }, "workspaces": [ "packages/*", "routes/*", "storybook", "test/*", "tools/*", "widgets/*", "!test/ai-development" ], "allowScripts": { "@parcel/watcher": false, "@swc/core": false, "core-js": false, "core-js-pure": false, "esbuild": false, "fs-ext-extra-prebuilt": false, "fsevents": false, "nx": false, "unrs-resolver": false } }