mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
Work around missing __dirname in modules
This commit is contained in:
parent
76c4f58b9d
commit
ab82090602
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
import { icons } from '@iconify-json/material-symbols';
|
import { icons } from '@iconify-json/material-symbols';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import { fileURLToPath } from 'url';
|
||||||
|
import path, { dirname } from 'path';
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = dirname(__filename);
|
||||||
|
|
||||||
// Check for verbose flag
|
// Check for verbose flag
|
||||||
const isVerbose = process.argv.includes('--verbose') || process.argv.includes('-v');
|
const isVerbose = process.argv.includes('--verbose') || process.argv.includes('-v');
|
||||||
|
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
import { execSync } from 'child_process';
|
import { execSync } from 'child_process';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import { fileURLToPath } from 'url';
|
||||||
|
import path, { dirname } from 'path';
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = dirname(__filename);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate 3rd party licenses for frontend dependencies
|
* Generate 3rd party licenses for frontend dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user