commit c004ec32133da069ac9da7ab78da7bf88ea2b2e7
parent 429576a8a41a113c51c77cae83ceedba9d520520
Author: mtmn <miro@haravara.org>
Date: Sat, 18 Apr 2026 03:43:26 +0200
chore: add purs-backend-es lib
Diffstat:
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/flake.nix b/flake.nix
@@ -131,7 +131,7 @@
version = "1.0.0";
inherit src;
- npmDepsHash = "sha256-0W017OKTqaGn22xUvOKyL/wwh3bg47ImOYZ0kGdvpC8=";
+ npmDepsHash = "sha256-cNN/axtm3b2zlgSoho7pBRoDsTL9w6FcSqMDXSZft7s=";
npmRebuildFlags = ["--ignore-scripts"];
nativeBuildInputs = with pkgs; [
diff --git a/package-lock.json b/package-lock.json
@@ -19,6 +19,7 @@
"purescript": "^0.15.16",
"purescript-language-server": "^0.18.0",
"purescript-psa": "^0.9.0",
+ "purs-backend-es": "^1.4.3",
"purs-tidy": "^0.11.1",
"spago": "^1.0.4"
}
@@ -5046,6 +5047,16 @@
"psa": "index.js"
}
},
+ "node_modules/purs-backend-es": {
+ "version": "1.4.3",
+ "resolved": "https://registry.npmjs.org/purs-backend-es/-/purs-backend-es-1.4.3.tgz",
+ "integrity": "sha512-wLJwI/+xbS04fKHo7KyzJ4WQ/Lrj/0AIkEt7LbXzuE+L4Qzp8+BAcf1o+faMcWFVjtTtG8frM1p9qVenB5WxRg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "purs-backend-es": "index.js"
+ }
+ },
"node_modules/purs-tidy": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/purs-tidy/-/purs-tidy-0.11.1.tgz",
diff --git a/package.json b/package.json
@@ -5,7 +5,7 @@
"main": "index.js",
"type": "module",
"scripts": {
- "build": "npx spago build && npx esbuild output/Main/index.js --bundle --platform=node --format=esm --footer:js='main();' --outfile=server.js --external:http --external:https --external:dotenv --external:url --external:duckdb --external:@aws-sdk/client-s3 --external:prom-client && elm make src/Client.elm --output=client.js",
+ "build": "npx spago build && npx purs-backend-es build && npx esbuild output-es/Main/index.js --bundle --platform=node --format=esm --footer:js='main();' --outfile=server.js --external:http --external:https --external:dotenv --external:url --external:duckdb --external:@aws-sdk/client-s3 --external:prom-client && elm make src/Client.elm --output=client.js",
"test": "npx spago test",
"tidy": "purs-tidy format-in-place src/**/*.purs"
},
@@ -15,6 +15,7 @@
"purescript": "^0.15.16",
"purescript-language-server": "^0.18.0",
"purescript-psa": "^0.9.0",
+ "purs-backend-es": "^1.4.3",
"purs-tidy": "^0.11.1",
"spago": "^1.0.4"
},