Exclude stories for webpack typescript validation.

This commit is contained in:
Alejandro Lembke Barrientos 2022-07-08 17:19:24 +00:00
parent 5b4756f46b
commit c9f5327284
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@aleleba/create-react-component-library", "name": "@aleleba/create-react-component-library",
"version": "1.0.5", "version": "1.0.6",
"description": "A starter kit for create a React component Library with storybook", "description": "A starter kit for create a React component Library with storybook",
"bin": "./bin/cli.js", "bin": "./bin/cli.js",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -45,8 +45,10 @@ export default {
module: { module: {
rules: [ rules: [
{ {
test: /\.(tsx|ts)$/, loader: "ts-loader", test: /\.(tsx|ts)$/,
exclude: /node_modules/ loader: "ts-loader",
exclude: /node_modules/,
options: { reportFiles: ['src/**/*.{ts,tsx}', '!src/**/*.stories.{ts,tsx}'] }
}, },
{ {
test: /\.(js|jsx|ts|tsx)$/, test: /\.(js|jsx|ts|tsx)$/,