Skip to content

Commit 70022de

Browse files
committed
🐛 fix(tsconfig.json): error with types fixed
fixed error with jest and bun-types
1 parent 9f4ebc2 commit 70022de

File tree

4 files changed

+66
-33
lines changed

4 files changed

+66
-33
lines changed

bun.lockb

1.43 KB
Binary file not shown.

package-lock.json

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -131,79 +131,79 @@
131131
"cz-gitmoji-adapter": {
132132
"scopes": [
133133
".depcheckrc.json",
134-
".eslintrc.json",
135134
".eslintignore",
135+
".eslintrc.json",
136136
".gitignore",
137-
".prettierrc.json",
138137
".prettierignore",
138+
".prettierrc.json",
139139
"license",
140140
"readme.md",
141141
"commitlint.config.ts",
142-
"default-template.hbs",
143142
"commit-template.hbs",
143+
"default-template.hbs",
144144
"emojitypescommitmessages.txt",
145145
"jest.config.json",
146146
"package-lock.json",
147147
"package.json",
148148
"release.config.ts",
149149
"renovate.json",
150-
"typedoc.json",
151150
"tsconfig.json",
151+
"typedoc.json",
152152
".vscode/settings.json",
153153
"public/.gitkeep",
154154
"repo_management_files/cz-emoji-type-extract.js",
155+
"repo_management_files/cz-type-extract.js",
155156
"repo_management_files/directorystructuredocument.md",
156157
"repo_management_files/extractfilescopes.js",
157-
"repo_management_files/gitmojisemver-extract.js",
158-
"repo_management_files/issues.sh",
159158
"repo_management_files/genericcommitmessages.md",
159+
"repo_management_files/issues.sh",
160160
"repo_management_files/labels.sh",
161161
"repo_management_files/packagejsondocument.md",
162-
"repo_management_files/cz-type-extract.js",
163-
".github/dependabot.yml",
164-
".github/workflows/build.yml",
165-
".github/workflows/lint.yml",
166-
".github/workflows/docs.yml",
167-
".github/workflows/pr.yml",
168-
".github/workflows/release.yml",
169-
".github/workflows/test.yml",
162+
"repo_management_files/gitmojisemver-extract.js",
170163
".husky/commit-msg",
171164
".husky/prepare-commit-msg",
172-
".husky/_/applypatch-msg",
173165
".husky/_/.gitignore",
166+
".husky/_/applypatch-msg",
167+
".husky/_/h",
174168
".husky/_/commit-msg",
175-
".husky/_/post-applypatch",
176169
".husky/_/post-checkout",
170+
".husky/_/post-applypatch",
177171
".husky/_/post-commit",
178-
".husky/_/post-rewrite",
179-
".husky/_/pre-applypatch",
180172
".husky/_/post-merge",
173+
".husky/_/pre-applypatch",
181174
".husky/_/pre-auto-gc",
182-
".husky/_/h",
183175
".husky/_/pre-commit",
184176
".husky/_/pre-push",
185177
".husky/_/pre-rebase",
178+
".husky/_/post-rewrite",
186179
".husky/_/prepare-commit-msg",
187-
"src/app.ts",
188-
"src/bin/.gitkeep",
189-
"src/controllers/.gitkeep",
190-
"src/plugins/.gitkeep",
191-
"src/configs/.gitkeep",
192-
"src/utils/.gitkeep",
193-
"src/models/.gitkeep",
194-
"src/routes/.gitkeep",
195-
"src/middleware/.gitkeep",
196-
"src/views/.gitkeep",
180+
".github/dependabot.yml",
181+
".github/workflows/build.yml",
182+
".github/workflows/docs.yml",
183+
".github/workflows/lint.yml",
184+
".github/workflows/pr.yml",
185+
".github/workflows/release.yml",
186+
".github/workflows/test.yml",
197187
"test/.gitkeep",
198188
"test/bin/.gitkeep",
199189
"test/configs/.gitkeep",
200190
"test/middleware/.gitkeep",
201191
"test/controllers/.gitkeep",
202192
"test/models/.gitkeep",
203193
"test/plugins/.gitkeep",
204-
"test/routes/.gitkeep",
194+
"test/utils/.gitkeep",
205195
"test/views/.gitkeep",
206-
"test/utils/.gitkeep"
196+
"test/routes/.gitkeep",
197+
"src/app.ts",
198+
"src/bin/.gitkeep",
199+
"src/configs/.gitkeep",
200+
"src/controllers/.gitkeep",
201+
"src/middleware/.gitkeep",
202+
"src/plugins/.gitkeep",
203+
"src/utils/.gitkeep",
204+
"src/views/.gitkeep",
205+
"src/routes/.gitkeep",
206+
"src/models/.gitkeep"
207207
],
208208
"questions": {
209209
"scope": "Specify a scope: "
@@ -225,6 +225,7 @@
225225
"@types/jest": "29.5.12",
226226
"@typescript-eslint/eslint-plugin": "7.16.1",
227227
"@typescript-eslint/parser": "7.16.1",
228+
"bun-types": "1.1.20",
228229
"commitizen": "4.3.0",
229230
"commitlint": "19.3.0",
230231
"commitlint-config-gitmoji": "2.3.1",
@@ -272,4 +273,4 @@
272273
}
273274
}
274275
}
275-
}
276+
}

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
"allowSyntheticDefaultImports": true,
1616
"forceConsistentCasingInFileNames": true,
1717
"allowJs": true,
18-
"types": ["jest"],
18+
"types": [
19+
"bun-types", // add Bun global
20+
"jest"
21+
],
1922
"outDir": "./dist",
2023
"esModuleInterop": true
2124
},

0 commit comments

Comments
 (0)