Skip to content

Commit

Permalink
update postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalygashkov committed Oct 28, 2024
1 parent 112b6f4 commit 1853a2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { existsSync } from 'fs';
import { execSync } from 'child_process';
import { existsSync } from 'node:fs';
import { execSync } from 'node:child_process';

// Check if .git directory exists (we're in development)
if (existsSync('.git')) {
// Check if has WXT config
if (existsSync('wxt.config.ts')) {
try {
// Run wxt prepare and pipe its output to the console
execSync('wxt prepare', { stdio: 'inherit' });
Expand Down

0 comments on commit 1853a2e

Please sign in to comment.