Skip to content

Commit

Permalink
chore: small fixes (#11797)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Jan 31, 2024
1 parent 6e59e35 commit 67d6e89
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ jobs:
path: puppeteer-test-installation-latest.tgz

installation-test:
name: ${{ matrix.pkg_manager }} installation on ${{ matrix.os }} (${{ matrix.node }})
name: ${{ matrix.pkg_manager }} installation on ${{ matrix.os }}
needs: installation-test-build
if: ${{ !startsWith(github.ref_name, 'release-please') }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -387,7 +387,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: ${{ needs.installation-test-build.node-version }}
node-version: ${{ needs.installation-test-build.outputs.node-version }}
- name: Install dependencies
run: ${{ matrix.pkg_manager }} install
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion packages/browsers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build:docs": "wireit",
"build": "wireit",
"build:test": "wireit",
"clean": "../../tools/clean.js",
"clean": "../../tools/clean.mjs",
"test": "wireit"
},
"type": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/ng-schematics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Puppeteer Angular schematics",
"scripts": {
"build": "wireit",
"clean": "../../tools/clean.js",
"clean": "../../tools/clean.mjs",
"dev:test": "npm run test --watch",
"dev": "npm run build --watch",
"unit": "wireit"
Expand Down
2 changes: 1 addition & 1 deletion packages/puppeteer-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"build:docs": "wireit",
"build": "wireit",
"check": "tsx tools/ensure-correct-devtools-protocol-package",
"clean": "../../tools/clean.js",
"clean": "../../tools/clean.mjs",
"prepack": "wireit",
"unit": "wireit"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"scripts": {
"build:docs": "wireit",
"build": "wireit",
"clean": "../../tools/clean.js",
"clean": "../../tools/clean.mjs",
"postinstall": "node install.mjs",
"prepack": "wireit"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/testserver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "lib/index.js",
"scripts": {
"build": "wireit",
"clean": "../../tools/clean.js"
"clean": "../../tools/clean.mjs"
},
"wireit": {
"build": {
Expand Down
2 changes: 1 addition & 1 deletion test/installation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"build": "wireit",
"clean": "../../tools/clean.js",
"clean": "../../tools/clean.mjs",
"test": "mocha"
},
"wireit": {
Expand Down
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"build": "wireit",
"clean": "../tools/clean.js"
"clean": "../tools/clean.mjs"
},
"wireit": {
"build": {
Expand Down
10 changes: 8 additions & 2 deletions tools/clean.js → tools/clean.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/usr/bin/env node

const {exec} = require('child_process');
const {readdirSync} = require('fs');
/**
* @license
* Copyright 2022 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/

import {exec} from 'child_process';
import {readdirSync} from 'fs';

exec(
`git clean -Xf ${readdirSync(process.cwd())
Expand Down
2 changes: 1 addition & 1 deletion tools/docgen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "wireit",
"clean": "../clean.js"
"clean": "../clean.mjs"
},
"wireit": {
"build": {
Expand Down
2 changes: 1 addition & 1 deletion tools/doctest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "wireit",
"clean": "../clean.js"
"clean": "../clean.mjs"
},
"wireit": {
"build": {
Expand Down
2 changes: 1 addition & 1 deletion tools/mocha-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"build": "wireit",
"test": "wireit",
"clean": "../clean.js"
"clean": "../clean.mjs"
},
"wireit": {
"build": {
Expand Down

0 comments on commit 67d6e89

Please sign in to comment.