Skip to content

Commit

Permalink
Replace copyfiles package with a script.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jan 9, 2025
1 parent eedda01 commit 3e81950
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 348 deletions.
14 changes: 14 additions & 0 deletions npm-prepare.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { copyFileSync } from 'fs';
import { resolve, dirname } from 'path';
import { fileURLToPath } from 'url';

const filename = fileURLToPath(import.meta.url);
const folder = dirname(filename);

function copyFile(src, dest) {
copyFileSync(resolve(folder, src), resolve(folder, dest));
console.log(`Copied ${src} to ${dest}`);
};

copyFile('node_modules/@dlemstra/magick-native/NOTICE', 'NOTICE');
copyFile('node_modules/@dlemstra/magick-native/magick.wasm', 'dist/magick.wasm');
Loading

0 comments on commit 3e81950

Please sign in to comment.