From 10df321873c1ae80fed7c685df2538f8c1715047 Mon Sep 17 00:00:00 2001 From: Goldman Kim Date: Tue, 24 Dec 2024 16:04:01 +0900 Subject: [PATCH] Update TypeScript config and revise package metadata Refined `tsconfig.json` for stricter typing and compatibility by modifying compiler options and file inclusion. Updated `package.json` to replace the `author` field with an `owners` array for more detailed contributor metadata. --- package.json | 11 +++++++---- tsconfig.json | 30 ++++++++++++++++-------------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 8e86f165..f7d63cd1 100644 --- a/package.json +++ b/package.json @@ -40,10 +40,13 @@ "devDependencies": { "@types/jquery": "^3.5.32" }, - "author": { - "name": "Goldman Kim", - "email": "bbalganjjm@gmail.com" - }, + "owners": [ + { + "name": "Goldman Kim", + "githubUsername": "bbalganjjm", + "email": "bbalganjjm@gmail.com" + } + ], "license": "LGPL v2.1", "bugs": { "url": "https://github.com/bbalganjjm/natural_js/issues", diff --git a/tsconfig.json b/tsconfig.json index 8135e9f2..d0da9abc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,18 +1,20 @@ { "compilerOptions": { - "target": "ES5", - "module": "ES6", - "strict": true, - "esModuleInterop": true, - "skipLibCheck": true, - "baseUrl": ".", - "typeRoots": ["./@types"], - "allowJs": true, - "checkJs": false, - "noEmit": true + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true }, - "include": [ - "./src/**/*", - "./@types/**/*" + "files": [ + "./@types/index.d.ts", + "./@types/natural_js-tests.ts" ] -} \ No newline at end of file +}