Skip to content

Commit

Permalink
fix(rsc): Remove entries file setup step and remove from test fixtures (
Browse files Browse the repository at this point in the history
#10549)

**Problem**
This is a follow up to #10533 which removed the need for the
`entries.ts` file. That PR failed to remove the file from both the
existing RSC test fixtures and the setup command.

**Changes**
1. Removes the `entries.ts` file from the RSC test fixtures
2. Removes the step in the RSC setup command that adds the `entries.ts`
file to a project.
  • Loading branch information
Josh-Walker-GM authored May 7, 2024
1 parent 17b2ecd commit e07e6b0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 79 deletions.
17 changes: 0 additions & 17 deletions __fixtures__/test-project-rsa/web/src/entries.ts

This file was deleted.

31 changes: 0 additions & 31 deletions __fixtures__/test-project-rsc-kitchen-sink/web/src/entries.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/cli/src/commands/experimental/setupRscHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,6 @@ export const handler = async ({ force, verbose }) => {
},
options: { persistentOutput: true },
},
{
title: 'Adding entries.ts...',
task: async () => {
const entriesTemplate = fs.readFileSync(
path.resolve(__dirname, 'templates', 'rsc', 'entries.ts.template'),
'utf-8',
)

// Can't use rwPaths.web.entries because it's not created yet
writeFile(path.join(rwPaths.web.src, 'entries.ts'), entriesTemplate, {
overwriteExisting: force,
})
},
},
{
title: `Overwriting entry.server${ext}...`,
task: async () => {
Expand Down

This file was deleted.

0 comments on commit e07e6b0

Please sign in to comment.