Skip to content

Commit

Permalink
feat(sdds-serv/cs): fix typings for emotion and styled-components
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanKuzmich committed Dec 23, 2024
1 parent c77d726 commit 8f0ff2d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/sdds-cs/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"
}
14 changes: 5 additions & 9 deletions packages/sdds-cs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
"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",
Expand Down Expand Up @@ -124,9 +119,10 @@
"build:styled-components": "npm run build:styled-components:esm && npm run build:styled-components:cjs",
"build:styled-components:cjs": "BABEL_ENV=cjs SC_NAMESPACE=sdds-srvc babel ./src --out-dir . --extensions .ts,.tsx",
"build:styled-components:esm": "BABEL_ENV=esm SC_NAMESPACE=sdds-srvc babel ./src --out-dir ./es --extensions .ts,.tsx",
"postbuild:styled-components": "npm run generate:typings",
"postbuild:emotion": "rm -rf src-emotion && npm run generate:typings",
"generate:typings": "tsc --outDir . --emitDeclarationOnly",
"postbuild:styled-components": "rm -rf src-sc",
"postbuild:emotion": "rm -rf src-emotion",
"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": "storybook dev -p ${PORT:-7007} -c .storybook",
"prestorybook:emotion": "npm run prebuild:emotion",
"storybook:emotion": "USE_EMOTION_COMPONENTS=true storybook dev -p ${PORT:-7002} -c .storybook",
Expand All @@ -141,7 +137,7 @@
"src/**/*stories.tsx",
"src/**/*perftest.tsx"
],
"atLeast": 99.96
"atLeast": 99.94
},
"contributors": [
"Vasiliy Loginevskiy",
Expand Down
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"
}
9 changes: 5 additions & 4 deletions packages/sdds-serv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@
"build:styled-components:esm": "BABEL_ENV=esm SC_NAMESPACE=sdds-srvc babel ./src --out-dir ./styled-components/es --extensions .ts,.tsx",
"build:css": "BABEL_ENV=esm SC_NAMESPACE=sdds-srvc rollup -c",
"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",
"postbuild:styled-components": "rm -rf src-sc",
"postbuild:emotion": "rm -rf src-emotion",
"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",
Expand All @@ -143,7 +144,7 @@
"src/**/*stories.tsx",
"src/**/*perftest.tsx"
],
"atLeast": 99.96
"atLeast": 99.94
},
"contributors": [
"Vasiliy Loginevskiy",
Expand Down
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"],
Expand Down

0 comments on commit 8f0ff2d

Please sign in to comment.