Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
14 lines (13 loc) · 659 Bytes

File metadata and controls

14 lines (13 loc) · 659 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { readFile } from 'node:fs/promises';
const pkg = JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8'));
const chokidarPackage = JSON.parse(
await readFile(new URL('../node_modules/chokidar/package.json', import.meta.url), 'utf8')
);
const chokidarFsevents =
chokidarPackage.dependencies.fsevents || chokidarPackage.optionalDependencies.fsevents;
const packageFsevents = pkg.optionalDependencies.fsevents;
if (chokidarFsevents !== packageFsevents) {
throw new Error(
`The dependency "fsevents" should exist with the same version range "${chokidarFsevents}" as it has for chokidar but it has "${packageFsevents}".`
);
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.