-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.npm-github.build.ts
More file actions
43 lines (43 loc) · 1.07 KB
/
.npm-github.build.ts
File metadata and controls
43 lines (43 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV).",
keywords: [
"fnv",
"fnv0",
"fnv1",
"fnv1a",
"fowler-noll-vo",
"hash"
],
homepage: "https://github.com/hugoalh/fnv-es#readme",
bugs: {
url: "https://github.com/hugoalh/fnv-es/issues"
},
license: "MIT",
author: "hugoalh",
repository: {
type: "git",
url: "git+https://github.com/hugoalh/fnv-es.git"
},
private: false,
publishConfig: {
access: "public"
}
},
outputDirectory: "dist/npm-github",
outputDirectoryPreEmpty: true
});