Skip to content

Commit

Permalink
feat(sdds-serv): fix typings path
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanKuzmich committed Dec 20, 2024
1 parent f921dba commit 965e64c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
11 changes: 8 additions & 3 deletions packages/plasma-new-hope/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"name": "@salutejs/plasma-new-hope",
"version": "0.228.0-dev.0",
"description": "Salute Design System blueprint",
"main": "cjs/index.js",
"module": "es/index.js",
"types": "types/index.d.ts",
"main": "./cjs/index.js",
"module": "./es/index.js",
"types": "./types/index.d.ts",
"exports": {
"require": "./cjs/index.js",
"import": "./es/index.js",
"types": "./types/index.d.ts"
},
"files": [
"cjs",
"es",
Expand Down
11 changes: 8 additions & 3 deletions packages/sdds-serv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@
"api-extractor.json",
"CHANGELOG.md"
],
"main": "index.js",
"module": "es/index.js",
"types": "index.d.ts",
"main": "./index.js",
"module": "./es/index.js",
"types": "./types/index.d.ts",
"exports": {
"require": "./components/index.js",
"import": "./es/index.js",
"types": "./index.d.ts"
},
"repository": {
"type": "git",
"url": "ssh://[email protected]:salute-developers/plasma.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdds-serv/scripts/copy-linaria-components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ touch src-css/index.d.ts
for component in $components; do
cp -R src/components/$component src-css/components/;
grep -E "\<$component\>" src/index.ts >> src-css/index.ts
echo "export * from '../components/$component';" >> css/index.d.ts;
echo "export * from '../components/$component';" >> src-css/index.d.ts;

done;

Expand Down
12 changes: 11 additions & 1 deletion packages/sdds-serv/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"allowJs": false,
"target": "ES5",
"module": "CommonJS",
"lib": ["dom", "dom.iterable", "esnext"],
Expand Down Expand Up @@ -40,5 +41,14 @@
}
},
"include": ["./src"],
"exclude": ["./src/helpers", "./src/**/*.stories.tsx", "./src/**/*.component-test.tsx", "./src/**/*.perftest.tsx"]
"exclude": [
"./src/helpers",
"./src/**/*.stories.tsx",
"./src/**/*.component-test.tsx",
"./src/**/*.perftest.tsx",
"./components",
"./es",
"./styled-components",
"./emotion"
]
}

0 comments on commit 965e64c

Please sign in to comment.