From b55b8aa2502f965ec1d74caf0ded43fef0256a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lumi=C3=A8re=20=C3=89lev=C3=A9?= <88174309+PoneyClairDeLune@users.noreply.github.com> Date: Sat, 25 Jan 2025 23:51:19 +0000 Subject: [PATCH] Deno project metadata. --- deno.json | 29 +++++++++++++++++++++++++++++ sh/publish.sh | 6 ++++++ 2 files changed, 35 insertions(+) create mode 100644 deno.json create mode 100644 sh/publish.sh diff --git a/deno.json b/deno.json new file mode 100644 index 0000000..9521cce --- /dev/null +++ b/deno.json @@ -0,0 +1,29 @@ +{ + "name": "@ltgc/kd-tree", + "version": "1.0.2" + "exports": { + "./kd-tree": "./dist/kd-tree.mjs" + }, + "publish": { + "include": [ + "dist/**", + "README.md" + ] + }, + "fmt": { + "useTabs": true, + "lineWidth": 200, + "indentWidth": 4, + "semiColons": true, + "exclude": [ + "*" + ] + }, + "lint": { + "exclude": [ + "*" + ] + }, + "nodeModulesDir": "none", + "npmRegistry": "http://127.0.0.1:80/" +} \ No newline at end of file diff --git a/sh/publish.sh b/sh/publish.sh new file mode 100644 index 0000000..fc675f4 --- /dev/null +++ b/sh/publish.sh @@ -0,0 +1,6 @@ +#!/bin/bash +echo "Building..." +shx build +echo "Publishing to JSR..." +deno publish --allow-slow-types --allow-dirty --config ./deno.json +exit \ No newline at end of file