From 724aaedac4e7e46967968887fc8d5b7586438836 Mon Sep 17 00:00:00 2001 From: uakci Date: Thu, 25 Jul 2024 23:33:07 +0200 Subject: [PATCH] hotfix: use of `with: {type: 'json'}` for node22 --- core/server.ts | 2 +- flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/server.ts b/core/server.ts index 5441f94..c22cf5b 100644 --- a/core/server.ts +++ b/core/server.ts @@ -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; diff --git a/flake.nix b/flake.nix index 5dc0c10..bd384c1 100644 --- a/flake.nix +++ b/flake.nix @@ -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 <