File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
typings/@mapbox__node-pre-gyp Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 1- import path from 'path' ;
21import { EventEmitter } from 'node:events' ;
32
4- import binary from '@mapbox/node-pre-gyp' ;
5-
63import { Addon } from './types' ;
74
85const SUPPORTED_PLATFORMS = [ 'win32' ] ;
96
107let addon : Addon | null = null ;
118
129if ( SUPPORTED_PLATFORMS . includes ( process . platform ) ) {
13- const bindingPath = binary . find (
14- path . resolve ( path . join ( __dirname , '..' , 'package.json' ) )
15- ) ;
16- addon = require ( bindingPath ) ; // eslint-disable-line import/no-dynamic-require
10+ addon = require ( '../build/Release/PaymoWinShutdownHandler.node' ) ; // eslint-disable-line import/no-dynamic-require
1711}
1812
1913class ElectronShutdownHandlerClass extends EventEmitter {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments