newspack-scripts 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ * @Automattic/newspack-product
@@ -61,5 +61,9 @@ module.exports = {
61
61
  "@typescript-eslint/no-unused-vars": "error",
62
62
  // Disallow logging.
63
63
  "no-console": "error",
64
+ // Handle the issue where no-shadow is a false positive when declaring TS enums.
65
+ // See https://github.com/typescript-eslint/typescript-eslint/issues/2483
66
+ "no-shadow": "off",
67
+ "@typescript-eslint/no-shadow": "error",
64
68
  },
65
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newspack-scripts",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "newspack-scripts": "./bin/newspack-scripts.js"
@@ -1,10 +1,10 @@
1
1
  description: >
2
2
  This is a sample executor using Docker and Node.
3
3
  docker:
4
- - image: 'cimg/php:<<parameters.tag>>'
4
+ - image: "cimg/php:<<parameters.tag>>"
5
5
  parameters:
6
6
  tag:
7
- default: 7.4-browsers
7
+ default: 8.0-browsers
8
8
  description: >
9
9
  Pick a specific circleci/php image variant:
10
10
  https://hub.docker.com/r/cimg/php/tags
@@ -2,12 +2,12 @@ description: >
2
2
  Run PHP tests.
3
3
 
4
4
  docker:
5
- - image: cimg/php:7.4
5
+ - image: cimg/php:8.0
6
6
  - image: circleci/mysql:5.6.50
7
7
 
8
8
  environment:
9
- - WP_TESTS_DIR: '/tmp/wordpress-tests-lib'
10
- - WP_CORE_DIR: '/tmp/wordpress/'
9
+ - WP_TESTS_DIR: "/tmp/wordpress-tests-lib"
10
+ - WP_CORE_DIR: "/tmp/wordpress/"
11
11
  steps:
12
12
  - checkout
13
13
  - run:
@@ -22,8 +22,7 @@ steps:
22
22
  - run:
23
23
  name: Run Tests
24
24
  command: |
25
- composer install
26
- composer global require "phpunit/phpunit=7.5.*"
25
+ composer update
27
26
  rm -rf $WP_TESTS_DIR $WP_CORE_DIR
28
- bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 5.8.1
29
- phpunit
27
+ bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 latest
28
+ ./vendor/bin/phpunit