Update main entry and tsconfig for JS support

Changed package.json main and exports to use index.js instead of index.cjs. Updated tsconfig.json to allow JavaScript files and expanded include patterns to support both JS and TS files.
This commit is contained in:
手瓜一十雪
2025-11-15 16:09:26 +08:00
parent fd0febb47b
commit 54aef4fe1d
2 changed files with 10 additions and 3 deletions

View File

@@ -1,7 +1,14 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"allowJs": true
},
"include": [
"**/*.cjs"
"*.cjs",
"**/*.cjs",
"**/*.ts",
"*.js",
"**/*.js"
],
"exclude": [
"node_modules",