From b2f085bb54bdf43d791a7e42823f2d859a78b378 Mon Sep 17 00:00:00 2001 From: Starman <30315137+Starman3787@users.noreply.github.com> Date: Sat, 14 Sep 2024 18:13:49 +0100 Subject: [PATCH] generate index.d.ts ? --- .github/workflows/structures.yml | 2 +- package.json | 1 + tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/structures.yml b/.github/workflows/structures.yml index fe4eb186..b38d00dc 100644 --- a/.github/workflows/structures.yml +++ b/.github/workflows/structures.yml @@ -73,6 +73,6 @@ jobs: - name: Commit changes uses: EndBug/add-and-commit@v9 with: - add: '["src/structures/compiled", "dist"]' + add: '["src/structures/compiled", "dist", "index.d.ts"]' committer_email: 30315137+Starman3787@users.noreply.github.com committer_name: Starman diff --git a/package.json b/package.json index de5986e7..82c06ee0 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "library", "quark" ], + "types": "./index.d.ts", "exports": { ".": { "default": "./index.js" diff --git a/tsconfig.json b/tsconfig.json index d2db9517..5d250e64 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { // Change this to match your project - "include": ["src/**/*"], + "include": ["src/**/*", "index.js"], "exclude": ["node_modules", "**/*.spec.ts"], "compilerOptions": { // Tells TypeScript to read JS files, as