From 408db635cd70f3db50380d88f6b15dc25fb857dc Mon Sep 17 00:00:00 2001 From: Pedro Durek Date: Thu, 11 Mar 2021 22:03:21 -0600 Subject: [PATCH 1/2] Move types --- src/index.d.ts => index.d.ts | 0 package.json | 4 ++-- {src/ts4.1 => ts4.1}/index.d.ts | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/index.d.ts => index.d.ts (100%) rename {src/ts4.1 => ts4.1}/index.d.ts (100%) diff --git a/src/index.d.ts b/index.d.ts similarity index 100% rename from src/index.d.ts rename to index.d.ts diff --git a/package.json b/package.json index 5f7645b15..a896fcfe7 100644 --- a/package.json +++ b/package.json @@ -3,11 +3,11 @@ "version": "11.8.9", "description": "Internationalization for react done right. Using the i18next i18n ecosystem.", "main": "dist/commonjs/index.js", - "types": "src/index.d.ts", + "types": "./index.d.ts", "typesVersions": { ">=4.1": { "*": [ - "src/ts4.1/index.d.ts" + "ts4.1/*" ] } }, diff --git a/src/ts4.1/index.d.ts b/ts4.1/index.d.ts similarity index 100% rename from src/ts4.1/index.d.ts rename to ts4.1/index.d.ts From f9db6be1af00a2b05ada986248f3c3b0c078e69f Mon Sep 17 00:00:00 2001 From: Pedro Durek Date: Thu, 11 Mar 2021 22:19:38 -0600 Subject: [PATCH 2/2] Fix react-i18next path --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 3d58bce96..55c19aace 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "strict": true, "noEmit": true, "baseUrl": ".", - "paths": { "react-i18next": ["./src"] }, + "paths": { "react-i18next": ["./"] }, "esModuleInterop": true, "allowSyntheticDefaultImports": true