From c75ad5df87f259d92cec3bd32a73478a8cadc425 Mon Sep 17 00:00:00 2001 From: laxmanpokhrel Date: Thu, 21 Mar 2024 08:38:51 +0545 Subject: [PATCH 1/2] fix: Build configuration changes to map import --- .gitignore | 4 +++- .release/config.json | 2 +- .release/release-notes.txt | 2 +- package.json | 2 ++ tsconfig.json | 5 +++-- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 9e77d26..ee20155 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -.vscode/* \ No newline at end of file +.vscode/* +lib/* +lib diff --git a/.release/config.json b/.release/config.json index 03d7e49..5c0dc42 100644 --- a/.release/config.json +++ b/.release/config.json @@ -1,4 +1,4 @@ { - "versionUpgradeType": "major", + "versionUpgradeType": "patch", "releaseType": "--latest" } \ No newline at end of file diff --git a/.release/release-notes.txt b/.release/release-notes.txt index 154af52..2c3eb28 100644 --- a/.release/release-notes.txt +++ b/.release/release-notes.txt @@ -1,2 +1,2 @@ # Changes -- Sementic release removed +- Build configuration changes to map import diff --git a/package.json b/package.json index cb3dc1e..da879f7 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,8 @@ }, "homepage": "https://github.com/laxmanpokhrel/xmanscript-use-local-storage#readme", "main": "./lib/index.js", + "types": "./lib/index.d.ts", + "scripts": { "build": "rm -rf lib && tsc", "prepare": "husky install", diff --git a/tsconfig.json b/tsconfig.json index b59c538..f0d6f19 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "strict": true, "lib": ["ES2020", "DOM"], "removeComments": false, + "jsx": "react", // Make sure this option is set to "react" "noImplicitAny": true, "strictNullChecks": true, "strictFunctionTypes": true, @@ -17,8 +18,8 @@ "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "esModuleInterop": true, - "allowSyntheticDefaultImports": false + "allowSyntheticDefaultImports": true // You can set this to true }, "exclude": ["node_modules"], - "include": [".eslintrc.js", "src", "src/**/*.ts"] + "include": ["src/**/*.ts", "src/**/*.tsx"] // Update the path to include .tsx files } From 0bf5b734835cde9cbf61d4966234f934187f8edf Mon Sep 17 00:00:00 2001 From: laxmanpokhrel Date: Thu, 21 Mar 2024 08:39:29 +0545 Subject: [PATCH 2/2] fix: Build configuration changes to map import --- .release/release-notes.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.release/release-notes.txt b/.release/release-notes.txt index 2c3eb28..abea6c7 100644 --- a/.release/release-notes.txt +++ b/.release/release-notes.txt @@ -1,2 +1,2 @@ -# Changes +# Fix - Build configuration changes to map import