Skip to content

Commit

Permalink
Merge pull request #2594 from Quramy/prefer-ts-temp
Browse files Browse the repository at this point in the history
[Angular] Change template story files extension .ts
  • Loading branch information
Hypnosphi authored and shilman committed Jan 7, 2018
1 parent cbe00b1 commit 6024617
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/cli/generators/ANGULAR/template/.storybook/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { configure } from '@storybook/angular';

// automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /.stories.js$/);
// automatically import all files ending in *.stories.ts
const req = require.context('../stories', true, /.stories.ts$/);
function loadStories() {
req.keys().forEach((filename) => req(filename));
}
Expand Down
4 changes: 2 additions & 2 deletions lib/cli/test/snapshots/angular-cli/.storybook/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { configure } from '@storybook/angular';

// automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /.stories.js$/);
// automatically import all files ending in *.stories.ts
const req = require.context('../stories', true, /.stories.ts$/);
function loadStories() {
req.keys().forEach((filename) => req(filename));
}
Expand Down

0 comments on commit 6024617

Please sign in to comment.