shamefully-hoist=true
public-hoist-pattern[]=electron
public-hoist-pattern[]=electron-*

# Ensure postinstall scripts always run (needed for native modules like better-sqlite3)
enable-pre-post-scripts=true

# NPM registry mirror (China)
registry=https://registry.npmmirror.com

# Electron mirror configuration (China)
electron_mirror=https://npmmirror.com/mirrors/electron/
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/
ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/

# Node-gyp headers mirror for native module compilation
disturl=https://npmmirror.com/mirrors/node/

# Electron headers for native module rebuild (used by @electron/rebuild)
electron_custom_dir={{ version }}
ELECTRON_CUSTOM_DIR={{ version }}
