0

I need to exclude only the "package.json" from the root folder but at the moment all "package.json" files are unpacked (from node_modules ...) Electron v18 Electron Package v15.4.0 Windows

script in package.json

"scripts": {
    "package": "electron-packager . TestApp --out=dist/win --asar.unpack=\"{*/jar/**/*,**/jre/**/*,package.json}\" 
}

and with this pattern, no file will be unpacked

/package.json => NOK
/{,!(node_modules)/**/}package.json => NOK

any ideas??

Greetings Klaus

tripower
  • 1
  • 2

0 Answers0