Skip to content

Commit

Permalink
feat(nextjs): use flat structure for page schematic (#2939)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo committed Apr 30, 2020
1 parent 5cd5b7d commit adc7b78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/next/src/schematics/page/page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('component', () => {
appTree
);

expect(tree.exists('apps/my-app/src/pages/hello/hello.tsx')).toBeTruthy();
expect(tree.exists('apps/my-app/src/pages/hello/hello.css')).toBeTruthy();
expect(tree.exists('apps/my-app/src/pages/hello.tsx')).toBeTruthy();
expect(tree.exists('apps/my-app/src/pages/hello.css')).toBeTruthy();
});
});
2 changes: 1 addition & 1 deletion packages/next/src/schematics/page/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function (options: Schema): Rule {
classComponent: false,
routing: false,
skipTests: !options.withTests,
flat: false,
flat: true,
}),
addStyleDependencies(options.style),
]);
Expand Down

0 comments on commit adc7b78

Please sign in to comment.