question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Git submodule package.json dependencies

See original GitHub issue

In our project we have multiple git submodules, which have their own package.json definition. The main package.json has definition like this:

  "dependencies": {
    "react": "15.4.2",
    "submodule_1": "client/submodule_1",
    "submodule_2": "client/submodule_2",
  },

The file structure of the project is something like this:

   root_project
   |-client
   |    |-submodule_1
   |    |   '--package.json
   |    '-submodule_2
   |        '--package.json
   '-package.json

So on npm install we have a all necessary modules downloaded. The problem is that electron does not package the submodule dependencies to the final installer. Is there a way to build the electron app with the dependencies from nested git submodules?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Jul 28, 2018

@bradydowling My comment is not relevant anymore. Please file a new issue (thanks for project) to be not forgotten

0reactions
bradydowlingcommented, Jul 28, 2018

I’m having this issue with and without asar packaging. I’ll dig into it more with asar enabled but @develar what do you mean by “use default”?

Here’s the repo I’ve spun up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install dependencies of a git submodule - Stack Overflow
In this project's history, our install and build procedure has been: $ npm install # install dependencies in package. json $ grunt init...
Read more >
Using Git submodules to streamline Node.js package ...
Git's submodule feature can streamline this by letting you ... The only dependency we've listed in package.json is the package directory.
Read more >
Ubuntu Manpage: npm-submodule - Add a package as a git ...
DESCRIPTION. If the specified package has a git repository url in its package.json description, then this command will add it as a git...
Read more >
Resolving Application Dependencies with Git Submodules
Git submodules, library-vendoring and private package repositories are all available when specifying application dependencies on Heroku.
Read more >
git-submodule-utils - npm Package Health Analysis - Snyk
Git Submodule Utils ... This small package is meant to help initializing git submodules, and pinning them to a certain branch instead of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found