Skip to content

Commit 2d9c0fd

Browse files
committed
🔖 v1.0.0
1 parent 36fb884 commit 2d9c0fd

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

scripts/node_support.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import { build } from "https://deno.land/x/dnt@0.22.0/mod.ts";
2+
3+
const publisher = {
4+
name: "Eliaz Bobadilla",
5+
username: "ultirequiem",
6+
email: "eliaz.bobadilladev@gmail.com",
7+
site: "https://ultirequiem.com",
8+
} as const;
9+
10+
const packageConfig = {
11+
name: "@ultirequiem/stable-fn",
12+
repoName: "is-number",
13+
version: "1.0.0",
14+
description: "Ensure the same input always produces the same output",
15+
keywords: ["testing", "assert"],
16+
license: "MIT",
17+
homepage: "https://stable-fn.js.org",
18+
} as const;
19+
20+
await build({
21+
entryPoints: ["./mod.ts"],
22+
23+
outDir: "./node",
24+
25+
shims: {
26+
deno: true,
27+
},
28+
29+
package: {
30+
name: packageConfig.name,
31+
description: packageConfig.description,
32+
33+
version: packageConfig.version,
34+
35+
license: packageConfig.license,
36+
37+
funding: {
38+
type: "patreon",
39+
url: `https://www.patreon.com/${publisher.username}`,
40+
},
41+
42+
repository: `github:${publisher.username}/${packageConfig.repoName}`,
43+
homepage: packageConfig.homepage,
44+
45+
bugs: {
46+
url: `https://github.com/${publisher.username}/${packageConfig.repoName}/issues`,
47+
email: publisher.email,
48+
},
49+
50+
keywords: packageConfig.keywords,
51+
},
52+
});
53+
54+
Deno.copyFileSync("license", "node/LICENSE");
55+
Deno.copyFileSync("readme.md", "node/README.md");

0 commit comments

Comments
 (0)