chore(create-playwright): make it Node.js 12 compatible (#10081)
This commit is contained in:
parent
c5b19351f6
commit
95a5c5cb79
10
.github/workflows/package_create_playwright.yml
vendored
10
.github/workflows/package_create_playwright.yml
vendored
|
|
@ -4,19 +4,25 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- 'packages/create-playwright/**/*'
|
- 'packages/create-playwright/**/*'
|
||||||
|
- '.github/workflows/package_create_playwright.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- 'packages/create-playwright/**/*'
|
- 'packages/create-playwright/**/*'
|
||||||
|
- '.github/workflows/package_create_playwright.yml'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
node-version: [12.x, 14.x, 16.x]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Use Node.js
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: npm i -g npm@7
|
- run: npm i -g npm@7
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
|
||||||
3
packages/create-playwright/src/tsconfig.json
Normal file
3
packages/create-playwright/src/tsconfig.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"extends": "../tsconfig.json"
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "ES2019",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "Node",
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue