fix: update to commonjs imports

This commit is contained in:
lucas-neynar 2025-03-13 13:01:43 -07:00
parent f02b4064db
commit de626cac17
No known key found for this signature in database

View File

@ -1,12 +1,12 @@
#!/usr/bin/env node #!/usr/bin/env node
import inquirer from 'inquirer'; const inquirer = require('inquirer');
import { fileURLToPath } from 'url'; const { fileURLToPath } = require('url');
import { dirname } from 'path'; const { dirname } = require('path');
import { execSync } from 'child_process'; const { execSync } = require('child_process');
import fs from 'fs'; const fs = require('fs');
import path from 'path'; const path = require('path');
import { generateManifest } from './manifest.js'; const { generateManifest } = require('./manifest.js');
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename); const __dirname = dirname(__filename);