Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
kokororin committed Jan 10, 2025
1 parent 2185281 commit 7a0ef98
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/docs.mts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/* eslint-disable n/no-sync */
import path from 'node:path';
import os from 'node:os';
import fs from 'node:fs/promises';
import phpfmt from 'phpfmt';
import { execSync } from 'node:child_process';
import { dirname } from 'dirname-filename-esm';
import { consola } from 'consola';
import { got } from 'got';
import JSON5 from 'json5';
import { markdownTable } from 'markdown-table';
import { exec } from '../src/utils';

// eslint-disable-next-line @typescript-eslint/naming-convention
const __dirname = dirname(import.meta);
Expand All @@ -20,10 +21,7 @@ const configuration = pkg.contributes.configuration;

try {
// check php first
const { code } = await exec('php -v');
if (code !== 0) {
throw new Error('php -v failed');
}
execSync('php -v');

consola.info('Downloading phpfmt.sublime-settings...');
const phpfmtSettingsRaw = await got
Expand Down

0 comments on commit 7a0ef98

Please sign in to comment.