From 44e3bd63e0f525ecb6402f9fb166affd8a5e6f38 Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Thu, 24 Nov 2022 11:57:58 +0200 Subject: [PATCH] fix(storybook): remove polyfill.ts from tsconfig --- .../__snapshots__/configuration.spec.ts.snap | 12 ------------ .../.storybook/tsconfig.json__tmpl__ | 1 - .../project-files/.storybook/tsconfig.json__tmpl__ | 1 - 3 files changed, 14 deletions(-) diff --git a/packages/storybook/src/generators/configuration/__snapshots__/configuration.spec.ts.snap b/packages/storybook/src/generators/configuration/__snapshots__/configuration.spec.ts.snap index fe7f89089e3ac..6ed27c98b5763 100644 --- a/packages/storybook/src/generators/configuration/__snapshots__/configuration.spec.ts.snap +++ b/packages/storybook/src/generators/configuration/__snapshots__/configuration.spec.ts.snap @@ -190,7 +190,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", @@ -252,7 +251,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", @@ -321,7 +319,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../components/**/*.stories.ts\\", @@ -383,7 +380,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", @@ -445,7 +441,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", @@ -507,7 +502,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", @@ -568,7 +562,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", @@ -628,7 +621,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", @@ -695,7 +687,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../components/**/*.stories.ts\\", @@ -755,7 +746,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", @@ -815,7 +805,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", @@ -875,7 +864,6 @@ exports[`@nrwl/storybook:configuration for other types of projects - Next.js and \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" ], - \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], \\"include\\": [ \\"../src/**/*.stories.ts\\", diff --git a/packages/storybook/src/generators/configuration/project-files-ts/.storybook/tsconfig.json__tmpl__ b/packages/storybook/src/generators/configuration/project-files-ts/.storybook/tsconfig.json__tmpl__ index 6130a53ba3071..c329e8c57f1b6 100644 --- a/packages/storybook/src/generators/configuration/project-files-ts/.storybook/tsconfig.json__tmpl__ +++ b/packages/storybook/src/generators/configuration/project-files-ts/.storybook/tsconfig.json__tmpl__ @@ -9,7 +9,6 @@ "<%= offsetFromRoot %>../node_modules/@nrwl/react/typings/cssmodule.d.ts", "<%= offsetFromRoot %>../node_modules/@nrwl/react/typings/image.d.ts" ],<% } %> - <% if(uiFramework === '@storybook/angular' && projectType === 'application') { %>"files": ["../src/polyfills.ts"],<% } %> "exclude": ["../**/*.spec.ts" <% if(uiFramework === '@storybook/react') { %>, "../**/*.spec.js", "../**/*.spec.tsx", "../**/*.spec.jsx"<% } %>], "include": [<% if(uiFramework === '@storybook/angular' && projectType === 'library') { %> "../**/*.stories.ts", diff --git a/packages/storybook/src/generators/configuration/project-files/.storybook/tsconfig.json__tmpl__ b/packages/storybook/src/generators/configuration/project-files/.storybook/tsconfig.json__tmpl__ index ee094b45d8f61..8915e1c479c9b 100644 --- a/packages/storybook/src/generators/configuration/project-files/.storybook/tsconfig.json__tmpl__ +++ b/packages/storybook/src/generators/configuration/project-files/.storybook/tsconfig.json__tmpl__ @@ -9,7 +9,6 @@ "<%= offsetFromRoot %>../node_modules/@nrwl/react/typings/cssmodule.d.ts", "<%= offsetFromRoot %>../node_modules/@nrwl/react/typings/image.d.ts" ],<% } %> - <% if(uiFramework === '@storybook/angular' && projectType === 'application') { %>"files": ["../src/polyfills.ts"],<% } %> "exclude": ["../**/*.spec.ts" <% if(uiFramework === '@storybook/react') { %>, "../**/*.spec.js", "../**/*.spec.tsx", "../**/*.spec.jsx"<% } %>], "include": [<% if(uiFramework === '@storybook/angular' && projectType === 'library') { %> "../**/*.stories.ts",