diff --git a/.nvmrc b/.nvmrc index 3c032078..209e3ef4 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +20 diff --git a/build.sh b/build.sh index b182a617..8674935e 100755 --- a/build.sh +++ b/build.sh @@ -37,9 +37,9 @@ cp package.json package.json.bak # write pkg targets to package.json pkg="$(cat package.json)" if [[ $1 == "docker" ]]; then - node -e "const pkg = JSON.parse(\`$pkg\`); pkg.pkg.targets = [\"node18-linux-x64\"]; console.log(JSON.stringify(pkg))" >package.json + node -e "const pkg = JSON.parse(\`$pkg\`); pkg.pkg.targets = [\"node20-linux-x64\"]; console.log(JSON.stringify(pkg))" >package.json else - node -e "const pkg = JSON.parse(\`$pkg\`); pkg.pkg.targets = [\"node18-macos-x64\",\"node18-win-x64\",\"node18-linux-x64\"]; console.log(JSON.stringify(pkg))" >package.json + node -e "const pkg = JSON.parse(\`$pkg\`); pkg.pkg.targets = [\"node20-macos-x64\",\"node20-win-x64\",\"node20-linux-x64\"]; console.log(JSON.stringify(pkg))" >package.json fi if [ -d "build" ]; then diff --git a/docs/run_by_source_code/index.md b/docs/run_by_source_code/index.md index 076dc18c..e9232b10 100644 --- a/docs/run_by_source_code/index.md +++ b/docs/run_by_source_code/index.md @@ -2,7 +2,7 @@ ## Requirements -- [Node>=18](https://nodejs.org) +- [Node>=20](https://nodejs.org) ## Deployment diff --git a/readme.md b/readme.md index 3f7754d1..d11ebf74 100644 --- a/readme.md +++ b/readme.md @@ -136,7 +136,7 @@ docker run -it --rm -v :/data mebtte/cicada:v2 fix-data /data Cicada is a **monorepo** that contains two sub-projects under the `apps` directory. `cli` is for the server, which is used to manage assets and start services. `pwa` is for the client, which is used to access for users. And there is a `shared` directory on the root, which contains the code runs on both `cli` and `pwa`. -If you want to develop or contribute, **most of cicada is developed by TS/JS** and you should know it. Cicada relies on [Node>=18](https://nodejs.org) and you should install it on your device first. +If you want to develop or contribute, **most of cicada is developed by TS/JS** and you should know it. Cicada relies on [Node>=20](https://nodejs.org) and you should install it on your device first. Clone the project: