nacl-es/.npm-kaki87.build.ts
2026-05-08 16:23:32 +08:00

38 lines
1 KiB
TypeScript

import { invokeDenoNodeJSTransformer } from "DNT";
import { parse as parseJSONC } from "STD_JSONC";
const jsrManifest = parseJSONC(await Deno.readTextFile(new URL(import.meta.resolve("./jsr.jsonc"))));
await invokeDenoNodeJSTransformer({
copyEntries: [
"LICENSE.md",
"README.md"
],
//@ts-ignore Lazy type.
entrypointsScript: jsrManifest.exports,
generateDeclarationMap: true,
metadata: {
//@ts-ignore Lazy type.
name: jsrManifest.name,
//@ts-ignore Lazy type.
version: jsrManifest.version,
description: "A module for NaCl / TweetNaCl high-security cryptographic library.",
keywords: [
"nacl"
],
homepage: "https://git.kaki87.net/hugoalh/nacl-es#readme",
bugs: {
url: "https://git.kaki87.net/hugoalh/nacl-es/issues"
},
license: "MIT",
author: "hugoalh",
repository: {
type: "git",
url: "git+https://git.kaki87.net/hugoalh/nacl-es.git"
},
private: false,
publishConfig: {
access: "public"
}
},
outputDirectory: "dist/npm-kaki87",
outputDirectoryPreEmpty: true
});