Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sdds-serv): fix typings for emotion and styled-components
Browse files Browse the repository at this point in the history
TitanKuzmich committed Dec 23, 2024
1 parent 1dc49a9 commit 4e534fe
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/sdds-serv/emotion/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"module": "es/index.js",
"main": "cjs/index.js",
"types": "../types/index.d.ts"
"types": "../index.d.ts"
}
3 changes: 2 additions & 1 deletion packages/sdds-serv/package.json
Original file line number Diff line number Diff line change
@@ -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",
2 changes: 1 addition & 1 deletion packages/sdds-serv/styled-components/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"module": "es/index.js",
"main": "cjs/index.js",
"types": "../types/index.d.ts"
"types": "../index.d.ts"
}
1 change: 0 additions & 1 deletion packages/sdds-serv/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"allowJs": false,
"target": "ES5",
"module": "CommonJS",
"lib": ["dom", "dom.iterable", "esnext"],

0 comments on commit 4e534fe

Please sign in to comment.