mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-02-25 01:21:02 -08:00
fix: TS2307: Cannot find module 'registry-js' or its corresponding type declarations.
This commit is contained in:
parent
072526fc20
commit
b5ec5c19f2
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
/* eslint-disable unicorn/import-style */
|
||||
import * as Path from 'path';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error
|
||||
// @ts-ignore
|
||||
import { enumerateValues, HKEY, RegistryValue, RegistryValueType } from 'registry-js';
|
||||
|
||||
import { logger } from '@services/libs/log';
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ module.exports = {
|
|||
'@llama-node/rwkv-cpp',
|
||||
'dugite',
|
||||
'zx',
|
||||
...(process.platform === 'win32' ? [] : ['registry-js']),
|
||||
],
|
||||
// externalsType: 'commonjs',
|
||||
// externalsPresets: { electronMain: true },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue