From 8fcddcb44e67f9a8805709dfdb0f730ddbc0d569 Mon Sep 17 00:00:00 2001 From: Aral Roca Date: Wed, 25 Sep 2024 22:17:00 +0200 Subject: [PATCH 1/2] fix: fix tarball --- package.json | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 2f7c397..d875990 100644 --- a/package.json +++ b/package.json @@ -31,20 +31,36 @@ "types": "./index.d.ts", "files": [ "lib", - "appWithI18n*", - "DynamicNamespaces*", - "I18nProvider*", - "context*", - "getT*", - "loadNamespaces*", - "Trans*", - "withTranslation*", - "useTranslation*", - "setLanguage*", - "index*", - "AppDirI18nProvider*", - "createTranslation*", - "formatElements*" + "appWithI18n", + "appWithI18n.d.ts", + "DynamicNamespaces", + "DynamicNamespaces.d.ts", + "I18nProvider", + "I18nProvider.d.ts", + "context", + "context.d.ts", + "getT", + "getT.d.ts", + "loadNamespaces", + "loadNamespaces.d.ts", + "Trans", + "Trans.d.ts", + "TransText", + "TransText.d.ts", + "withTranslation", + "withTranslation.d.ts", + "useTranslation", + "useTranslation.d.ts", + "setLanguage", + "setLanguage.d.ts", + "index", + "index.d.ts", + "AppDirI18nProvider", + "AppDirI18nProvider.d.ts", + "createTranslation", + "createTranslation.d.ts", + "formatElements", + "formatElements.d.ts" ], "scripts": { "build": "yarn clean && cross-env NODE_ENV=production && yarn tsc", From faa0bc6e80f6b64be8909994acf04e12124ad0ee Mon Sep 17 00:00:00 2001 From: Aral Roca Date: Thu, 26 Sep 2024 09:15:07 +0200 Subject: [PATCH 2/2] refactor: improve files declaration --- package.json | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index d875990..be766d4 100644 --- a/package.json +++ b/package.json @@ -31,36 +31,22 @@ "types": "./index.d.ts", "files": [ "lib", + "*.d.ts", "appWithI18n", - "appWithI18n.d.ts", "DynamicNamespaces", - "DynamicNamespaces.d.ts", "I18nProvider", - "I18nProvider.d.ts", "context", - "context.d.ts", "getT", - "getT.d.ts", "loadNamespaces", - "loadNamespaces.d.ts", "Trans", - "Trans.d.ts", "TransText", - "TransText.d.ts", "withTranslation", - "withTranslation.d.ts", "useTranslation", - "useTranslation.d.ts", "setLanguage", - "setLanguage.d.ts", "index", - "index.d.ts", "AppDirI18nProvider", - "AppDirI18nProvider.d.ts", "createTranslation", - "createTranslation.d.ts", - "formatElements", - "formatElements.d.ts" + "formatElements" ], "scripts": { "build": "yarn clean && cross-env NODE_ENV=production && yarn tsc",