diff --git a/code/lib/cli/templates/angular/application/template-csf/.storybook/tsconfig.json b/code/lib/cli/templates/angular/application/template-csf/.storybook/tsconfig.json index 84d7e7424a2c..eb06864100d8 100644 --- a/code/lib/cli/templates/angular/application/template-csf/.storybook/tsconfig.json +++ b/code/lib/cli/templates/angular/application/template-csf/.storybook/tsconfig.json @@ -6,6 +6,6 @@ "resolveJsonModule": true }, "exclude": ["../src/test.ts", "../src/**/*.spec.ts"], - "include": ["../src/**/*.stories.*", "./preview.ts"], + "include": ["../src/**/*", "./preview.ts"], "files": ["./typings.d.ts"] } diff --git a/code/lib/cli/templates/angular/library/template-csf/.storybook/tsconfig.json b/code/lib/cli/templates/angular/library/template-csf/.storybook/tsconfig.json index 957791d5bf3f..59daf738abdb 100644 --- a/code/lib/cli/templates/angular/library/template-csf/.storybook/tsconfig.json +++ b/code/lib/cli/templates/angular/library/template-csf/.storybook/tsconfig.json @@ -6,6 +6,6 @@ "resolveJsonModule": true }, "exclude": ["../src/test.ts", "../src/**/*.spec.ts"], - "include": ["../src/**/*.stories.*", "./preview.ts"], + "include": ["../src/**/*", "./preview.ts"], "files": ["./typings.d.ts"] } diff --git a/scripts/tasks/sandbox-parts.ts b/scripts/tasks/sandbox-parts.ts index cd7dc643a185..196467aaa14e 100644 --- a/scripts/tasks/sandbox-parts.ts +++ b/scripts/tasks/sandbox-parts.ts @@ -596,12 +596,8 @@ async function prepareAngularSandbox(cwd: string, templateName: string) { tsConfigJson.compilerOptions.skipLibCheck = true; tsConfigJson.compilerOptions.noImplicitAny = false; tsConfigJson.compilerOptions.strict = false; - tsConfigJson.include = [ - ...tsConfigJson.include, - '../template-stories/**/*.stories.ts', - // This is necessary since template stories depend on globalThis.components, which Typescript can't look up automatically - '../src/stories/**/*', - ]; + + tsConfigJson.include = [...tsConfigJson.include, '../template-stories/**/*.stories.ts']; if (templateName === 'Angular CLI (Version 15)') { tsConfigJson.compilerOptions.paths = {