Skip to content

Commit 4072269

Browse files
committed
fix: include .d.ts in output package.json
1 parent 2f244fd commit 4072269

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
} from "node:fs";
88
import * as prettier from "prettier";
99
import overrides from "./overrides/index.js";
10+
import { types } from "node:util"
1011

1112
/* if (!process.env.GITHUB_ACTIONS && !process.env.ANICCA_REPOSITORY_PATH) {
1213
throw new Error("Please set ANICCA_REPOSITORY_PATH");
@@ -183,7 +184,8 @@ They are all generated, your changes would be overwritten with the next update.
183184
description:
184185
"GitHub's official Webhooks OpenAPI spec with Octokit extensions",
185186
main: "index.js",
186-
files: ["generated/*", "index.js"],
187+
types: "index.d.ts",
188+
files: ["generated/*", "index.js", "index.d.ts"],
187189
type: "module",
188190
repository: {
189191
type: "git",

0 commit comments

Comments
 (0)