Skip to content

Commit 6515438

Browse files
committed
tweak
1 parent f44c96e commit 6515438

File tree

1 file changed

+2
-4
lines changed
  • packages/svelte/scripts/process-messages

1 file changed

+2
-4
lines changed

packages/svelte/scripts/process-messages/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// @ts-check
2+
import process from 'node:process';
23
import fs from 'node:fs';
34
import * as acorn from 'acorn';
45
import { walk } from 'zimmerframe';
56
import * as esrap from 'esrap';
67

78
const DIR = '../../documentation/docs/98-reference/.generated';
89

9-
// eslint-disable-next-line n/prefer-global/process
10-
const [, , watch_flag] = process.argv;
11-
12-
const watch = watch_flag === '-w';
10+
const watch = process.argv.includes('-w');
1311

1412
function run() {
1513
/** @type {Record<string, Record<string, { messages: string[], details: string | null }>>} */

0 commit comments

Comments
 (0)