Update monorepo to pnpm 8 and Node to 16.14 (#37915)

This commit is contained in:
Sam Seay 2023-04-25 18:49:30 +12:00 committed by GitHub
parent 5798e87200
commit 7cbc3811d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
65 changed files with 11734 additions and 11768 deletions

View File

@ -29,7 +29,7 @@ runs:
- name: Setup PNPM
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
with:
version: '7.29.1'
version: '8.3.1'
- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c

View File

@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v3
- name: Install prerequisites
run: |
npm install -g pnpm@7
npm install -g pnpm
npm -g i @wordpress/env@5.1.0
pnpm install --filter code-analyzer --filter cli-core
- name: Run analyzer

View File

@ -36,7 +36,7 @@ jobs:
- name: Install prerequisites
run: |
npm install -g pnpm@7
npm install -g pnpm
pnpm install --filter monorepo-utils
- name: 'Check whether today is the code freeze day'

View File

@ -10,10 +10,10 @@ To get up and running within the WooCommerce Monorepo, you will need to make sur
### Prerequisites
* [NVM](https://github.com/nvm-sh/nvm#installing-and-updating): While you can always install Node through other means, we recommend using NVM to ensure you're aligned with the version used by our development teams. Our repository contains [an `.nvmrc` file](.nvmrc) which helps ensure you are using the correct version of Node.
* [PNPM](https://pnpm.io/installation): Our repository utilizes PNPM to manage project dependencies and run various scripts involved in building and testing projects. Until the repository tooling has been updated to support PNPM 8, install PNPM 7 like so: `npm install pnpm@7 --global`
* [PHP 7.2+](https://www.php.net/manual/en/install.php): WooCommerce Core currently features a minimum PHP version of 7.2. It is also needed to run Composer and various project build scripts.
* [Composer](https://getcomposer.org/doc/00-intro.md): We use Composer to manage all of the dependencies for PHP packages and plugins.
- [NVM](https://github.com/nvm-sh/nvm#installing-and-updating): While you can always install Node through other means, we recommend using NVM to ensure you're aligned with the version used by our development teams. Our repository contains [an `.nvmrc` file](.nvmrc) which helps ensure you are using the correct version of Node.
- [PNPM](https://pnpm.io/installation): Our repository utilizes PNPM to manage project dependencies and run various scripts involved in building and testing projects.
- [PHP 7.2+](https://www.php.net/manual/en/install.php): WooCommerce Core currently features a minimum PHP version of 7.2. It is also needed to run Composer and various project build scripts.
- [Composer](https://getcomposer.org/doc/00-intro.md): We use Composer to manage all of the dependencies for PHP packages and plugins.
Once you've installed all of the prerequisites, you can run the following commands to get everything working.
@ -32,27 +32,31 @@ Check out [our development guide](DEVELOPMENT.md) if you would like a more compr
## Repository Structure
* [**Plugins**](plugins): Our repository contains plugins that relate to or otherwise aid in the development of WooCommerce.
* [**WooCommerce Core**](plugins/woocommerce): The core WooCommerce plugin is available in the plugins directory.
* [**Packages**](packages): Contained within the packages directory are all of the [PHP](packages/php) and [JavaScript](packages/js) provided for the community. Some of these are internal dependencies and are marked with an `internal-` prefix.
* [**Tools**](tools): We also have a growing number of tools within our repository. Many of these are intended to be utilities and scripts for use in the monorepo, but, this directory may also contain external tools.
- [**Plugins**](plugins): Our repository contains plugins that relate to or otherwise aid in the development of WooCommerce.
- [**WooCommerce Core**](plugins/woocommerce): The core WooCommerce plugin is available in the plugins directory.
- [**Packages**](packages): Contained within the packages directory are all of the [PHP](packages/php) and [JavaScript](packages/js) provided for the community. Some of these are internal dependencies and are marked with an `internal-` prefix.
- [**Tools**](tools): We also have a growing number of tools within our repository. Many of these are intended to be utilities and scripts for use in the monorepo, but, this directory may also contain external tools.
## Reporting Security Issues
To disclose a security issue to our team, [please submit a report via HackerOne here](https://hackerone.com/automattic/).
## Support
This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core WooCommerce issues only. Support can take place through the appropriate channels:
* If you have a problem, you may want to start with the [self help guide](https://docs.woocommerce.com/document/woocommerce-self-service-guide/).
* The [WooCommerce.com premium support portal](https://woocommerce.com/contact-us/) for customers who have purchased themes or extensions.
* [Our community forum on wp.org](https://wordpress.org/support/plugin/woocommerce) which is available for all WooCommerce users.
* [The Official WooCommerce Facebook Group](https://www.facebook.com/groups/advanced.woocommerce).
* For customizations, you may want to check our list of [WooExperts](https://woocommerce.com/experts/) or [Codeable](https://codeable.io/).
- If you have a problem, you may want to start with the [self help guide](https://docs.woocommerce.com/document/woocommerce-self-service-guide/).
- The [WooCommerce.com premium support portal](https://woocommerce.com/contact-us/) for customers who have purchased themes or extensions.
- [Our community forum on wp.org](https://wordpress.org/support/plugin/woocommerce) which is available for all WooCommerce users.
- [The Official WooCommerce Facebook Group](https://www.facebook.com/groups/advanced.woocommerce).
- For customizations, you may want to check our list of [WooExperts](https://woocommerce.com/experts/) or [Codeable](https://codeable.io/).
NOTE: Unfortunately, we are unable to honor support requests in issues on this repository; as a result, any requests submitted in this manner will be closed.
## Community
For peer to peer support, real-time announcements, and office hours, please [join our slack community](https://woocommerce.com/community-slack/)!
## Contributing to WooCommerce
If you have a patch or have stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our [contributor guidelines](https://github.com/woocommerce/woocommerce/blob/trunk/.github/CONTRIBUTING.md) for more information on how you can do this.

View File

@ -4,8 +4,8 @@
"description": "Monorepo for the WooCommerce ecosystem",
"homepage": "https://woocommerce.com/",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"private": true,
"repository": {

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"description": "E2E tests for the new WooCommerce interface.",
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/admin-e2e-tests/README.md",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"repository": {
"type": "git",

View File

@ -4,8 +4,8 @@
"description": "API tests for WooCommerce",
"main": "index.js",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"scripts": {
"e2e": "jest",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"description": "A simple interface for interacting with a WooCommerce installation.",
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/api/README.md",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"repository": {
"type": "git",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-3.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",
@ -36,8 +36,8 @@
"@types/wordpress__block-editor": "^7.0.0",
"@types/wordpress__block-library": "^2.6.1",
"@types/wordpress__blocks": "^11.0.7",
"@types/wordpress__rich-text": "^3.4.6",
"@types/wordpress__components": "^19.10.3",
"@types/wordpress__rich-text": "^3.4.6",
"@woocommerce/csv-export": "workspace:*",
"@woocommerce/currency": "workspace:*",
"@woocommerce/data": "workspace:*",
@ -87,10 +87,10 @@
"react-transition-group": "^4.4.2"
},
"peerDependencies": {
"@wordpress/data": "wp-6.0",
"lodash": "^4.17.0",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
"@wordpress/data": "wp-6.0",
"lodash": "^4.17.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
@ -127,8 +127,8 @@
"@types/wordpress__media-utils": "^3.0.0",
"@types/wordpress__viewport": "^2.5.4",
"@woocommerce/eslint-plugin": "workspace:*",
"@woocommerce/internal-style-build": "workspace:*",
"@woocommerce/internal-js-tests": "workspace:*",
"@woocommerce/internal-style-build": "workspace:*",
"@wordpress/browserslist-config": "wp-6.0",
"@wordpress/scripts": "^12.6.1",
"concurrently": "^7.0.0",
@ -142,7 +142,6 @@
"rimraf": "^3.0.2",
"sass-loader": "^10.2.1",
"ts-jest": "^27.1.3",
"typescript": "^4.9.5",
"uuid": "^8.3.0",
"webpack": "^5.70.0",
"webpack-cli": "^3.3.12"

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -4,8 +4,8 @@
"description": "A template to be used with `@wordpress/create-block` to create a WooCommerce extension.",
"main": "index.js",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"scripts": {
"postinstall": "composer install",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-3.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -10,8 +10,8 @@
"currency"
],
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/currency/README.md",
"repository": {

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Update pnpm to version 8

View File

@ -9,8 +9,8 @@
"woocommerce"
],
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/customer-effort-score/README.md",
"repository": {

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -10,8 +10,8 @@
"data"
],
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/data/README.md",
"repository": {

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -10,8 +10,8 @@
"date"
],
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/date/README.md",
"repository": {

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -9,8 +9,8 @@
"woocommerce"
],
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/dependency-extraction-webpack-plugin/README.md",
"repository": {

View File

@ -9,8 +9,8 @@
},
"license": "GPL-3.0+",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"main": "build/index.js",
"module": "build-module/index.js",

View File

@ -11,8 +11,8 @@
"puppeteer"
],
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/e2e-environment/README.md",
"bugs": {

View File

@ -9,8 +9,8 @@
},
"license": "GPL-3.0+",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"main": "build/index.js",
"module": "build-module/index.js",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-2.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-3.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-2.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -4,8 +4,8 @@
"description": "",
"main": "index.js",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"scripts": {
"postinstall": "composer install",

View File

@ -5,8 +5,8 @@
"private": true,
"main": "build.js",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"bin": {
"e2e-builds": "./build.js"

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-2.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"homepage": "https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/internal-js-tests/README.md",
"repository": {

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-2.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-3.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -5,8 +5,8 @@
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-3.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-3.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -5,8 +5,8 @@
"author": "Automattic",
"license": "GPL-3.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"keywords": [
"wordpress",

View File

@ -243,7 +243,7 @@
]
},
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
}
}

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -75,8 +75,8 @@
"test:unit": "wp-scripts test-unit-js"
},
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"woorelease": {
"svn_reauth": "true",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Update pnpm to version 8.

View File

@ -104,8 +104,8 @@
]
},
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"browserslist": [
"> 0.1%",

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
"license": "GPL-2.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"pnpm": "^8.3.1"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.3",

View File

@ -32,8 +32,8 @@
"analyzer": "node -r ts-node/register ./src/commands/analyzer/index.ts"
},
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"types": "dist/index.d.ts"
}

View File

@ -13,7 +13,7 @@
"promptly": "^3.2.0"
},
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
}
}

View File

@ -62,8 +62,8 @@
"prepack": "pnpm build && oclif manifest"
},
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"types": "dist/index.d.ts"
}

View File

@ -37,8 +37,8 @@
"test": "jest"
},
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"types": "dist/index.d.ts"
}

View File

@ -6,10 +6,7 @@
"module": "commonjs",
"esModuleInterop": true,
"moduleResolution": "node",
"typeRoots": [
"./typings",
"./node_modules/@types",
"./node_modules/@commander-js"
]
"skipLibCheck": true,
"typeRoots": [ "./node_modules/@types", "./node_modules/@commander-js" ]
}
}

View File

@ -57,8 +57,8 @@
"prepack": "pnpm build && oclif manifest"
},
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"types": "dist/index.d.ts"
}

View File

@ -10,8 +10,8 @@
"author": "Automattic",
"license": "GPL-2.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.3",

View File

@ -11,8 +11,8 @@
"author": "Automattic",
"license": "GPL-3.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"bugs": {
"url": "https://github.com/woocommerce/woocommerce/issues"

View File

@ -6,8 +6,8 @@
"author": "",
"license": "GPL-2.0-or-later",
"engines": {
"node": "^16.13.1",
"pnpm": "^7.13.3"
"node": "^16.14.1",
"pnpm": "^8.3.1"
},
"devDependencies": {
"@tsconfig/node16": "^1.0.3",