rename install nodemodules to npm-install
This commit is contained in:
parent
9c087bb8b8
commit
1414aec53b
3 changed files with 10 additions and 13 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @file Generate config.yaml file from template. Intended to run as a child process.
|
||||
* @file Generate config.yaml file from template. Also intended to run as a child process.
|
||||
*/
|
||||
|
||||
const { fork } = require("child_process");
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @file Install node modules for the VS Code extension. This is intended to run as a child process.
|
||||
* @file Install node modules for the VS Code extension and gui. This is also intended to run as a child process.
|
||||
*/
|
||||
|
||||
const { fork } = require("child_process");
|
||||
|
|
@ -40,16 +40,13 @@ process.on("message", (msg) => {
|
|||
}
|
||||
});
|
||||
|
||||
async function installNodeModules() {
|
||||
const installVscodeChild = fork(
|
||||
path.join(__dirname, "install-nodemodules.js"),
|
||||
{
|
||||
stdio: "inherit",
|
||||
},
|
||||
);
|
||||
async function npmInstall() {
|
||||
const installVscodeChild = fork(__filename, {
|
||||
stdio: "inherit",
|
||||
});
|
||||
installVscodeChild.send({ payload: { targetDir: "vscode" } });
|
||||
|
||||
const installGuiChild = fork(path.join(__dirname, "install-nodemodules.js"), {
|
||||
const installGuiChild = fork(__filename, {
|
||||
stdio: "inherit",
|
||||
});
|
||||
installGuiChild.send({ payload: { targetDir: "gui" } });
|
||||
|
|
@ -78,5 +75,5 @@ async function installNodeModules() {
|
|||
}
|
||||
|
||||
module.exports = {
|
||||
installNodeModules,
|
||||
npmInstall,
|
||||
};
|
||||
|
|
@ -13,7 +13,7 @@ const {
|
|||
const { copySqlite, copyEsbuild } = require("./download-copy-sqlite-esbuild");
|
||||
const { generateAndCopyConfigYamlSchema } = require("./generate-copy-config");
|
||||
const { installAndCopyNodeModules } = require("./install-copy-nodemodule");
|
||||
const { installNodeModules } = require("./install-nodemodules");
|
||||
const { npmInstall } = require("./npm-install");
|
||||
const { writeBuildTimestamp, continueDir } = require("./utils");
|
||||
|
||||
// Clear folders that will be packaged to ensure clean slate
|
||||
|
|
@ -70,7 +70,7 @@ void (async () => {
|
|||
// Make sure we have an initial timestamp file
|
||||
writeBuildTimestamp();
|
||||
|
||||
await Promise.all([generateAndCopyConfigYamlSchema(), installNodeModules()]);
|
||||
await Promise.all([generateAndCopyConfigYamlSchema(), npmInstall()]);
|
||||
|
||||
process.chdir(path.join(continueDir, "gui"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue