From 1a03a64248eb8fe810e87818494f8b032653feb3 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Mon, 25 Mar 2024 15:05:09 -0300 Subject: [PATCH] Sync husky, @playwright/test, github-label-sync (#45551) * bump husky, remove remnants from blocks * Add changefile(s) from automation for the following project(s): woocommerce-blocks * add @playwright/test to syncpack * Add changefile(s) from automation for the following project(s): woocommerce-blocks * update pnpm-lock.yaml * add github-label-sync to syncpack * Add changefile(s) from automation for the following project(s): woocommerce-blocks --------- Co-authored-by: Ron Rennick Co-authored-by: github-actions --- .syncpackrc | 40 ++++++++- package.json | 2 +- plugins/woocommerce-blocks/.husky/pre-commit | 4 - plugins/woocommerce-blocks/package.json | 7 +- .../changelog/45551-fix-43967-43960-43890 | 4 + pnpm-lock.yaml | 87 +++---------------- 6 files changed, 60 insertions(+), 84 deletions(-) delete mode 100755 plugins/woocommerce-blocks/.husky/pre-commit create mode 100644 plugins/woocommerce/changelog/45551-fix-43967-43960-43890 diff --git a/.syncpackrc b/.syncpackrc index d90108b8dc7..f8c10e62628 100644 --- a/.syncpackrc +++ b/.syncpackrc @@ -30,7 +30,27 @@ ] }, { - "dependencies": [ "**" ], + "dependencies": [ + "@actions/*", + "@automattic/*", + "@babel/*", + "@bartekbp/*", + "@octokit/*", + "@storybook/*", + "@testing-library/*", + "@types/*", + "@typescript-eslint/*", + "@woocommerce/*", + "@wordpress/*", + "babel*", + "eslint*", + "glob*", + "jest*", + "postcss*", + "react*", + "typescript", + "webpack*" + ], "packages": [ "@woocommerce/block-library" ], @@ -100,6 +120,24 @@ ], "pinVersion": "^8.55.0" }, + { + "dependencies": [ + "github-label-sync" + ], + "packages": [ + "**" + ], + "pinVersion": "^2.3.1" + }, + { + "dependencies": [ + "@playwright/test" + ], + "packages": [ + "**" + ], + "pinVersion": "^1.40.1" + }, { "dependencies": [ "@wordpress/babel-plugin-import-jsx-pragma", diff --git a/package.json b/package.json index d209af277cc..21e7055ee4a 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "core-js": "^3.34.0", "css-loader": "^6.8.1", "glob": "^7.2.3", - "husky": "^7.0.4", + "husky": "^9.0.11", "jest": "~27.5.1", "lint-staged": "^12.5.0", "mkdirp": "^1.0.4", diff --git a/plugins/woocommerce-blocks/.husky/pre-commit b/plugins/woocommerce-blocks/.husky/pre-commit deleted file mode 100755 index d4a43dd13e8..00000000000 --- a/plugins/woocommerce-blocks/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npm run pre-commit diff --git a/plugins/woocommerce-blocks/package.json b/plugins/woocommerce-blocks/package.json index bc6bdcefad2..a5b6b0ed0eb 100644 --- a/plugins/woocommerce-blocks/package.json +++ b/plugins/woocommerce-blocks/package.json @@ -124,7 +124,7 @@ "@bartekbp/typescript-checkstyle": "5.0.0", "@octokit/action": "5.0.2", "@octokit/graphql": "5.0.5", - "@playwright/test": "1.38.1", + "@playwright/test": "^1.40.1", "@storybook/addon-a11y": "7.5.2", "@storybook/addon-actions": "^7.6.4", "@storybook/addon-docs": "^7.6.4", @@ -228,11 +228,10 @@ "follow-redirects": "1.15.1", "fs-extra": "11.1.1", "gh-pages": "4.0.0", - "github-label-sync": "2.2.0", + "github-label-sync": "^2.3.1", "glob": "7.2.3", "glob-promise": "4.2.2", "handlebars": "^4.7.8", - "husky": "8.0.3", "ignore-loader": "0.1.2", "jest": "^29.7.0", "jest-circus": "27.5.1", @@ -270,7 +269,7 @@ "webpack": "5.88.2", "webpack-bundle-analyzer": "4.7.0", "webpack-cli": "5.1.4", - "wireit": "^0.14.3", + "wireit": "0.14.3", "wp-types": "3.63.0", "zenhub-api": "0.2.0" }, diff --git a/plugins/woocommerce/changelog/45551-fix-43967-43960-43890 b/plugins/woocommerce/changelog/45551-fix-43967-43960-43890 new file mode 100644 index 00000000000..8dd5cbb4cb7 --- /dev/null +++ b/plugins/woocommerce/changelog/45551-fix-43967-43960-43890 @@ -0,0 +1,4 @@ +Significance: patch +Type: dev +Comment: Update `husky`, add @playwright/test and github-label-sync to syncpack + diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e803a7d2047..fe594bb30c2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,8 +72,8 @@ importers: specifier: ^7.2.3 version: 7.2.3 husky: - specifier: ^7.0.4 - version: 7.0.4 + specifier: ^9.0.11 + version: 9.0.11 jest: specifier: ~27.5.1 version: 27.5.1(ts-node@10.9.2) @@ -4022,8 +4022,8 @@ importers: specifier: 5.0.5 version: 5.0.5 '@playwright/test': - specifier: 1.38.1 - version: 1.38.1 + specifier: ^1.40.1 + version: 1.40.1 '@storybook/addon-a11y': specifier: 7.5.2 version: 7.5.2(@types/react-dom@18.0.10)(@types/react@17.0.71)(react-dom@17.0.2)(react@17.0.2) @@ -4209,7 +4209,7 @@ importers: version: 10.12.0(jest@29.7.0)(puppeteer-core@21.6.0) '@wordpress/e2e-test-utils-playwright': specifier: wp-6.4 - version: 0.10.13(@playwright/test@1.38.1)(typescript@5.3.2) + version: 0.10.13(@playwright/test@1.40.1)(typescript@5.3.2) '@wordpress/e2e-tests': specifier: ^4.9.2 version: 4.9.2(@swc/core@1.3.100)(esbuild@0.18.20)(eslint-import-resolver-typescript@3.2.4)(eslint-import-resolver-webpack@0.13.2)(jest@29.7.0)(puppeteer-core@21.6.0)(puppeteer@17.1.3)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) @@ -4334,8 +4334,8 @@ importers: specifier: 4.0.0 version: 4.0.0 github-label-sync: - specifier: 2.2.0 - version: 2.2.0 + specifier: ^2.3.1 + version: 2.3.1 glob: specifier: 7.2.3 version: 7.2.3 @@ -4345,9 +4345,6 @@ importers: handlebars: specifier: ^4.7.8 version: 4.7.8 - husky: - specifier: 8.0.3 - version: 8.0.3 ignore-loader: specifier: 0.1.2 version: 0.1.2 @@ -4460,7 +4457,7 @@ importers: specifier: 5.1.4 version: 5.1.4(webpack-bundle-analyzer@4.7.0)(webpack@5.88.2) wireit: - specifier: ^0.14.3 + specifier: 0.14.3 version: 0.14.3 wp-types: specifier: 3.63.0 @@ -12750,14 +12747,6 @@ packages: tslib: 2.6.2 dev: true - /@playwright/test@1.38.1: - resolution: {integrity: sha512-NqRp8XMwj3AK+zKLbZShl0r/9wKgzqI/527bkptKXomtuo+dOjU9NdMASQ8DNC9z9zLOMbG53T4eihYr3XR+BQ==} - engines: {node: '>=16'} - hasBin: true - dependencies: - playwright: 1.38.1 - dev: true - /@playwright/test@1.40.1: resolution: {integrity: sha512-EaaawMTOeEItCRvfmkI9v6rBkF1svM8wjl/YPRrg2N2Wmp+4qJYkWtJsbew1szfKKDm6fPLy4YAanBhIlf9dWw==} engines: {node: '>=16'} @@ -14767,7 +14756,6 @@ packages: /@sindresorhus/is@5.6.0: resolution: {integrity: sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==} engines: {node: '>=14.16'} - dev: false /@sinonjs/commons@1.8.6: resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==} @@ -18564,7 +18552,6 @@ packages: engines: {node: '>=14.16'} dependencies: defer-to-connect: 2.0.1 - dev: false /@tannin/compile@1.1.0: resolution: {integrity: sha512-n8m9eNDfoNZoxdvWiTfW/hSPhehzLJ3zW7f8E7oT6mCROoMNWCB4TYtv041+2FMAxweiE0j7i1jubQU4MEC/Gg==} @@ -22626,13 +22613,13 @@ packages: lodash: 4.17.21 dev: false - /@wordpress/e2e-test-utils-playwright@0.10.13(@playwright/test@1.38.1)(typescript@5.3.2): + /@wordpress/e2e-test-utils-playwright@0.10.13(@playwright/test@1.40.1)(typescript@5.3.2): resolution: {integrity: sha512-5zqIsG6Nn6N0DBlK9GyvYKxUrK7dEBHFInRnIqqfimWAQmz07iBCJU34njs9lQi+/GzKfXS+2XgBI7dDQnbfwQ==} engines: {node: '>=12'} peerDependencies: '@playwright/test': '>=1' dependencies: - '@playwright/test': 1.38.1 + '@playwright/test': 1.40.1 '@wordpress/api-fetch': 6.44.0 '@wordpress/keycodes': 3.47.0 '@wordpress/url': 3.48.0 @@ -27805,7 +27792,6 @@ packages: /cacheable-lookup@7.0.0: resolution: {integrity: sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==} engines: {node: '>=14.16'} - dev: false /cacheable-request@10.2.14: resolution: {integrity: sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==} @@ -27818,7 +27804,6 @@ packages: mimic-response: 4.0.0 normalize-url: 8.0.0 responselike: 3.0.0 - dev: false /cacheable-request@7.0.4: resolution: {integrity: sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==} @@ -33508,7 +33493,6 @@ packages: /form-data-encoder@2.1.4: resolution: {integrity: sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==} engines: {node: '>= 14.17'} - dev: false /form-data@2.3.3: resolution: {integrity: sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==} @@ -33984,21 +33968,6 @@ packages: - supports-color dev: true - /github-label-sync@2.2.0: - resolution: {integrity: sha512-4FBcwA/6XhQtFWZ/+xkwIAJKn7XJlkLBXA+eA3kjJJ6YTFbTynU6Cg9oUN3RXUCBoV2B7fhyEhqN6IwWO/hf3g==} - engines: {node: '>=12'} - hasBin: true - dependencies: - '@financial-times/origami-service-makefile': 7.0.3 - ajv: 8.12.0 - chalk: 4.1.2 - commander: 6.2.1 - got: 11.8.6 - js-yaml: 3.14.1 - node.extend: 2.0.3 - octonode: 0.10.2 - dev: true - /github-label-sync@2.3.1: resolution: {integrity: sha512-3gGNc+y9OtwzR1aTlAOZKJmQ1QUzufxUG6c7rVTFLtNJvqTwyd80bOUxXuwyk2jIq7tWa0fx+Xep78BXxAU2WQ==} engines: {node: '>=12'} @@ -34012,7 +33981,6 @@ packages: js-yaml: 3.14.1 node.extend: 2.0.3 octonode: 0.10.2 - dev: false /github-slugger@1.5.0: resolution: {integrity: sha512-wIh+gKBI9Nshz2o46B0B3f5k/W+WI9ZAv6y5Dn5WJ5SK1t0TnDimB4WE5rmTD05ZAIn8HALCZVmCsvj0w0v0lw==} @@ -34369,7 +34337,6 @@ packages: lowercase-keys: 3.0.0 p-cancelable: 3.0.0 responselike: 3.0.0 - dev: false /got@6.7.1: resolution: {integrity: sha512-Y/K3EDuiQN9rTZhBvPRWMLXIKdeD1Rj0nzunfoi0Yyn5WBEbzxXKU9Ub2X41oZBagVWOBU3MuDonFMgPWQFnwg==} @@ -35318,7 +35285,6 @@ packages: dependencies: quick-lru: 5.1.1 resolve-alpn: 1.2.1 - dev: false /https-browserify@1.0.0: resolution: {integrity: sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==} @@ -35389,15 +35355,9 @@ packages: ms: 2.1.3 dev: true - /husky@7.0.4: - resolution: {integrity: sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==} - engines: {node: '>=12'} - hasBin: true - dev: true - - /husky@8.0.3: - resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} - engines: {node: '>=14'} + /husky@9.0.11: + resolution: {integrity: sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==} + engines: {node: '>=18'} hasBin: true dev: true @@ -40172,7 +40132,6 @@ packages: /lowercase-keys@3.0.0: resolution: {integrity: sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dev: false /lowlight@1.20.0: resolution: {integrity: sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==} @@ -41161,7 +41120,6 @@ packages: /mimic-response@4.0.0: resolution: {integrity: sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dev: false /min-document@2.19.0: resolution: {integrity: sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==} @@ -41970,7 +41928,6 @@ packages: /normalize-url@8.0.0: resolution: {integrity: sha512-uVFpKhj5MheNBJRTiMZ9pE/7hD1QTeEvugSJW/OmLzAp78PB5O6adfMNTvmfKhXBkvCzC+rqifWcVYpGFwTjnw==} engines: {node: '>=14.16'} - dev: false /normalize-wheel@1.0.1: resolution: {integrity: sha512-1OnlAPZ3zgrk8B91HyRj+eVv+kS5u+Z0SCsak6Xil/kmgEia50ga7zfkumayonZrImffAxPU/5WcyGhzetHNPA==} @@ -42578,7 +42535,6 @@ packages: /p-cancelable@3.0.0: resolution: {integrity: sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==} engines: {node: '>=12.20'} - dev: false /p-defer@1.0.0: resolution: {integrity: sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==} @@ -43280,28 +43236,12 @@ packages: find-up: 6.3.0 dev: true - /playwright-core@1.38.1: - resolution: {integrity: sha512-tQqNFUKa3OfMf4b2jQ7aGLB8o9bS3bOY0yMEtldtC2+spf8QXG9zvXLTXUeRsoNuxEYMgLYR+NXfAa1rjKRcrg==} - engines: {node: '>=16'} - hasBin: true - dev: true - /playwright-core@1.40.1: resolution: {integrity: sha512-+hkOycxPiV534c4HhpfX6yrlawqVUzITRKwHAmYfmsVreltEl6fAZJ3DPfLMOODw0H3s1Itd6MDCWmP1fl/QvQ==} engines: {node: '>=16'} hasBin: true dev: true - /playwright@1.38.1: - resolution: {integrity: sha512-oRMSJmZrOu1FP5iu3UrCx8JEFRIMxLDM0c/3o4bpzU5Tz97BypefWf7TuTNPWeCe279TPal5RtPPZ+9lW/Qkow==} - engines: {node: '>=16'} - hasBin: true - dependencies: - playwright-core: 1.38.1 - optionalDependencies: - fsevents: 2.3.2 - dev: true - /playwright@1.40.1: resolution: {integrity: sha512-2eHI7IioIpQ0bS1Ovg/HszsN/XKNwEG1kbzSDDmADpclKc7CyqkHw7Mg2JCz/bbCxg25QUPcjksoMW7JcIFQmw==} engines: {node: '>=16'} @@ -46770,7 +46710,6 @@ packages: engines: {node: '>=14.16'} dependencies: lowercase-keys: 3.0.0 - dev: false /restore-cursor@2.0.0: resolution: {integrity: sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==}