Skip to content

Commit 8d3227d

Browse files
committed
Add TS config
1 parent 778ec98 commit 8d3227d

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

bun.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"lockfileVersion": 1,
3+
"workspaces": {
4+
"": {
5+
"devDependencies": {
6+
"@types/node": "^24.7.0",
7+
},
8+
},
9+
},
10+
"packages": {
11+
"@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~7.14.0" } }, "sha512-IbKooQVqUBrlzWTi79E8Fw78l8k1RNtlDDNWsFZs7XonuQSJ8oNYfEeclhprUldXISRMLzBpILuKgPlIxm+/Yw=="],
12+
13+
"undici-types": ["[email protected]", "", {}, "sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA=="],
14+
}
15+
}

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"dependencies": {},
3+
"devDependencies": {
4+
"@types/node": "^24.7.0"
5+
}
6+
}

tsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2020",
4+
"module": "ESNext",
5+
"moduleResolution": "node",
6+
"esModuleInterop": true,
7+
"allowSyntheticDefaultImports": true,
8+
"strict": true,
9+
"skipLibCheck": true,
10+
"forceConsistentCasingInFileNames": true,
11+
"types": ["node"]
12+
},
13+
"include": ["utils/**/*.ts"]
14+
}

utils/encrypt-commands.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
import * as crypto from 'crypto';
88
import * as path from 'path';
99
import * as fs from 'fs';
10+
import { fileURLToPath } from 'url';
11+
import { dirname } from 'path';
12+
13+
const __filename = fileURLToPath(import.meta.url);
14+
const __dirname = dirname(__filename);
1015

1116
const ENCRYPTED_FILE: string = path.resolve(
1217
__dirname,

0 commit comments

Comments
 (0)