Skip to content

Commit

Permalink
chore: apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Jan 30, 2023
1 parent 19e670b commit cacd5e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/diff.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { existsSync } from 'fs';
import { existsSync } from 'node:fs';
import { argv } from 'node:process';
import { diff } from './apidoc/diff';
import { pathDocsDiffIndexFile } from './apidoc/utils';

const [target, source] = process.argv.slice(2);
const [target, source] = argv.slice(2);

if (!source && !existsSync(pathDocsDiffIndexFile)) {
throw new Error(
Expand Down

0 comments on commit cacd5e7

Please sign in to comment.