From c77d726bc98c7b31b050b5ad335daaa725464955 Mon Sep 17 00:00:00 2001 From: TitanKuzmich Date: Sun, 22 Dec 2024 17:58:15 +0300 Subject: [PATCH] feat(sdds-cs): fix typings path --- packages/plasma-new-hope/package.json | 5 ++++ packages/sdds-cs/package.json | 33 ++++++++++++++++++++++++--- packages/sdds-serv/package.json | 2 +- 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/packages/plasma-new-hope/package.json b/packages/plasma-new-hope/package.json index 8b3052970a..9d5c3b3631 100644 --- a/packages/plasma-new-hope/package.json +++ b/packages/plasma-new-hope/package.json @@ -15,6 +15,11 @@ "require": "./styled-components/cjs/index.js", "import": "./styled-components/es/index.js", "types": "./types/index.d.ts" + }, + "./emotion": { + "require": "./emotion/cjs/index.js", + "import": "./emotion/es/index.js", + "types": "./types/index.d.ts" } }, "files": [ diff --git a/packages/sdds-cs/package.json b/packages/sdds-cs/package.json index b76b67d96e..f3f2abc8a2 100644 --- a/packages/sdds-cs/package.json +++ b/packages/sdds-cs/package.json @@ -21,9 +21,36 @@ "api-extractor.json", "CHANGELOG.md" ], - "main": "index.js", - "module": "es/index.js", - "types": "index.d.ts", + "main": "./index.js", + "module": "./es/index.js", + "types": "./index.d.ts", + "exports": { + ".": { + "require": "./components/index.js", + "import": "./es/index.js", + "types": "./index.d.ts" + }, + "./styled-components": { + "require": "./styled-components/cjs/index.js", + "import": "./styled-components/es/index.js", + "types": "./index.d.ts" + }, + "./emotion": { + "require": "./emotion/cjs/index.js", + "import": "./emotion/es/index.js", + "types": "./index.d.ts" + }, + "./tokens": { + "require": "./tokens/index.js", + "import": "./es/tokens/index.js", + "types": "./tokens/index.d.ts" + }, + "./mixins": { + "require": "./mixins/index.js", + "import": "./es/mixins/index.js", + "types": "./mixins/index.d.ts" + } + }, "repository": { "type": "git", "url": "ssh://git@github.com:salute-developers/plasma.git", diff --git a/packages/sdds-serv/package.json b/packages/sdds-serv/package.json index 5ea09c918d..2a461d1eda 100644 --- a/packages/sdds-serv/package.json +++ b/packages/sdds-serv/package.json @@ -24,7 +24,7 @@ ], "main": "./index.js", "module": "./es/index.js", - "types": "./types/index.d.ts", + "types": "./index.d.ts", "exports": { ".": { "require": "./components/index.js",