initial
This commit is contained in:
16
ts/plugins.ts
Normal file
16
ts/plugins.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
// Node native modules
|
||||
import * as path from 'path';
|
||||
import * as child_process from 'child_process';
|
||||
import { createRequire } from 'module';
|
||||
export { path, child_process };
|
||||
|
||||
// @push.rocks scope
|
||||
import * as smartfs from '@push.rocks/smartfs';
|
||||
import * as smartpath from '@push.rocks/smartpath';
|
||||
import * as smartpromise from '@push.rocks/smartpromise';
|
||||
export { smartfs, smartpath, smartpromise };
|
||||
|
||||
// ffmpeg static binaries - use createRequire for CommonJS compatibility
|
||||
const require = createRequire(import.meta.url);
|
||||
export const ffmpegBinaryPath: string = require('ffmpeg-static');
|
||||
export const ffprobeBinaryPath: string = require('ffprobe-static').path;
|
||||
Reference in New Issue
Block a user