Skip to content

Commit

Permalink
fix(core): update e2e tsconfig extends to be mapped to the correct ro…
Browse files Browse the repository at this point in the history
…ot tsconfig (#18408)
  • Loading branch information
ndcunningham committed Aug 1, 2023
1 parent ce2c6d6 commit 3ae657c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions e2e/nx-misc/src/workspace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ describe('@nx/workspace:convert-to-monorepo', () => {

afterEach(() => cleanupProject());

// TODO(@ndcunningham): Re-enable this once it is passing again
xit('should convert a standalone project to a monorepo', async () => {
it('should convert a standalone project to a monorepo', async () => {
const reactApp = uniq('reactapp');
runCLI(
`generate @nx/react:app ${reactApp} --rootProject=true --bundler=webpack --unitTestRunner=jest --e2eTestRunner=cypress --no-interactive`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ export function updateFilesForNonRootProjects(
join(schema.relativeToRootDestination, file),
'utf-8'
);
const newContent = oldContent.replace(regex, newRelativeRoot);
let newContent = oldContent.replace(regex, newRelativeRoot);
if (file == 'tsconfig.json') {
newContent = newContent.replace('tsconfig.json', 'tsconfig.base.json');
}
tree.write(join(schema.relativeToRootDestination, file), newContent);
}
}

1 comment on commit 3ae657c

@vercel
Copy link

@vercel vercel bot commented on 3ae657c Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev
nx-dev-nrwl.vercel.app

Please sign in to comment.