Skip to content

Commit

Permalink
hotfix: use of with: {type: 'json'} for node22
Browse files Browse the repository at this point in the history
  • Loading branch information
uakci committed Jul 25, 2024
1 parent 03d7a23 commit 724aaed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let config = commons.config;

const VERSION = (
await import(pathToFileURL(`${installation_dir}/package.json`).href, {
assert: { type: 'json' },
with: { type: 'json' },
})
).default.version;

Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
cp -r ${backend}/* ${self}/{config,package.json} $out/libexec/toadua
cp -r ${frontend} $out/libexec/toadua/frontend
tee > $out/bin/toadua <<EOF
${pkgs.nodejs_latest}/bin/node $out/libexec/toadua/dist/core/server.js \$@
${pkgs.nodejs_latest}/bin/node --no-warnings=ExperimentalWarning $out/libexec/toadua/dist/core/server.js \$@
EOF
chmod +x $out/bin/toadua
'';
Expand Down

0 comments on commit 724aaed

Please sign in to comment.