Skip to content

Commit

Permalink
upgrade to node 20 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Mar 13, 2024
1 parent 616bd39 commit 6e41999
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
deps/build.log
Manifest.toml
.DS_Store
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ version = "1.0.2"
DefaultApplication = "3f0dd361-4fe0-5fc6-8523-80b14ec94d85"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
NodeJS_18_jll = "c1e1d063-8311-5f52-a749-c7b05e91ae37"
NodeJS_20_jll = "c7aee132-11e1-519c-8219-0a43005e73c2"
Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00"
Scratch = "6c6a2e73-6563-6170-7368-637461726353"

[compat]
DefaultApplication = "1"
JSON = "0.20, 0.21"
NodeJS_18_jll = "18"
NodeJS_20_jll = "20"
Pluto = "0.16, 0.17, 0.18, 0.19"
RelocatableFolders = "1"
Scratch = "1"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ If you don't have `npm`, then run `julia --project` and then

```julia
import PlutoPDF
PlutoPDF.build_node(pwd())
PlutoPDF.build_node(joinpath(pwd(), "node"))
```
2 changes: 1 addition & 1 deletion src/PlutoPDF.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PlutoPDF

import Pluto
import NodeJS_18_jll: node
import NodeJS_20_jll: node
import JSON
import DefaultApplication

Expand Down
10 changes: 5 additions & 5 deletions src/setup_build.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import NodeJS_18_jll
import NodeJS_20_jll
using Scratch
using RelocatableFolders

Expand All @@ -9,13 +9,13 @@ const node_root_files = (
@path(joinpath(dirname(@__DIR__), "node", "package.json")),
)

const npm = !Sys.iswindows() ? NodeJS_18_jll.npm : let
new = "$(NodeJS_18_jll.npm).cmd"
isfile(new) ? new : NodeJS_18_jll.npm
const npm = !Sys.iswindows() ? NodeJS_20_jll.npm : let
new = "$(NodeJS_20_jll.npm).cmd"
isfile(new) ? new : NodeJS_20_jll.npm
end

function get_build_dir()
build_node(@get_scratch!("build_dir2"))
build_node(@get_scratch!("build_dir3"))
end


Expand Down

0 comments on commit 6e41999

Please sign in to comment.