Skip to content

Commit

Permalink
fix node version
Browse files Browse the repository at this point in the history
  • Loading branch information
mebtte committed Apr 30, 2024
1 parent fd66e43 commit ce626db
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/run_by_source_code/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Requirements

- [Node>=18](https://nodejs.org)
- [Node>=20](https://nodejs.org)

## Deployment

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ docker run -it --rm -v <data>:/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:

Expand Down

0 comments on commit ce626db

Please sign in to comment.