1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-25 09:44:22 +03:00

build(bridge/nodejs): avoid installing dependencies each time we build

This commit is contained in:
Divlo 2023-05-07 01:14:44 +02:00
parent 07e253f663
commit 426c816ca4
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9

View File

@ -137,14 +137,6 @@ BUILD_TARGETS.set('tcp-server', {
* Build for binaries not requiring a Python environment
*/
try {
const currentWorkingDirectory = process.cwd()
process.chdir(NODEJS_BRIDGE_ROOT_PATH)
await command('npm install', {
shell: true,
stdio: 'inherit'
})
process.chdir(currentWorkingDirectory)
const distBinPath = path.join(NODEJS_BRIDGE_DIST_PATH, 'bin')
const distMainFilePath = path.join(
distBinPath,