range-iterator-es/.npm-npm.build.ts
2026-05-09 18:10:19 +08:00

40 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 to iterate between range.",
keywords: [
"range",
"iterate",
"iterator"
],
homepage: "https://github.com/hugoalh/range-iterator-es#readme",
bugs: {
url: "https://github.com/hugoalh/range-iterator-es/issues"
},
license: "MIT",
author: "hugoalh",
repository: {
type: "git",
url: "git+https://github.com/hugoalh/range-iterator-es.git"
},
private: false,
publishConfig: {
access: "public"
}
},
outputDirectory: "dist/npm-npm",
outputDirectoryPreEmpty: true
});