Skip to content

Commit 8980cd3

Browse files
Merge pull request #2 from rahul-vyas-dev/main
Add TypeScript support with configuration and initial source files
2 parents 2ec5238 + 06d856c commit 8980cd3

4 files changed

Lines changed: 53 additions & 2 deletions

File tree

package-lock.json

Lines changed: 33 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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"license": "GNU General Public License v3.0",
2323
"author": "AOSSIE Organization",
2424
"type": "module",
25-
"main": "index.js",
25+
"main": "src/index.ts",
2626
"files": [
2727
"dist",
2828
"index.js",
@@ -35,5 +35,8 @@
3535
},
3636
"engines": {
3737
"node": ">=14"
38+
},
39+
"devDependencies": {
40+
"typescript": "^5.9.3"
3841
}
39-
}
42+
}

src/index.ts

Whitespace-only changes.

tsconfig.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2020",
4+
"module": "ESNext",
5+
"declaration": true,
6+
"outDir": "dist",
7+
"strict": true,
8+
"jsx": "react-jsx",
9+
"moduleResolution": "nodenext",
10+
"esModuleInterop": true,
11+
"skipLibCheck": true,
12+
"forceConsistentCasingInFileNames": true
13+
},
14+
"include": ["src"]
15+
}

0 commit comments

Comments
 (0)