Skip to content

Commit a5f52e9

Browse files
authored
Merge branch 'webpack:main' into main
2 parents 0cd204b + 585ebf9 commit a5f52e9

File tree

11 files changed

+539
-760
lines changed

11 files changed

+539
-760
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,14 @@ jobs:
1212
lint:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Use Node.js
17-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v4
1818
with:
19-
node-version: 16.x
20-
- id: yarn-cache-dir-path
21-
run: echo "::set-output name=dir::$(yarn cache dir)"
22-
- uses: actions/cache@v1
23-
with:
24-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
25-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
26-
restore-keys: ${{ runner.os }}-yarn-
19+
node-version: lts/*
20+
cache: "yarn"
2721
- run: yarn --frozen-lockfile
28-
- uses: actions/cache@v1
22+
- uses: actions/cache@v4
2923
with:
3024
path: .eslintcache
3125
key: lint-${{ env.GITHUB_SHA }}
@@ -36,7 +30,7 @@ jobs:
3630
fail-fast: false
3731
matrix:
3832
os: [ubuntu-latest, windows-latest, macos-latest]
39-
node-version: [10.x, 12.x, 14.x, 16.x, 17.x]
33+
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 21.x]
4034
polling: ["false", "200"]
4135
exclude:
4236
- os: macos-latest
@@ -52,27 +46,28 @@ jobs:
5246
node-version: 16.x
5347
polling: "200"
5448
- os: macos-latest
55-
node-version: 17.x
49+
node-version: 18.x
50+
polling: "200"
51+
- os: macos-latest
52+
node-version: 20.x
53+
polling: "200"
54+
- os: macos-latest
55+
node-version: 21.x
5656
polling: "200"
5757
runs-on: ${{ matrix.os }}
5858
steps:
59-
- uses: actions/checkout@v2
59+
- uses: actions/checkout@v4
6060
- name: Use Node.js ${{ matrix.node-version }}
61-
uses: actions/setup-node@v1
61+
uses: actions/setup-node@v4
6262
with:
6363
node-version: ${{ matrix.node-version }}
64-
- id: yarn-cache-dir-path
65-
run: echo "::set-output name=dir::$(yarn cache dir)"
66-
- uses: actions/cache@v1
67-
with:
68-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
69-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
70-
restore-keys: ${{ runner.os }}-yarn-
64+
cache: "yarn"
7165
- run: yarn --frozen-lockfile
72-
- run: yarn cover --report lcovonly
66+
- run: yarn test:coverage --report lcovonly
7367
env:
7468
WATCHPACK_POLLING: ${{ matrix.polling }}
75-
- uses: codecov/codecov-action@v1
69+
- uses: codecov/codecov-action@v4
7670
with:
7771
flags: integration
7872
functionalities: gcov
73+
token: ${{ secrets.CODECOV_TOKEN }}

.travis.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
Wrapper library for directory and file watching.
44

5-
[![Build Status][build-status]][build-status-url]
6-
[![Build status][build-status-veyor]][build-status-veyor-url]
7-
[![Test coverage][coveralls-image]][coveralls-url]
8-
[![codecov][codecov]][codecov-url]
9-
[![downloads][downloads]][downloads-url]
10-
[![Github contributors][contributors]][contributors-url]
5+
[![Test](https://github.com/webpack/watchpack/actions/workflows/test.yml/badge.svg)](https://github.com/webpack/watchpack/actions/workflows/test.yml)
6+
[![Codecov](https://codecov.io/gh/webpack/watchpack/graph/badge.svg?token=8xk2OrrxWm)](https://codecov.io/gh/webpack/watchpack)
7+
[![Downloads](https://img.shields.io/npm/dm/watchpack.svg)](https://www.npmjs.com/package/watchpack)
118

129
## Concept
1310

@@ -133,16 +130,3 @@ var fileTimes = wp.getTimes();
133130
// this include timestamps from files not directly watched
134131
// key: absolute path, value: timestamp as number
135132
```
136-
137-
[build-status]: https://travis-ci.org/webpack/watchpack.svg?branch=main
138-
[build-status-url]: https://travis-ci.org/webpack/watchpack
139-
[build-status-veyor]: https://ci.appveyor.com/api/projects/status/e5u2qvmugtv0r647/branch/main?svg=true
140-
[build-status-veyor-url]: https://ci.appveyor.com/project/sokra/watchpack/branch/main
141-
[coveralls-url]: https://coveralls.io/r/webpack/watchpack/
142-
[coveralls-image]: https://img.shields.io/coveralls/webpack/watchpack.svg
143-
[codecov]: https://codecov.io/gh/webpack/watchpack/branch/main/graph/badge.svg
144-
[codecov-url]: https://codecov.io/gh/webpack/watchpack
145-
[downloads]: https://img.shields.io/npm/dm/watchpack.svg
146-
[downloads-url]: https://www.npmjs.com/package/watchpack
147-
[contributors]: https://img.shields.io/github/contributors/webpack/watchpack.svg
148-
[contributors-url]: https://github.com/webpack/watchpack/graphs/contributors

appveyor.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

azure-pipelines-polling.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 0 additions & 115 deletions
This file was deleted.

lib/DirectoryWatcher.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ class DirectoryWatcher extends EventEmitter {
362362
});
363363
}
364364
} else if (
365+
filePath !== this.path &&
365366
!this.directories.has(filePath) &&
366367
watcher.checkStartTime(this.initialScanFinished, false)
367368
) {

0 commit comments

Comments
 (0)