Skip to content

Commit 5b18055

Browse files
committed
add jest to types
Signed-off-by: Donnie Adams <[email protected]>
1 parent 0228f12 commit 5b18055

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

scripts/install-binary.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
'use strict'
44

5-
import { DownloaderHelper } from 'node-downloader-helper';
5+
import {DownloaderHelper} from 'node-downloader-helper';
66
import fs from 'fs';
77
import path from 'path';
88
import AdmZip from 'adm-zip';
@@ -44,7 +44,7 @@ async function downloadAndExtract(url, saveDirectory) {
4444
async function versions_match() {
4545
try {
4646
const command = path.join(outputDir, gptscriptBinaryName) + ' --version';
47-
const { stdout } = await exec(command);
47+
const {stdout} = await exec(command);
4848
return stdout.toString().includes(gptscript_info.version);
4949
} catch (err) {
5050
console.error('Error checking gptscript version:', err);
@@ -111,6 +111,7 @@ async function needToInstall() {
111111
}
112112
}
113113
}
114+
114115
(async () => {
115116
await needToInstall();
116117
if (process.env.NODE_GPTSCRIPT_SKIP_INSTALL_BINARY === 'true') {

tsconfig.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@
1313
"sourceMap": true,
1414
"emitDecoratorMetadata": true,
1515
"experimentalDecorators": true,
16-
"typeRoots": ["./node_modules/@types","./src"],
17-
"types": ["node"]
16+
"typeRoots": [
17+
"./node_modules/@types",
18+
"./src"
19+
],
20+
"types": [
21+
"node",
22+
"jest"
23+
]
1824
},
1925
"exclude": [
2026
"node_modules",

0 commit comments

Comments
 (0)