Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Aug 28, 2022
1 parent e92e950 commit 0f051cc
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 27 deletions.
2 changes: 1 addition & 1 deletion audio.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pMap from 'p-map';
import { join, basename, resolve } from 'path';
import execa from 'execa';
import { execa } from 'execa';
import flatMap from 'lodash-es/flatMap.js';

import { getFfmpegCommonArgs, getCutFromArgs } from './ffmpeg.js';
Expand Down
2 changes: 1 addition & 1 deletion examples/customCanvas.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const editly = require('..');
import editly from '..';

async function func({ canvas }) {
async function onRender(progress) {
Expand Down
2 changes: 1 addition & 1 deletion examples/customFabric.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const editly = require('..');
import editly from '..';

/* eslint-disable spaced-comment,no-param-reassign */

Expand Down
2 changes: 1 addition & 1 deletion ffmpeg.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fsExtra from 'fs-extra';
import execa from 'execa';
import { execa } from 'execa';
import assert from 'assert';
import compareVersions from 'compare-versions';

Expand Down
4 changes: 3 additions & 1 deletion glTransitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import GL from 'gl';
import ndarray from 'ndarray';
import createBuffer from 'gl-buffer';
import glTransitions from 'gl-transitions';
import createTransition from 'gl-transition';
import glTransition from 'gl-transition';
import createTexture from 'gl-texture2d';

const { default: createTransition } = glTransition;

export default ({ width, height, channels }) => {
const gl = GL(width, height);

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import execa from 'execa';
import { execa } from 'execa';
import assert from 'assert';
import { join, dirname } from 'path';
import JSON5 from 'json5';
Expand Down
2 changes: 1 addition & 1 deletion sources/videoFrameSource.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import execa from 'execa';
import { execa } from 'execa';
import assert from 'assert';

import { getFfmpegCommonArgs } from '../ffmpeg.js';
Expand Down
30 changes: 11 additions & 19 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
const execa = require('execa');
import { execa } from 'execa';

// todo use jest

(async () => {
try {
await execa('node', [
'cli.js',
'--allow-remote-requests',
"title:'My video'",
'https://raw.githubusercontent.com/mifi/editly-assets/main/overlay.svg',
"title:'THE END'",
'--fast',
'--audio-file-path',
'https://github.com/mifi/editly-assets/raw/main/winxp.mp3',
], { stdout: process.stdout, stderr: process.stderr });
} catch (err) {
console.error(err);
process.exitCode = 1;
}
})();
await execa('node', [
'cli.js',
'--allow-remote-requests',
"title:'My video'",
'https://raw.githubusercontent.com/mifi/editly-assets/main/overlay.svg',
"title:'THE END'",
'--fast',
'--audio-file-path',
'https://github.com/mifi/editly-assets/raw/main/winxp.mp3',
], { stdout: process.stdout, stderr: process.stderr });
2 changes: 1 addition & 1 deletion util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import execa from 'execa';
import { execa } from 'execa';
import assert from 'assert';
import sortBy from 'lodash-es/sortBy.js';
import fsExtra from 'fs-extra';
Expand Down

0 comments on commit 0f051cc

Please sign in to comment.