From e98fd1dafeb51809e8e427d005d3e73f402810b3 Mon Sep 17 00:00:00 2001 From: Rahul Vyas Date: Fri, 27 Feb 2026 00:41:21 +0530 Subject: [PATCH 1/2] Add TypeScript support with configuration and initial source files --- package-lock.json | 33 +++++++++++++++++++++++++++++++++ package.json | 7 +++++-- src/index.ts | 0 tsconfig.json | 15 +++++++++++++++ 4 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 package-lock.json create mode 100644 src/index.ts create mode 100644 tsconfig.json diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..96e04b8 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,33 @@ +{ + "name": "@aossie/support-us-button", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@aossie/support-us-button", + "version": "1.0.0", + "license": "GNU General Public License v3.0", + "devDependencies": { + "typescript": "^5.9.3" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + } + } +} diff --git a/package.json b/package.json index 9bf5034..084d897 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "license": "GNU General Public License v3.0", "author": "AOSSIE Organization", "type": "module", - "main": "index.js", + "main": "src/index.ts", "files": [ "dist", "index.js", @@ -35,5 +35,8 @@ }, "engines": { "node": ">=14" + }, + "devDependencies": { + "typescript": "^5.9.3" } -} \ No newline at end of file +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..b7aed20 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ESNext", + "declaration": true, + "outDir": "dist", + "strict": true, + "jsx": "react-jsx", + "moduleResolution": "Node", + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true + }, + "include": ["src"] +} \ No newline at end of file From 06d856cb0edc3f014a3ff7720d5861e9f960dfc1 Mon Sep 17 00:00:00 2001 From: Rahul Vyas Date: Fri, 27 Feb 2026 13:48:09 +0530 Subject: [PATCH 2/2] Fix moduleResolution casing in tsconfig.json --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index b7aed20..bfea8ab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "outDir": "dist", "strict": true, "jsx": "react-jsx", - "moduleResolution": "Node", + "moduleResolution": "nodenext", "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true