mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-07-20 19:48:18 -06:00
PR-342468: miss the Typescript building test validation.
This commit is contained in:
@ -43,10 +43,6 @@
|
|||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"dist",
|
"dist",
|
||||||
"PRNameGenerator.ts",
|
"PRNameGenerator.ts"
|
||||||
"**/*.test.tsx",
|
|
||||||
"**/*.test.ts",
|
|
||||||
"**/*.cy.tsx",
|
|
||||||
"**/*.cy.ts"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,17 @@ export default {
|
|||||||
{
|
{
|
||||||
test: /\.(ts|tsx)$/,
|
test: /\.(ts|tsx)$/,
|
||||||
exclude: [/node_modules/, /\.test\.(ts|tsx)$/, /\.cy\.(ts|tsx)$/],
|
exclude: [/node_modules/, /\.test\.(ts|tsx)$/, /\.cy\.(ts|tsx)$/],
|
||||||
use: 'ts-loader',
|
use: {
|
||||||
|
loader: 'ts-loader',
|
||||||
|
options: {
|
||||||
|
onlyCompileBundledFiles: true,
|
||||||
|
compilerOptions: {
|
||||||
|
noEmit: false,
|
||||||
|
declaration: true,
|
||||||
|
declarationDir: './dist/types'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(js|jsx)$/,
|
test: /\.(js|jsx)$/,
|
||||||
|
Reference in New Issue
Block a user