chore: publish on both jsr & npm (0.1.2)

This commit is contained in:
Shibo Lyu 2024-05-05 12:03:02 +08:00
parent 1bff47e2a3
commit 182314c0f6
3 changed files with 31 additions and 2 deletions

View file

@ -1,5 +1,7 @@
import { build, emptyDir } from "@deno/dnt";
import denoJson from "../deno.json" with { type: "json" };
await emptyDir("./npm");
await build({
@ -12,7 +14,7 @@ await build({
package: {
// package.json properties
name: "@textplace/core",
version: Deno.args[0],
version: denoJson.version,
description: "The core logic of TextPlace.",
license: "MIT",
repository: {