Skip to content

Commit

Permalink
feat(@schematics/angular): rename tsconfig.e2e.json to tsconfig.json
Browse files Browse the repository at this point in the history
This will help IDEs as they only pick up the standard name
  • Loading branch information
alan-agius4 authored and hansl committed Mar 4, 2019
1 parent 3cbc763 commit edfc155
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.config = {
},
onPrepare() {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.e2e.json')
project: require('path').join(__dirname, './tsconfig.json')
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/e2e/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function AddBuilderToWorkspace(options: E2eOptions, workspace: WorkspaceSchema):
const lintConfig = architect.lint;
if (lintConfig) {
lintConfig.options.tsConfig =
lintConfig.options.tsConfig.concat(`${projectRoot}/tsconfig.e2e.json`);
lintConfig.options.tsConfig.concat(`${projectRoot}/tsconfig.json`);
}

workspace.projects[options.relatedAppName] = project;
Expand Down
4 changes: 2 additions & 2 deletions packages/schematics/angular/e2e/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Application Schematic', () => {
const files = tree.files;
expect(files).toEqual(jasmine.arrayContaining([
'/projects/foo/e2e/protractor.conf.js',
'/projects/foo/e2e/tsconfig.e2e.json',
'/projects/foo/e2e/tsconfig.json',
'/projects/foo/e2e/src/app.e2e-spec.ts',
'/projects/foo/e2e/src/app.po.ts',
]));
Expand Down Expand Up @@ -96,7 +96,7 @@ describe('Application Schematic', () => {
expect(lintOptions.tsConfig).toEqual([
'projects/foo/tsconfig.app.json',
'projects/foo/tsconfig.spec.json',
'projects/foo/e2e/tsconfig.e2e.json',
'projects/foo/e2e/tsconfig.json',
]);
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/ng-new/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Ng New Schematic', () => {
'/bar/src/app/app.module.ts',
'/bar/e2e/src/app.po.ts',
'/bar/e2e/src/app.e2e-spec.ts',
'/bar/e2e/tsconfig.e2e.json',
'/bar/e2e/tsconfig.json',
'/bar/e2e/protractor.conf.js',
]));
});
Expand Down

0 comments on commit edfc155

Please sign in to comment.