is-string-ascii-es/.npm-npm.build.ts
2026-05-07 18:25:49 +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 determine whether the string is ASCII.",
keywords: [
"ascii",
"is",
"string"
],
homepage: "https://github.com/hugoalh/is-string-ascii-es#readme",
bugs: {
url: "https://github.com/hugoalh/is-string-ascii-es/issues"
},
license: "MIT",
author: "hugoalh",
repository: {
type: "git",
url: "git+https://github.com/hugoalh/is-string-ascii-es.git"
},
private: false,
publishConfig: {
access: "public"
}
},
outputDirectory: "dist/npm-npm",
outputDirectoryPreEmpty: true
});