Utilizing external directory files in electron-packager during the packaging process

I am currently in the process of packaging my electron application, which consists of two npm directories nested within each other. The inner directory contains my electron app and relies on scripts located in the outer directory. In my internal package.json file, I specify the electron-packager scripts for my electron app. I have a specific inquiry regarding the source file for the package, as I have designated it as '.' to represent the current directory. My concern is whether this includes files from the outer directory as well. Although my app is functioning properly at the moment, I am unsure if there could be potential issues if I am not handling this correctly. If using '.' is not the correct approach, how can I instruct electron-packager to include files outside of the current directory? Alternatively, does electron-packager automatically detect and incorporate all necessary files and scripts regardless of their location during the packaging process?

Answer №1

When scanning the current directory, it includes all files, including package.json. I personally found 'Bolt' to be a valuable tool when managing multiple npm packages.

Check out Bolt on npm

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Steps to retrieve an array from AJAX request and save it to a JavaScript variable

How can I retrieve the 'this.responseText' array from this function and assign it to a variable named 'teacherIDList'? Any suggestions? var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readySt ...

Does the "onevent" option get disregarded for jsf.ajax.request in JSF

In my attempt to develop an interactive chat web application using Java EE 7, I am specifically utilizing JSF 2.2 with ajax. The concept involves having a slow pending asynchronous ajax request waiting on the server for each unique client. When a new mess ...

Fastify Node - delivering images from the upload directory

Allow access to files/images when visiting localhost:8000/properties/files/[image name] localhost:8000/properties/files/1635843023660-profile.jpg File Organization node_modules src/ uploads/ 1635843023660-profile.jpg 1635843023668-home.jpg ... . ...

Always Seek Permission for Geolocation in Cordova

Is there a way in PhoneGap to update the Geolocation plugin's permissions from "while in use" to "always" without manually editing the .plist file? I noticed that changing the NSLocationAlwaysUsageDescription key in the project's config.xml sets ...

Ways to trigger a function when the body is loaded

In this snippet, I am attempting to execute the oauth2_login() function when the body loads, which is intended to log in the user. Currently, I have hardcoded values from the database into the username and password fields. <!DOCTYPE html> <html&g ...

The hiding/showing of elements is not being executed correctly by jQuery

My web template includes HTML and jQuery code for a project I'm working on. During the $.getJSON call, there can be a delay in loading the data. To inform the user to wait, I added a warning message in a div with the id="warning". The code properly ...

Automatically show a specific accordion section when the page loads

I have different accordion elements like this: <div class="accordion"> <h3 style="width: 430px">Location</h3> </div> <div class="accordion"> <h3 style="width: 430px">Category</h3> </div> Upon ini ...

React-icons version 4.4.0 has been found to contain a total of 6 critical

# npm audit report nth-check <2.0.1 Severity: high Inefficient Regular Expression Complexity in nth-check - https://github.com/advisories/GHSA-rp65-9cf3-cjxr fix available via `npm audit fix --force` Will install <a href="/cdn-cgi/l/email-protectio ...

Back up node modules on your USB drive

I'm facing a challenge while backing up my computer as there are numerous node modules that don't fit onto the USB drive. Any suggestions for an easier way to back up these modules? Or should I create a checklist of the modules used in each proje ...

Extract the JSESSIONID and generate a new Cookie using AngularJS

Currently, I am utilizing a Web RESTful API from my client within AngularJS. app.controller('LoginController', [ '$http', '$cookies', function($http, $cookies) { this.credentials = {}; this.http = $ ...

Sending a series of filtered GET requests to my Express backend in a MERN (MongoDB, Express, React,

I have developed a MERN web application and am in the process of adding some GET methods to retrieve the same item for different scenarios. However, when I attempt to implement a second filter method and pass an existing parameter in my item schema, Postma ...

Build a nested block containing a div, link, and image using jQuery or vanilla JavaScript

I have a button that, when clicked, generates a panel with 4 divs, multiple href links, and multiple images. I am new to web programming and understand that this functionality needs to be in the Javascript section, especially since it involves using jsPlum ...

What could be causing Jquery to alter data while making an ajax Post request?

My situation involves an object that has the following structure: var data = { "to" : "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="83f0eceee6ecede6c3e2e1e0ade0ecee">[email protected]</a>", "attachment" : [ ...

`Generate JSON list`

How can I properly encode an array in PHP as JSON, ensuring it includes two variables? $var = 33; $last = 44; Here are the database results: foreach($query->result() as $r) { $data[]= $r; // Fills the array with results } I am attempting to cre ...

The functionality of an Ajax call is limited to a single use, regardless of using

For the past couple of weeks, I've been struggling to get my Ajax call to function more than once. As a self-taught individual, I've been trying my best to troubleshoot this issue on my own, but it's really getting to me. Some others facing ...

Pass along computed style data to the parent component in Vue.js

I am relatively new to VueJS and currently in the process of exploring its features. One specific issue I am facing on my website involves a TopBar component that includes both the logo and the menu. <template> <div id="topBar"> <div ...

In order to use the Angular CLI, you must have a Node.js version that is at least v14.20, v16.13, or v18

Despite having node js version 14.20.0, I am encountering this error. Could someone kindly help me identify the issue? PS C:\asu-mobile\moodleapp> ionic build > npm.cmd run ionic:build:before > <a href="/cdn-cgi/l/email-protection" c ...

What is the best way to implement a require function for an external JSON file in the final build of a Vue.js web application?

I have developed a quiz web application that is currently only accessible locally on my machine. The logic and architecture of the app are all set up, but I am facing a challenge: how can I have the question list pulled from "questionOptions.js" externally ...

Having trouble accessing portlet resource URL from JavaScript in Liferay 6.2

I have been working with Liferay Portal 6.2 CE GA3 and I am facing an issue where I need to execute a custom portlet resource method from another portlet's JSP file. Below is the code snippet I am currently using. <a href ="#" onclick="myfunctio ...

I am looking for a way to transfer data collected from an input form directly to my email address without the need to open a new window. As of now, I am utilizing angular

Is there a way to send this data to my email address? I need help implementing a method to achieve this. {Name: "John", phoneNumber: "12364597"} Name: "John" phoneNumber: "12364597" __proto__: Object ...