Skip to content

Commit

Permalink
Fix typescript issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Brijesh Bittu committed Dec 9, 2024
1 parent 11c9817 commit 4003aa6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
8 changes: 1 addition & 7 deletions packages/pigment-css-theme/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
"types": ["node", "mocha"],
"jsx": "react-jsx"
},
"include": [
"src/**/*.tsx",
"src/**/*.js",
"src/**/*.ts",
"tests/**/*.spec.ts",
"tests/**/*.spec.tsx"
],
"include": ["src/**/*.js", "src/**/*.ts", "tests/**/*.spec.ts"],
"exclude": ["./tsup.config.ts"]
}
8 changes: 8 additions & 0 deletions packages/pigment-css-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@
"outputs": [
"{projectRoot}/build"
]
},
"typescript": {
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/build"
]
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion packages/pigment-css-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
"resolveJsonModule": true,
"types": ["node", "mocha"],
"jsx": "react-jsx",
"skipLibCheck": true,
"paths": {
"@babel/parser": ["./node_modules/@babel/parser/typings/babel-parser.d.ts"]
"@babel/parser": ["./node_modules/@babel/parser/typings/babel-parser.d.ts"],
"@pigment-css/theme": ["../pigment-css-theme/src"],
"@pigment-css/theme/*": ["../pigment-css-theme/src/*"]
}
},
"include": [
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
"@mui-internal/api-docs-builder": ["./node_modules/@mui/monorepo/packages/api-docs-builder"],
"@mui-internal/api-docs-builder/*": [
"./node_modules/@mui/monorepo/packages/api-docs-builder/*"
]
],
"@pigment-css/theme": ["./packages/pigment-css-theme/src"],
"@pigment-css/theme/*": ["./packages/pigment-css-theme/src/*"],
"@pigment-css/utils": ["./packages/pigment-css-utils/src"],
"@pigment-css/utils/*": ["./packages/pigment-css-utils/src/*"]
},
// Otherwise we get react-native typings which conflict with dom.lib.
"types": ["node", "react"]
Expand Down
2 changes: 2 additions & 0 deletions webpackBaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ module.exports = {
resolve: {
modules: [__dirname, 'node_modules'],
alias: {
'@pigment-css/theme': path.resolve(__dirname, './packages/pigment-css-theme/src'),
'@pigment-css/utils': path.resolve(__dirname, './packages/pigment-css-utils/src'),
'@pigment-css/react': path.resolve(__dirname, './packages/pigment-css-react/src'),
docs: path.resolve(__dirname, './docs'),
'@mui-internal/api-docs-builder': path.resolve(
Expand Down

0 comments on commit 4003aa6

Please sign in to comment.