Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
update node.js to 18
zadama9296e2a39f3
diff --git a/.gitpod.yml b/.gitpod.ymlindex 914a89919d..360da5b5ff 100644--- a/.gitpod.yml+++ b/.gitpod.yml@@ -2,7 +2,7 @@ image:file: .gitpod.dockerfiletasks:- - before: nvm install 16.19.0 && nvm use 16.19.0+ - before: nvm install 18.14.0 && nvm use 18.14.0init: npm installcommand: npm run start-serverdiff --git a/Dockerfile b/Dockerfileindex caca792ab9..60fc5f5402 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,5 +1,5 @@# !!! Don't try to build this Dockerfile directly, run it through bin/build-docker.sh script !!!-FROM node:16.19.0-alpine+FROM node:18.14.0-alpine# Create app directoryWORKDIR /usr/src/appdiff --git a/bin/build-server.sh b/bin/build-server.shindex 2c42c91053..9173288b04 100755--- a/bin/build-server.sh+++ b/bin/build-server.sh@@ -1,7 +1,7 @@#!/usr/bin/env bashPKG_DIR=dist/trilium-linux-x64-server-NODE_VERSION=16.19.0+NODE_VERSION=18.14.0if [ "$1" != "DONTCOPY" ]thendiff --git a/bin/copy-trilium.sh b/bin/copy-trilium.shindex fdcb99a40e..8b87bbd12b 100755--- a/bin/copy-trilium.sh+++ b/bin/copy-trilium.sh@@ -5,7 +5,7 @@ if [[ $# -eq 0 ]] ; thenexit 1fi-n exec 16.19.0 npm run webpack+n exec 18.14.0 npm run webpackDIR=$1@@ -27,7 +27,7 @@ cp -r electron.js $DIR/cp webpack-* $DIR/# run in subshell (so we return to original dir)-(cd $DIR && n exec 16.19.0 npm install --only=prod)+(cd $DIR && n exec 18.14.0 npm install --only=prod)# cleanup of useless files in dependenciesrm -r $DIR/node_modules/image-q/demo