From 4e534fe04a4b2134cc20d4290ea157da50e5b2d4 Mon Sep 17 00:00:00 2001 From: TitanKuzmich Date: Mon, 23 Dec 2024 12:24:49 +0300 Subject: [PATCH] feat(sdds-serv): fix typings for emotion and styled-components --- packages/sdds-serv/emotion/package.json | 2 +- packages/sdds-serv/package.json | 3 ++- packages/sdds-serv/styled-components/package.json | 2 +- packages/sdds-serv/tsconfig.json | 1 - 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/sdds-serv/emotion/package.json b/packages/sdds-serv/emotion/package.json index 0e8061e06b..df850ecf21 100644 --- a/packages/sdds-serv/emotion/package.json +++ b/packages/sdds-serv/emotion/package.json @@ -1,5 +1,5 @@ { "module": "es/index.js", "main": "cjs/index.js", - "types": "../types/index.d.ts" + "types": "../index.d.ts" } diff --git a/packages/sdds-serv/package.json b/packages/sdds-serv/package.json index 2a461d1eda..e4df3d8035 100644 --- a/packages/sdds-serv/package.json +++ b/packages/sdds-serv/package.json @@ -128,7 +128,8 @@ "postbuild:css": "rm -rf src-css", "postbuild:styled-components": "npm run generate:typings", "postbuild:emotion": "rm -rf src-emotion && npm run generate:typings", - "generate:typings": "tsc --outDir . --emitDeclarationOnly", + "remove:typings": "rm -rf components/**/*.d.ts && rm -f index.d.ts && rm -f mixins/index.d.ts && rm -f tokens/index.d.ts", + "generate:typings": "npm run remove:typings && tsc --outDir . --emitDeclarationOnly", "storybook": "npm run storybook:sc", "prestorybook:emotion": "npm run prebuild:emotion", "storybook:emotion": "USE_EMOTION_COMPONENTS=true storybook dev -p ${PORT:-7002} -c .storybook", diff --git a/packages/sdds-serv/styled-components/package.json b/packages/sdds-serv/styled-components/package.json index 0e8061e06b..df850ecf21 100644 --- a/packages/sdds-serv/styled-components/package.json +++ b/packages/sdds-serv/styled-components/package.json @@ -1,5 +1,5 @@ { "module": "es/index.js", "main": "cjs/index.js", - "types": "../types/index.d.ts" + "types": "../index.d.ts" } diff --git a/packages/sdds-serv/tsconfig.json b/packages/sdds-serv/tsconfig.json index fe6524ef3f..ff3d1483dc 100644 --- a/packages/sdds-serv/tsconfig.json +++ b/packages/sdds-serv/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "allowJs": false, "target": "ES5", "module": "CommonJS", "lib": ["dom", "dom.iterable", "esnext"],