Make WordPress Core

Changeset 50612


Ignore:
Timestamp:
03/29/2021 06:05:47 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Remove explicit puppeteer dependency.

This was added in [48177] to fix an issue where Puppeteer was not being installed correctly as a dependency of @wordpress/wp-scripts. This has been fixed, so this explicit dependency can be removed.

Props isabel_brison, desrosj, SergeyBiryukov.
Fixes #52843.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r50598 r50612  
    23162316            }
    23172317        },
    2318         "@types/mime-types": {
    2319             "version": "2.1.0",
    2320             "resolved": "https://registry.npmjs.org/@types/mime-types/-/mime-types-2.1.0.tgz",
    2321             "integrity": "sha1-nKUs2jY/aZxpRmwqbM2q2RPqenM=",
    2322             "dev": true
    2323         },
    23242318        "@types/minimatch": {
    23252319            "version": "3.0.3",
     
    39133907                    "dev": true
    39143908                },
    3915                 "puppeteer": {
    3916                     "version": "npm:puppeteer-core@5.5.0",
    3917                     "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-5.5.0.tgz",
    3918                     "integrity": "sha512-tlA+1n+ziW/Db03hVV+bAecDKse8ihFRXYiEypBe9IlLRvOCzYFG6qrCMBYK34HO/Q/Ecjc+tvkHRAfLVH+NgQ==",
    3919                     "dev": true,
    3920                     "requires": {
    3921                         "debug": "^4.1.0",
    3922                         "devtools-protocol": "0.0.818844",
    3923                         "extract-zip": "^2.0.0",
    3924                         "https-proxy-agent": "^4.0.0",
    3925                         "node-fetch": "^2.6.1",
    3926                         "pkg-dir": "^4.2.0",
    3927                         "progress": "^2.0.1",
    3928                         "proxy-from-env": "^1.0.0",
    3929                         "rimraf": "^3.0.2",
    3930                         "tar-fs": "^2.0.0",
    3931                         "unbzip2-stream": "^1.3.3",
    3932                         "ws": "^7.2.3"
    3933                     },
    3934                     "dependencies": {
    3935                         "devtools-protocol": {
    3936                             "version": "0.0.818844",
    3937                             "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.818844.tgz",
    3938                             "integrity": "sha512-AD1hi7iVJ8OD0aMLQU5VK0XH9LDlA1+BcPIgrAxPfaibx2DbWucuyOhc4oyQCbnvDDO68nN6/LcKfqTP343Jjg==",
    3939                             "dev": true
    3940                         }
    3941                     }
    3942                 },
    39433909                "rimraf": {
    39443910                    "version": "3.0.2",
     
    80648030            "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz",
    80658031            "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==",
     8032            "dev": true
     8033        },
     8034        "devtools-protocol": {
     8035            "version": "0.0.818844",
     8036            "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.818844.tgz",
     8037            "integrity": "sha512-AD1hi7iVJ8OD0aMLQU5VK0XH9LDlA1+BcPIgrAxPfaibx2DbWucuyOhc4oyQCbnvDDO68nN6/LcKfqTP343Jjg==",
    80668038            "dev": true
    80678039        },
     
    1864618618        },
    1864718619        "puppeteer": {
    18648             "version": "npm:puppeteer-core@3.0.0",
    18649             "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-3.0.0.tgz",
    18650             "integrity": "sha512-oWjZFGMc0q2ak+8OxdmMffS79LIT0UEtmpV4h1/AARvESIqqKljf8mrfP+dQ2kas7XttsAZIxRBuWu7Y5JH8KQ==",
    18651             "dev": true,
    18652             "requires": {
    18653                 "@types/mime-types": "^2.1.0",
     18620            "version": "npm:puppeteer-core@5.5.0",
     18621            "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-5.5.0.tgz",
     18622            "integrity": "sha512-tlA+1n+ziW/Db03hVV+bAecDKse8ihFRXYiEypBe9IlLRvOCzYFG6qrCMBYK34HO/Q/Ecjc+tvkHRAfLVH+NgQ==",
     18623            "dev": true,
     18624            "requires": {
    1865418625                "debug": "^4.1.0",
     18626                "devtools-protocol": "0.0.818844",
    1865518627                "extract-zip": "^2.0.0",
    1865618628                "https-proxy-agent": "^4.0.0",
    18657                 "mime": "^2.0.3",
    18658                 "mime-types": "^2.1.25",
     18629                "node-fetch": "^2.6.1",
     18630                "pkg-dir": "^4.2.0",
    1865918631                "progress": "^2.0.1",
    1866018632                "proxy-from-env": "^1.0.0",
     
    1866518637            },
    1866618638            "dependencies": {
     18639                "find-up": {
     18640                    "version": "4.1.0",
     18641                    "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
     18642                    "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
     18643                    "dev": true,
     18644                    "requires": {
     18645                        "locate-path": "^5.0.0",
     18646                        "path-exists": "^4.0.0"
     18647                    }
     18648                },
     18649                "locate-path": {
     18650                    "version": "5.0.0",
     18651                    "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
     18652                    "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
     18653                    "dev": true,
     18654                    "requires": {
     18655                        "p-locate": "^4.1.0"
     18656                    }
     18657                },
     18658                "p-locate": {
     18659                    "version": "4.1.0",
     18660                    "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
     18661                    "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
     18662                    "dev": true,
     18663                    "requires": {
     18664                        "p-limit": "^2.2.0"
     18665                    }
     18666                },
     18667                "path-exists": {
     18668                    "version": "4.0.0",
     18669                    "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
     18670                    "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
     18671                    "dev": true
     18672                },
     18673                "pkg-dir": {
     18674                    "version": "4.2.0",
     18675                    "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
     18676                    "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
     18677                    "dev": true,
     18678                    "requires": {
     18679                        "find-up": "^4.0.0"
     18680                    }
     18681                },
    1866718682                "rimraf": {
    1866818683                    "version": "3.0.2",
  • trunk/package.json

    r50598 r50612  
    6464        "matchdep": "~2.0.0",
    6565        "prettier": "npm:wp-prettier@2.0.5",
    66         "puppeteer": "npm:puppeteer-core@3.0.0",
    6766        "qunit": "~2.14.1",
    6867        "sass": "^1.32.8",
  • trunk/tests/e2e/run-tests.js

    r50542 r50612  
    11const dotenv = require( 'dotenv' );
    22const dotenv_expand = require( 'dotenv-expand' );
    3 const { sync: spawn } = require( 'cross-spawn' );
    43const { execSync } = require( 'child_process' );
    54
     
    76dotenv_expand( dotenv.config() );
    87
    9 const result = spawn( 'node', [ require.resolve( 'puppeteer/install' ) ], {
    10     stdio: 'inherit',
    11 } );
    12 if ( result.status > 0 ) {
    13     process.exit( result.status );
    14 }
    15 
    168// Run the tests, passing additional arguments through to the test script.
    17 execSync( 'wp-scripts test-e2e --config tests/e2e/jest.config.js ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } );
     9execSync(
     10    'wp-scripts test-e2e --config tests/e2e/jest.config.js ' +
     11        process.argv.slice( 2 ).join( ' ' ),
     12    { stdio: 'inherit' }
     13);
Note: See TracChangeset for help on using the changeset viewer.