Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add stories tsconfig
  • Loading branch information
sirreal committed Apr 24, 2024
commit 04a4ed57bab20ed76c7ecb8d30e10ae8a341ba5b
29 changes: 29 additions & 0 deletions packages/components/tsconfig.stories.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDir": "src",
"declarationDir": "build-types",
"noEmit": true,
"emitDeclarationOnly": false,
"checkJs": false,

"types": [ "gutenberg-env" ],
// TODO: Remove `skipLibCheck` after resolving duplicate declaration of the `process` variable
// between `@types/webpack-env` (from @storybook packages) and `gutenberg-env`.
"skipLibCheck": true,
"strictNullChecks": true
},
"references": [
{ "path": "./tsconfig.json" },

{ "path": "../block-editor" },
{ "path": "../compose" },
{ "path": "../element" },
{ "path": "../i18n" },
{ "path": "../icons" },
{ "path": "../keycodes" },
{ "path": "../primitives" }
],
"include": [ "src/**/stories" ]
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{ "path": "packages/block-library" },
{ "path": "packages/block-serialization-default-parser" },
{ "path": "packages/components" },
{ "path": "packages/components/tsconfig.stories.json" },
{ "path": "packages/compose" },
{ "path": "packages/core-data" },
{ "path": "packages/data" },
Expand Down