From dae913fcffd354a1772da9440698352ddd9c9b1f Mon Sep 17 00:00:00 2001 From: qpismont Date: Thu, 4 Jan 2024 21:33:53 +0100 Subject: [PATCH] add publish to gitea package --- deno.json | 3 ++- scripts/build_npm.ts | 9 +++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/deno.json b/deno.json index 9210367..ff3d471 100644 --- a/deno.json +++ b/deno.json @@ -7,6 +7,7 @@ }, "tasks": { "test": "deno test --allow-net --parallel", - "build": "deno run -A scripts/build_npm.ts 0.1.0" + "build": "deno run -A scripts/build_npm.ts 0.1.0", + "publish": "cd npm && npm publish" } } diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index 513ab33..aeda476 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -11,16 +11,13 @@ await build({ test: false, importMap: "deno.json", package: { - name: "nano-service", + name: "@qpismont/nano-service", version: Deno.args[0], description: "Your package.", license: "MIT", repository: { - type: "git", - url: "git+https://github.com/username/repo.git", - }, - bugs: { - url: "https://github.com/username/repo/issues", + "type": "git", + "url": "https://gitea.qpismont.fr/qpismont/nano-service", }, }, postBuild() {