You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #844 I've noticed at least one case where a folder (containing a package.json file and nothing else) in a dependency is filtered when packaging an app with the prune option.
Here is a minimal test case:
$ mkdir tmp
$ cd tmp
$ npm init
$ npm i electron electron-packager --save-dev
$ npm i redux-saga
$ $(npm bin)/electron-packager . test --platform=linux
And then:
$ ls -l node_modules/redux-saga/effects/package.json
$ ls -l test-linux-x64/resources/app/node_modules/redux-saga/
And note that the effects folder is missing.
EDIT:
I should add that this does not happen in 11.x.
The text was updated successfully, but these errors were encountered:
👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
That line needs to be changed so that the check basename(dirname(pathToCheck)) == 'node_modules' is added, along with a regression test.
malept
changed the title
Losing parttial dependency while pruning in 12.x
Folders that are not NPM modules but have package.json files are unintentionally pruned
May 16, 2018
As discussed in #844 I've noticed at least one case where a folder (containing a package.json file and nothing else) in a dependency is filtered when packaging an app with the prune option.
Here is a minimal test case:
And then:
And note that the effects folder is missing.
EDIT:
I should add that this does not happen in 11.x.
The text was updated successfully, but these errors were encountered: