Skip to content

Commit

Permalink
fix cli issue on cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
simone committed Feb 28, 2024
1 parent 915eb5f commit 96804dc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import concat from './index.js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const getFile = (file: string) => path.join(__dirname, '..', '..', file);

concat({
videos: [getFile('media/0.mp4'), getFile('media/0a.mp4'), getFile('media/1.mp4'), getFile('media/2.mp4')],
videos: ['media/0.mp4', 'media/0a.mp4', 'media/1.mp4', 'media/2.mp4'],
transition: { name: 'directionalwipe', duration: 500 },
output: './media/example.mp4',
});

0 comments on commit 96804dc

Please sign in to comment.