Skip to content

Commit

Permalink
fix: use @npcz/magic to refer to the module
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Jan 10, 2022
1 parent fb426a6 commit 25c8e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/file-magic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
MagicBindingStaticInterface,
MagicBindingInterface,
} from './binding';
const createBindingModule = require('./magic-js');
const createBindingModule = require('@npcz/magic/dist/magic-js');

/**
* Reproduces exactly the same values than in magic.h of libmagic but using
Expand Down Expand Up @@ -95,7 +95,7 @@ export class FileMagic {
* This path must be correct and pointing to the location of the magic.mgc file.
* By default, it is expected to be in the current script working directory.
*/
static magicFile: string = require.resolve("@npcz/magic/dist/magic.mgc");
static magicFile: string = require.resolve('@npcz/magic/dist/magic.mgc');
/**
* Default flags used by libmagic binding.
*
Expand Down

0 comments on commit 25c8e97

Please sign in to comment.