2018-02-13 19:03:53 +00:00
|
|
|
{
|
2019-09-05 15:09:31 +00:00
|
|
|
"name": "@woocommerce/block-library",
|
2024-04-01 17:27:25 +00:00
|
|
|
"private": true,
|
2019-09-05 15:09:31 +00:00
|
|
|
"title": "WooCommerce Blocks",
|
|
|
|
"author": "Automattic",
|
2023-12-05 09:58:14 +00:00
|
|
|
"version": "11.8.0-dev",
|
2019-09-05 15:09:31 +00:00
|
|
|
"description": "WooCommerce blocks for the Gutenberg editor.",
|
2024-04-01 17:27:25 +00:00
|
|
|
"homepage": "https://github.com/woocommerce/woocommerce/plugins/woocommerce-blocks/",
|
2019-09-05 15:09:31 +00:00
|
|
|
"keywords": [
|
|
|
|
"woocommerce",
|
|
|
|
"wordpress",
|
|
|
|
"blocks"
|
|
|
|
],
|
2019-12-11 14:58:49 +00:00
|
|
|
"sideEffects": [
|
|
|
|
"*.css",
|
2019-12-17 17:32:08 +00:00
|
|
|
"*.scss",
|
2020-06-05 12:18:16 +00:00
|
|
|
"./assets/js/atomic/blocks/**",
|
2020-03-27 20:56:48 +00:00
|
|
|
"./assets/js/filters/**",
|
2021-07-22 11:03:00 +00:00
|
|
|
"./assets/js/middleware/**",
|
2024-04-09 02:01:32 +00:00
|
|
|
"./assets/js/types/**",
|
2022-02-01 11:14:16 +00:00
|
|
|
"./assets/js/blocks/checkout/inner-blocks/**/index.tsx",
|
|
|
|
"./assets/js/blocks/checkout/inner-blocks/register-components.ts",
|
2022-04-01 13:45:18 +00:00
|
|
|
"./assets/js/blocks/cart/inner-blocks/**/index.tsx",
|
|
|
|
"./assets/js/blocks/cart/inner-blocks/register-components.ts",
|
2023-09-20 20:31:52 +00:00
|
|
|
"./assets/js/base/components/**/*.{tsx,ts}",
|
2022-04-07 13:47:58 +00:00
|
|
|
"./assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/**/index.tsx",
|
2022-08-15 19:25:53 +00:00
|
|
|
"./assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/register-components.ts",
|
2022-10-07 15:00:19 +00:00
|
|
|
"./assets/js/blocks/cart-checkout-shared/sidebar-notices/index.tsx",
|
2022-12-22 14:35:24 +00:00
|
|
|
"./assets/js/blocks/cart-checkout-shared/view-switcher/index.tsx",
|
2022-10-14 03:25:02 +00:00
|
|
|
"./assets/js/blocks/filter-wrapper/register-components.ts",
|
|
|
|
"./assets/js/blocks/product-query/variations/**.tsx",
|
|
|
|
"./assets/js/blocks/product-query/index.tsx",
|
2023-08-04 11:07:31 +00:00
|
|
|
"./assets/js/blocks/product-query/inspector-controls.tsx",
|
|
|
|
"./assets/js/blocks/product-gallery/**.tsx",
|
|
|
|
"./assets/js/blocks/product-gallery/inner-blocks/**/index.tsx",
|
2023-09-20 20:31:52 +00:00
|
|
|
"./assets/js/templates/revert-button/index.tsx",
|
|
|
|
"./assets/js/settings/blocks/index.ts",
|
2023-11-16 15:03:58 +00:00
|
|
|
"./assets/js/atomic/utils/blocks-registration-manager/index.ts",
|
2023-09-20 20:31:52 +00:00
|
|
|
"./packages/**/*.{tsx,ts,js}"
|
2019-12-11 14:58:49 +00:00
|
|
|
],
|
2019-09-05 15:09:31 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2024-05-16 20:32:41 +00:00
|
|
|
"url": "https://github.com/woocommerce/woocommerce.git"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"license": "GPL-3.0+",
|
|
|
|
"scripts": {
|
2023-12-10 20:44:44 +00:00
|
|
|
"analyze-bundles": "cross-env WP_BUNDLE_ANALYZER=1 pnpm run build",
|
2024-07-08 06:39:39 +00:00
|
|
|
"changelog": "XDEBUG_MODE=off composer install --quiet && composer exec -- changelogger",
|
2024-01-15 22:06:55 +00:00
|
|
|
"build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" '/^build:project:.*$/'",
|
|
|
|
"build:project": "pnpm --if-present '/^build:project:.*$/'",
|
2023-12-10 06:35:11 +00:00
|
|
|
"build:project:bundle": "wireit",
|
2022-02-02 14:56:16 +00:00
|
|
|
"build:check-assets": "rimraf build/* && cross-env ASSET_CHECK=true BABEL_ENV=default NODE_ENV=production webpack",
|
2022-02-02 14:27:46 +00:00
|
|
|
"prebuild:docs": "rimraf docs/extensibility/actions.md & rimraf docs/extensibility/filters.md",
|
2024-04-25 13:03:41 +00:00
|
|
|
"build:docs": "./vendor/bin/wp-hooks-generator --input=src --output=bin/hook-docs/data && node ./bin/hook-docs && pnpm build:docs:block-references",
|
|
|
|
"build:docs:block-references": "node ./bin/gen-block-list-doc.js",
|
2022-04-05 14:22:56 +00:00
|
|
|
"postbuild:docs": "./bin/add-doc-footer.sh",
|
2020-07-07 09:05:06 +00:00
|
|
|
"dev": "rimraf build/* && cross-env BABEL_ENV=default webpack",
|
2020-11-27 20:41:36 +00:00
|
|
|
"labels:dry": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels --dry-run woocommerce/woocommerce-gutenberg-products-block",
|
|
|
|
"labels:sync": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels woocommerce/woocommerce-gutenberg-products-block",
|
2023-12-10 06:35:11 +00:00
|
|
|
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
|
|
|
|
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
|
|
|
|
"lint:fix:lang:css": "pnpm lint:css-fix",
|
|
|
|
"lint:fix:lang:js": "pnpm lint:js-fix",
|
|
|
|
"lint:lang:css": "pnpm lint:css",
|
|
|
|
"lint:lang:js": "pnpm lint:js",
|
2023-12-10 20:44:44 +00:00
|
|
|
"lint:ci": "pnpm run lint:js && pnpm run lint:css",
|
2021-12-03 09:07:51 +00:00
|
|
|
"lint:css": "stylelint '**/*.scss'",
|
|
|
|
"lint:css-fix": "stylelint '**/*.scss' --fix",
|
2021-02-24 01:36:24 +00:00
|
|
|
"lint:js": "wp-scripts lint-js --ext=js,ts,tsx",
|
2023-12-10 20:44:44 +00:00
|
|
|
"lint:js:report": "pnpm run lint:js -- --output-file eslint_report.json --ext=js,ts,tsx --format json",
|
2021-02-24 01:36:24 +00:00
|
|
|
"lint:js-fix": "eslint assets/js --ext=js,jsx,ts,tsx --fix",
|
2022-06-09 12:43:17 +00:00
|
|
|
"lint:md:docs": "wp-scripts lint-md-docs",
|
2023-04-21 20:51:56 +00:00
|
|
|
"pre-commit": "lint-staged",
|
2019-09-05 15:09:31 +00:00
|
|
|
"reformat-files": "prettier --ignore-path .eslintignore --write \"**/*.{js,jsx,json,ts,tsx}\"",
|
2023-04-20 14:46:01 +00:00
|
|
|
"rimraf": "./node_modules/rimraf/bin.js",
|
2023-07-28 15:21:08 +00:00
|
|
|
"start": "rimraf build/* && cross-env BABEL_ENV=default CHECK_CIRCULAR_DEPS=true webpack --watch",
|
2024-10-31 09:12:51 +00:00
|
|
|
"storybook": "pnpm watch:build:storybook",
|
|
|
|
"storybook:build": "pnpm build:storybook",
|
2023-12-10 20:44:44 +00:00
|
|
|
"storybook:deploy": "rimraf ./storybook/dist/* && pnpm run storybook:build && gh-pages -d ./storybook/dist",
|
2024-10-31 09:12:51 +00:00
|
|
|
"build:storybook": "wireit",
|
|
|
|
"watch:build:storybook": "wireit",
|
2024-01-15 22:06:55 +00:00
|
|
|
"test:js": "wp-scripts test-unit-js --config tests/js/jest.config.json",
|
2022-03-09 15:37:36 +00:00
|
|
|
"test:debug": "ndb .",
|
2023-12-15 17:34:29 +00:00
|
|
|
"test:e2e": "sh ./bin/check-env.sh && pnpm playwright test --config=tests/e2e/playwright.config.ts",
|
2024-05-13 12:58:26 +00:00
|
|
|
"test:e2e:block-theme": "pnpm run test:e2e block_theme",
|
|
|
|
"test:e2e:classic-theme": "pnpm run test:e2e classic_theme",
|
|
|
|
"test:e2e:block-theme-with-templates": "pnpm run test:e2e block_theme_with_templates",
|
2023-12-10 20:44:44 +00:00
|
|
|
"test:e2e:jest": "pnpm run wp-env:config && cross-env JEST_PUPPETEER_CONFIG=tests/e2e-jest/config/jest-puppeteer.config.js NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js",
|
|
|
|
"test:e2e:jest:dev": "pnpm run wp-env:config && cross-env JEST_PUPPETEER_CONFIG=tests/e2e-jest/config/jest-puppeteer.config-dev.js NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js",
|
|
|
|
"test:e2e:jest:dev-watch": "pnpm run wp-env:config && cross-env JEST_PUPPETEER_CONFIG=tests/e2e-jest/config/jest-puppeteer.config-dev.js NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js --watch",
|
|
|
|
"test:e2e:jest:update": "pnpm run wp-env:config && cross-env JEST_PUPPETEER_CONFIG=tests/e2e-jest/config/jest-puppeteer.config.js NODE_CONFIG_DIR=tests/e2e-jest/config wp-scripts test-e2e --config tests/e2e-jest/config/jest.config.js --updateSnapshot",
|
2023-12-15 17:34:29 +00:00
|
|
|
"env:start": "pnpm --filter='@woocommerce/block-library' wp-env start && ./tests/e2e/bin/test-env-setup.sh",
|
2023-12-10 20:44:44 +00:00
|
|
|
"env:restart": "pnpm run wp-env clean all && pnpm run wp-env start && ./tests/e2e/bin/test-env-setup.sh",
|
|
|
|
"env:stop": "pnpm run wp-env stop",
|
2020-04-06 09:00:47 +00:00
|
|
|
"test:help": "wp-scripts test-unit-js --help",
|
2024-04-23 11:11:46 +00:00
|
|
|
"test:performance": "sh ./bin/check-env.sh && pnpm playwright test --config=tests/e2e/playwright.performance.config.ts",
|
2020-04-06 09:00:47 +00:00
|
|
|
"test:update": "wp-scripts test-unit-js --updateSnapshot --config tests/js/jest.config.json",
|
2023-12-10 20:44:44 +00:00
|
|
|
"test:watch": "pnpm run test -- --watch",
|
2021-02-24 01:36:24 +00:00
|
|
|
"ts:check": "tsc --build",
|
2022-11-02 10:41:10 +00:00
|
|
|
"ts:log-errors": "npm --silent run ts:check | npx -y @bartekbp/typescript-checkstyle > checkstyle.xml",
|
2020-06-17 20:28:11 +00:00
|
|
|
"wp-env": "wp-env",
|
2023-12-10 06:35:11 +00:00
|
|
|
"wp-env:config": "./bin/wp-env-pre-config.sh",
|
2024-01-15 22:06:55 +00:00
|
|
|
"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:.*$/'",
|
2024-02-22 17:53:58 +00:00
|
|
|
"watch:build:project:bundle": "wireit"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-03-17 21:51:28 +00:00
|
|
|
"@automattic/color-studio": "2.5.0",
|
2023-10-02 16:48:24 +00:00
|
|
|
"@babel/cli": "7.23.0",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@babel/core": "7.23.2",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
2023-07-26 09:58:17 +00:00
|
|
|
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
|
|
|
"@babel/plugin-syntax-jsx": "7.22.5",
|
2020-10-21 13:30:00 +00:00
|
|
|
"@babel/polyfill": "7.12.1",
|
2024-01-18 10:00:57 +00:00
|
|
|
"@babel/preset-react": "7.23.3",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@babel/preset-typescript": "7.23.2",
|
2022-11-02 10:41:10 +00:00
|
|
|
"@bartekbp/typescript-checkstyle": "5.0.0",
|
2024-08-20 07:40:46 +00:00
|
|
|
"@playwright/test": "^1.46.1",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@storybook/addon-a11y": "7.5.2",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@storybook/addon-actions": "^7.6.4",
|
|
|
|
"@storybook/addon-docs": "^7.6.4",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@storybook/addon-essentials": "7.5.2",
|
|
|
|
"@storybook/addon-links": "7.5.2",
|
|
|
|
"@storybook/addon-storysource": "7.5.2",
|
|
|
|
"@storybook/addon-styling-webpack": "^0.0.5",
|
|
|
|
"@storybook/addons": "7.5.2",
|
|
|
|
"@storybook/client-api": "7.5.2",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@storybook/preview-api": "^7.6.4",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@storybook/react": "7.5.2",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@storybook/react-webpack5": "^7.6.4",
|
2023-10-24 11:05:35 +00:00
|
|
|
"@testing-library/dom": "9.3.3",
|
2024-05-15 09:33:36 +00:00
|
|
|
"@testing-library/jest-dom": "6.4.5",
|
|
|
|
"@testing-library/react": "15.0.7",
|
|
|
|
"@testing-library/user-event": "14.5.2",
|
2021-10-29 18:42:18 +00:00
|
|
|
"@types/dinero.js": "1.9.0",
|
2022-09-26 16:16:44 +00:00
|
|
|
"@types/dompurify": "2.3.4",
|
2022-03-23 08:00:13 +00:00
|
|
|
"@types/gtag.js": "0.0.10",
|
2022-07-28 13:51:44 +00:00
|
|
|
"@types/jest": "27.5.2",
|
2022-06-13 09:15:29 +00:00
|
|
|
"@types/jest-environment-puppeteer": "5.0.2",
|
2022-03-02 04:39:06 +00:00
|
|
|
"@types/jquery": "3.5.14",
|
2022-05-02 10:43:45 +00:00
|
|
|
"@types/lodash": "4.14.182",
|
2023-12-10 02:14:26 +00:00
|
|
|
"@types/prop-types": "^15.7.11",
|
2022-05-02 11:49:23 +00:00
|
|
|
"@types/puppeteer": "5.4.6",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@types/react": "^17.0.71",
|
2023-01-10 15:35:29 +00:00
|
|
|
"@types/react-dom": "18.0.10",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@types/react-transition-group": "^4.4.10",
|
2022-05-04 04:02:30 +00:00
|
|
|
"@types/wordpress__block-editor": "6.0.6",
|
2023-03-03 11:42:50 +00:00
|
|
|
"@types/wordpress__blocks": "11.0.9",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@types/wordpress__components": "^23.0.10",
|
2022-08-12 14:23:08 +00:00
|
|
|
"@types/wordpress__core-data": "^2.4.5",
|
2023-02-14 13:21:48 +00:00
|
|
|
"@types/wordpress__data": "^6.0.2",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@types/wordpress__data-controls": "2.2.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@types/wordpress__editor": "^13.6.7",
|
|
|
|
"@types/wordpress__notices": "^3.27.6",
|
|
|
|
"@types/wordpress__wordcount": "^2.4.5",
|
2023-03-27 17:13:38 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "5.56.0",
|
2023-12-06 13:28:48 +00:00
|
|
|
"@typescript-eslint/parser": "5.56.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@woocommerce/data": "workspace:*",
|
|
|
|
"@woocommerce/e2e-utils": "workspace:*",
|
|
|
|
"@woocommerce/eslint-plugin": "workspace:*",
|
2020-06-05 16:49:07 +00:00
|
|
|
"@woocommerce/woocommerce-rest-api": "1.0.1",
|
2023-01-11 10:14:51 +00:00
|
|
|
"@wordpress/api-fetch": "6.21.0",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@wordpress/babel-preset-default": "7.28.0",
|
2023-11-01 20:42:52 +00:00
|
|
|
"@wordpress/base-styles": "4.35.0",
|
2022-03-10 10:00:23 +00:00
|
|
|
"@wordpress/block-editor": "8.2.0",
|
2022-01-21 12:09:07 +00:00
|
|
|
"@wordpress/blocks": "11.1.5",
|
2023-07-26 09:58:17 +00:00
|
|
|
"@wordpress/browserslist-config": "5.21.0",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@wordpress/components": "19.17.0",
|
2023-12-10 20:24:20 +00:00
|
|
|
"@wordpress/core-data": "5.5.0",
|
|
|
|
"@wordpress/data": "6.15.0",
|
2021-12-07 15:47:50 +00:00
|
|
|
"@wordpress/data-controls": "2.2.7",
|
2023-12-10 20:24:20 +00:00
|
|
|
"@wordpress/date": "4.44.0",
|
2024-10-31 16:48:54 +00:00
|
|
|
"@wordpress/editor": "wp-6.7",
|
2023-11-03 11:32:19 +00:00
|
|
|
"@wordpress/dependency-extraction-webpack-plugin": "4.28.0",
|
2023-03-06 20:50:15 +00:00
|
|
|
"@wordpress/dom": "3.27.0",
|
2023-12-10 20:24:20 +00:00
|
|
|
"@wordpress/dom-ready": "3.27.0",
|
2023-09-08 20:34:19 +00:00
|
|
|
"@wordpress/e2e-test-utils": "10.12.0",
|
2024-06-19 16:31:43 +00:00
|
|
|
"@wordpress/e2e-test-utils-playwright": "wp-6.6",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@wordpress/e2e-tests": "^4.9.2",
|
2023-11-03 12:28:53 +00:00
|
|
|
"@wordpress/element": "5.22.0",
|
2024-10-23 09:13:20 +00:00
|
|
|
"@wordpress/env": "10.10.x",
|
2023-01-03 21:08:45 +00:00
|
|
|
"@wordpress/html-entities": "3.24.0",
|
2023-11-03 14:23:03 +00:00
|
|
|
"@wordpress/i18n": "4.45.0",
|
2023-01-11 11:38:26 +00:00
|
|
|
"@wordpress/is-shallow-equal": "4.24.0",
|
2023-12-10 22:11:32 +00:00
|
|
|
"@wordpress/postcss-plugins-preset": "1.6.0",
|
|
|
|
"@wordpress/postcss-themes": "1.0.5",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/prettier-config": "1.4.0",
|
2023-07-26 09:58:17 +00:00
|
|
|
"@wordpress/scripts": "24.6.0",
|
2024-03-26 13:41:34 +00:00
|
|
|
"@wordpress/stylelint-config": "^21.36.0",
|
2024-07-08 12:02:31 +00:00
|
|
|
"allure-playwright": "^2.9.2",
|
2023-07-26 09:58:17 +00:00
|
|
|
"autoprefixer": "10.4.14",
|
2023-12-09 15:12:20 +00:00
|
|
|
"babel-jest": "^29.7.0",
|
2022-03-28 13:00:20 +00:00
|
|
|
"babel-plugin-explicit-exports-references": "^1.0.2",
|
2021-12-08 03:25:48 +00:00
|
|
|
"babel-plugin-react-docgen": "4.2.1",
|
2019-09-05 15:09:31 +00:00
|
|
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
2024-08-15 12:48:44 +00:00
|
|
|
"buildkite-test-collector": "^1.7.1",
|
2021-08-04 02:38:44 +00:00
|
|
|
"chalk": "4.1.2",
|
2021-04-18 21:29:11 +00:00
|
|
|
"circular-dependency-plugin": "5.2.2",
|
2023-09-20 20:31:52 +00:00
|
|
|
"copy-webpack-plugin": "11.0.0",
|
2022-09-05 10:17:12 +00:00
|
|
|
"core-js": "3.25.0",
|
2020-02-24 12:52:24 +00:00
|
|
|
"create-file-webpack": "1.0.2",
|
2022-06-09 08:26:23 +00:00
|
|
|
"cross-env": "7.0.3",
|
2023-11-02 13:01:42 +00:00
|
|
|
"css-loader": "^6.8.1",
|
2022-07-19 07:38:57 +00:00
|
|
|
"cssnano": "5.1.12",
|
2019-10-28 13:53:09 +00:00
|
|
|
"deep-freeze": "0.0.1",
|
2023-11-02 13:01:42 +00:00
|
|
|
"dotenv": "^16.3.1",
|
2024-04-10 16:54:12 +00:00
|
|
|
"eslint-import-resolver-typescript": "3.6.1",
|
2021-11-09 14:27:57 +00:00
|
|
|
"eslint-import-resolver-webpack": "0.13.2",
|
2023-09-25 20:39:28 +00:00
|
|
|
"eslint-plugin-import": "2.28.1",
|
2024-04-26 09:39:11 +00:00
|
|
|
"eslint-plugin-playwright": "1.6.0",
|
2023-10-30 14:23:40 +00:00
|
|
|
"eslint-plugin-rulesdir": "^0.2.2",
|
2023-11-02 13:01:42 +00:00
|
|
|
"eslint-plugin-storybook": "^0.6.15",
|
2020-01-24 12:00:11 +00:00
|
|
|
"eslint-plugin-woocommerce": "file:bin/eslint-plugin-woocommerce",
|
2022-01-21 12:09:07 +00:00
|
|
|
"eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
|
2022-07-19 07:38:57 +00:00
|
|
|
"gh-pages": "4.0.0",
|
2024-03-25 18:05:09 +00:00
|
|
|
"github-label-sync": "^2.3.1",
|
2023-03-07 19:19:18 +00:00
|
|
|
"glob": "7.2.3",
|
2022-07-19 07:38:57 +00:00
|
|
|
"glob-promise": "4.2.2",
|
2024-02-16 12:00:36 +00:00
|
|
|
"handlebars": "^4.7.8",
|
2019-09-05 15:09:31 +00:00
|
|
|
"ignore-loader": "0.1.2",
|
2024-10-16 07:55:36 +00:00
|
|
|
"jest": "29.7.x",
|
|
|
|
"jest-circus": "29.7.x",
|
2022-07-19 07:38:57 +00:00
|
|
|
"jest-environment-puppeteer": "6.1.1",
|
2020-05-21 15:10:11 +00:00
|
|
|
"jest-fetch-mock": "3.0.3",
|
2022-07-19 07:38:57 +00:00
|
|
|
"jest-html-reporters": "3.0.10",
|
2021-10-20 03:04:30 +00:00
|
|
|
"json2md": "1.12.0",
|
2023-03-26 20:28:02 +00:00
|
|
|
"lint-staged": "13.2.0",
|
2021-05-12 12:04:44 +00:00
|
|
|
"lodash": "4.17.21",
|
2022-07-19 07:38:57 +00:00
|
|
|
"markdown-it": "13.0.1",
|
2023-09-20 20:31:52 +00:00
|
|
|
"mini-css-extract-plugin": "2.7.6",
|
2023-12-10 22:11:32 +00:00
|
|
|
"postcss": "8.4.32",
|
|
|
|
"postcss-color-function": "4.1.0",
|
|
|
|
"postcss-loader": "4.3.0",
|
2024-04-04 16:48:54 +00:00
|
|
|
"prettier": "npm:wp-prettier@^2.8.5",
|
2020-07-07 09:05:06 +00:00
|
|
|
"progress-bar-webpack-plugin": "2.1.0",
|
2023-09-20 20:31:52 +00:00
|
|
|
"puppeteer": "17.1.3",
|
2022-07-19 07:38:57 +00:00
|
|
|
"react-docgen": "5.4.3",
|
2023-09-20 20:31:52 +00:00
|
|
|
"react-docgen-typescript-plugin": "^1.0.5",
|
2024-05-15 09:33:36 +00:00
|
|
|
"react-test-renderer": "18.3.1",
|
2023-12-10 20:24:20 +00:00
|
|
|
"redux": "4.2.1",
|
2020-07-23 13:42:26 +00:00
|
|
|
"request-promise": "4.2.6",
|
2023-10-24 14:05:43 +00:00
|
|
|
"rimraf": "5.0.5",
|
2023-12-09 15:12:20 +00:00
|
|
|
"rtlcss": "^4.1.1",
|
2024-04-04 16:48:54 +00:00
|
|
|
"sass-loader": "^10.5.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"storybook": "^7.6.4",
|
2023-11-02 13:01:42 +00:00
|
|
|
"storybook-addon-react-docgen": "1.2.44",
|
2023-12-10 20:24:20 +00:00
|
|
|
"stylelint": "^14.16.1",
|
2023-09-20 20:31:52 +00:00
|
|
|
"terser-webpack-plugin": "5.3.6",
|
2024-10-16 07:55:36 +00:00
|
|
|
"typescript": "5.3.x",
|
2021-12-07 15:47:50 +00:00
|
|
|
"utility-types": "3.10.0",
|
2024-04-29 03:50:47 +00:00
|
|
|
"webpack": "5.91.0",
|
2023-09-20 20:31:52 +00:00
|
|
|
"webpack-bundle-analyzer": "4.7.0",
|
|
|
|
"webpack-cli": "5.1.4",
|
2024-03-25 18:05:09 +00:00
|
|
|
"wireit": "0.14.3",
|
2024-07-12 04:40:07 +00:00
|
|
|
"wp-types": "3.63.0"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
Update the monorepo to node v20 (#45148)
* test bumping node to v18
* remove community contributor condition from review assignment
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai
* bump node to v20
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, packages/php/remote-specs-validation, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai
* Add changefile(s) from automation for the following project(s): @woocommerce/tracks, @woocommerce/onboarding, @woocommerce/number, @woocommerce/notices, @woocommerce/navigation, @woocommerce/internal-js-tests, @woocommerce/extend-cart-checkout-block, @woocommerce/expression-evaluation, @woocommerce/explat, @woocommerce/experimental, @woocommerce/eslint-plugin, @woocommerce/dependency-extraction-webpack-plugin, @woocommerce/date, @woocommerce/data, @woocommerce/customer-effort-score, @woocommerce/currency, @woocommerce/csv-export, @woocommerce/create-woo-extension, @woocommerce/create-product-editor-block, @woocommerce/components, @woocommerce/api, @woocommerce/admin-e2e-tests, woocommerce-blocks, woocommerce-beta-tester, woocommerce, woo-ai
* add blocks eslint-plugin-woocommerce to project workspace
* add e2e-environment as a peer to e2e-utils
* restore version on @woocommerce/api
* update lock file
* move e2e-environment to devDependencies
* add undefined location check to admin js test
---------
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-04-12 16:49:55 +00:00
|
|
|
"node": "^20.11.1",
|
2024-08-22 00:34:42 +00:00
|
|
|
"pnpm": "9.1.3"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2024-09-16 13:03:20 +00:00
|
|
|
"@ariakit/react": "^0.4.5",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@dnd-kit/core": "^6.1.0",
|
|
|
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
|
|
"@dnd-kit/sortable": "^7.0.2",
|
|
|
|
"@dnd-kit/utilities": "^3.2.2",
|
2023-11-02 13:01:42 +00:00
|
|
|
"@emotion/styled": "^11.11.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@preact/signals": "^1.2.2",
|
|
|
|
"@woocommerce/tracks": "workspace:^",
|
2022-09-06 09:23:05 +00:00
|
|
|
"@wordpress/autop": "3.16.0",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/compose": "5.5.0",
|
2023-09-04 19:53:04 +00:00
|
|
|
"@wordpress/deprecated": "3.41.0",
|
2023-11-16 17:40:53 +00:00
|
|
|
"@wordpress/icons": "9.36.0",
|
2022-12-13 15:25:23 +00:00
|
|
|
"@wordpress/notices": "3.12.0",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/plugins": "4.10.0",
|
2022-02-02 02:17:49 +00:00
|
|
|
"@wordpress/primitives": "3.0.4",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/server-side-render": "3.10.0",
|
2023-12-09 15:12:20 +00:00
|
|
|
"@wordpress/style-engine": "^1.30.0",
|
2022-07-19 07:38:57 +00:00
|
|
|
"@wordpress/url": "3.13.0",
|
2023-12-08 14:28:16 +00:00
|
|
|
"@wordpress/wordcount": "3.47.0",
|
2023-04-28 10:29:45 +00:00
|
|
|
"change-case": "^4.1.2",
|
2024-07-15 15:22:42 +00:00
|
|
|
"check-password-strength": "^2.0.10",
|
2024-05-31 03:49:36 +00:00
|
|
|
"clsx": "^2.1.1",
|
2022-07-19 07:38:57 +00:00
|
|
|
"compare-versions": "4.1.3",
|
2022-01-19 03:53:40 +00:00
|
|
|
"config": "3.3.7",
|
2024-04-10 15:14:04 +00:00
|
|
|
"dataloader": "2.2.2",
|
2023-08-10 14:02:33 +00:00
|
|
|
"deepsignal": "1.3.6",
|
2021-10-29 18:42:18 +00:00
|
|
|
"dinero.js": "1.9.1",
|
2023-12-09 15:12:20 +00:00
|
|
|
"dompurify": "^2.4.7",
|
2021-09-22 04:00:47 +00:00
|
|
|
"downshift": "6.1.7",
|
2023-04-28 10:29:45 +00:00
|
|
|
"fast-deep-equal": "^3.1.3",
|
|
|
|
"fast-sort": "^3.4.0",
|
2022-10-13 11:27:54 +00:00
|
|
|
"html-react-parser": "3.0.4",
|
2024-09-16 09:22:38 +00:00
|
|
|
"postcode-validator": "3.9.2",
|
2023-12-09 15:12:20 +00:00
|
|
|
"preact": "^10.19.3",
|
2023-12-10 02:14:26 +00:00
|
|
|
"prop-types": "^15.8.1",
|
2022-05-12 15:52:03 +00:00
|
|
|
"react-number-format": "4.9.3",
|
2023-04-05 12:43:03 +00:00
|
|
|
"react-transition-group": "^4.4.5",
|
2023-06-16 10:46:03 +00:00
|
|
|
"request": "2.88.2",
|
2019-11-15 14:41:23 +00:00
|
|
|
"trim-html": "0.1.9",
|
2023-07-27 15:10:43 +00:00
|
|
|
"use-debounce": "9.0.4",
|
2023-10-09 11:49:09 +00:00
|
|
|
"usehooks-ts": "^2.9.1",
|
2024-05-16 09:46:24 +00:00
|
|
|
"wordpress-components": "npm:@wordpress/components@14.2.0",
|
|
|
|
"wordpress-components-slotfill": "npm:@wordpress/components@wp-6.5"
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
2022-03-10 10:00:23 +00:00
|
|
|
"peerDependencies": {
|
2024-10-16 07:55:36 +00:00
|
|
|
"react": "18.3.x",
|
|
|
|
"react-dom": "18.3.x"
|
2022-03-10 10:00:23 +00:00
|
|
|
},
|
2022-03-23 07:41:43 +00:00
|
|
|
"optionalDependencies": {
|
|
|
|
"ndb": "1.1.5"
|
|
|
|
},
|
2019-09-05 15:09:31 +00:00
|
|
|
"lint-staged": {
|
|
|
|
"*.scss": [
|
2023-12-10 20:44:44 +00:00
|
|
|
"pnpm run lint:css"
|
2019-09-05 15:09:31 +00:00
|
|
|
],
|
2021-02-24 01:36:24 +00:00
|
|
|
"*.{js,ts,tsx}": [
|
2019-09-05 15:09:31 +00:00
|
|
|
"prettier --write",
|
2023-12-10 20:44:44 +00:00
|
|
|
"pnpm run lint:js"
|
2019-09-05 15:09:31 +00:00
|
|
|
],
|
|
|
|
"*.php": [
|
|
|
|
"php -d display_errors=1 -l",
|
|
|
|
"composer run-script phpcs"
|
2022-08-24 13:26:14 +00:00
|
|
|
],
|
|
|
|
"*.md": [
|
2023-12-10 20:44:44 +00:00
|
|
|
"pnpm run lint:md:docs"
|
2019-09-05 15:09:31 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"files": [
|
2023-12-12 00:21:35 +00:00
|
|
|
"build",
|
|
|
|
"blocks.ini"
|
2023-12-10 06:35:11 +00:00
|
|
|
],
|
2024-01-13 04:32:14 +00:00
|
|
|
"config": {
|
|
|
|
"ci": {
|
|
|
|
"lint": {
|
|
|
|
"command": "lint",
|
2024-01-15 20:30:54 +00:00
|
|
|
"changes": [
|
2024-02-08 21:48:03 +00:00
|
|
|
"assets/**/*.{js,ts,tsx,scss}",
|
|
|
|
"packages/**/*.{js,ts,tsx,scss}",
|
|
|
|
"tests/**/*.{js,ts,tsx,scss}"
|
2024-01-15 20:30:54 +00:00
|
|
|
]
|
2024-01-13 04:32:14 +00:00
|
|
|
},
|
|
|
|
"tests": [
|
|
|
|
{
|
|
|
|
"name": "JavaScript",
|
|
|
|
"command": "test:js",
|
|
|
|
"changes": [
|
2024-07-03 15:09:43 +00:00
|
|
|
".wp-env.json",
|
2024-01-13 04:32:14 +00:00
|
|
|
"webpack.config.js",
|
|
|
|
"babel.config.js",
|
|
|
|
"tsconfig.json",
|
2024-01-15 20:30:54 +00:00
|
|
|
"assets/**/*.{js,ts,tsx,scss}",
|
2024-05-19 06:57:55 +00:00
|
|
|
"packages/**/*.{js,ts,tsx,scss}",
|
|
|
|
"tests/js/**/*.{js,ts,tsx,scss,json}",
|
|
|
|
"tests/utils/**/.{js,ts,tsx,scss,json}"
|
2024-01-13 04:32:14 +00:00
|
|
|
],
|
2024-05-22 18:04:44 +00:00
|
|
|
"cascade": "test:js",
|
|
|
|
"events": [
|
|
|
|
"pull_request",
|
|
|
|
"push"
|
|
|
|
]
|
2024-01-13 04:32:14 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-12-10 06:35:11 +00:00
|
|
|
"wireit": {
|
|
|
|
"build:project:bundle": {
|
|
|
|
"command": "webpack",
|
2023-12-12 20:43:48 +00:00
|
|
|
"clean": "if-file-deleted",
|
2023-12-10 06:35:11 +00:00
|
|
|
"env": {
|
2023-12-10 20:44:44 +00:00
|
|
|
"NODE_ENV": {
|
2024-01-22 18:13:45 +00:00
|
|
|
"external": true,
|
|
|
|
"default": "production"
|
2023-12-10 20:44:44 +00:00
|
|
|
},
|
|
|
|
"BABEL_ENV": {
|
2024-01-22 18:13:45 +00:00
|
|
|
"external": true,
|
|
|
|
"default": "default"
|
2023-12-10 20:44:44 +00:00
|
|
|
}
|
2023-12-10 06:35:11 +00:00
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"webpack.config.js",
|
|
|
|
"bin/webpack-*.js",
|
|
|
|
"tsconfig.json",
|
|
|
|
"tsconfig.base.json",
|
|
|
|
"babel.config.js",
|
2023-12-10 20:24:20 +00:00
|
|
|
"assets",
|
|
|
|
"packages"
|
2023-12-10 06:35:11 +00:00
|
|
|
],
|
|
|
|
"output": [
|
2023-12-10 20:32:29 +00:00
|
|
|
"build",
|
|
|
|
"blocks.ini"
|
2023-12-10 06:35:11 +00:00
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"dependencyOutputs"
|
|
|
|
]
|
|
|
|
},
|
2024-10-31 09:12:51 +00:00
|
|
|
"build:storybook": {
|
2024-10-21 20:14:55 +00:00
|
|
|
"command": "storybook build -c ./storybook -o ./storybook/dist",
|
|
|
|
"env": {
|
|
|
|
"BABEL_ENV": "development"
|
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"storybook/webpack.config.js",
|
|
|
|
"bin/webpack-*.js",
|
|
|
|
"storybook/main.js",
|
|
|
|
"storybook/preview.js",
|
|
|
|
"storybook/style.scss"
|
|
|
|
],
|
|
|
|
"output": [
|
|
|
|
"storybook/dist"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"dependencyOutputs"
|
|
|
|
]
|
|
|
|
},
|
2024-01-15 22:06:55 +00:00
|
|
|
"watch:build:project:bundle": {
|
|
|
|
"command": "webpack --watch",
|
|
|
|
"service": true
|
2023-12-10 06:35:11 +00:00
|
|
|
},
|
2024-10-31 09:12:51 +00:00
|
|
|
"watch:build:storybook": {
|
2024-10-21 20:14:55 +00:00
|
|
|
"command": "storybook dev -c ./storybook -p 6006 --ci",
|
|
|
|
"service": true
|
|
|
|
},
|
2023-12-10 06:35:11 +00:00
|
|
|
"dependencyOutputs": {
|
|
|
|
"allowUsuallyExcludedPaths": true,
|
|
|
|
"files": [
|
|
|
|
"node_modules/@woocommerce/eslint-plugin/configs",
|
|
|
|
"node_modules/@woocommerce/eslint-plugin/rules",
|
|
|
|
"node_modules/@woocommerce/eslint-plugin/index.js",
|
2023-12-12 00:21:35 +00:00
|
|
|
"node_modules/@woocommerce/data/build",
|
|
|
|
"node_modules/@woocommerce/data/build-module",
|
|
|
|
"node_modules/@woocommerce/data/build-types",
|
|
|
|
"node_modules/@woocommerce/tracks/build",
|
|
|
|
"node_modules/@woocommerce/tracks/build-module",
|
|
|
|
"node_modules/@woocommerce/tracks/build-types",
|
|
|
|
"package.json"
|
2023-12-10 06:35:11 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2020-06-17 13:10:46 +00:00
|
|
|
}
|