rsnext/packages
Julius Marminge 9f93d34061
fix: create-next-app copies files it shouldn't (#43131)
<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

Closes #43130

This fixes the bug where the CLI copies files it shouldn't, by adding a
`/` separator at the end of the directory name.

Given `examples/next-prisma-starter` and
`examples/next-prisma-starter-websockets`, only files inside the
`examples/next-prisma-starter` will now be copied.

Here is a repo created by the CLI after this fix, using

```bash
# Inside packages/create-next-app
pnpm build
node dist/index.js --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter
```

https://github.com/juliusmarminge/create-next-app-bugfix

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-11-21 16:51:57 -08:00
..
create-next-app fix: create-next-app copies files it shouldn't (#43131) 2022-11-21 16:51:57 -08:00
eslint-config-next v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
eslint-plugin-next v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
font v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
next Fix HMR error: "Cannot read properties of null (reading 'length')" (#43145) 2022-11-21 16:50:03 -08:00
next-bundle-analyzer v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
next-codemod v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
next-env v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
next-mdx v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
next-plugin-storybook v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
next-polyfill-module v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
next-polyfill-nomodule v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
next-swc fix(next-swc/relay): make pages directory optional (#43116) 2022-11-20 12:31:26 -08:00
react-dev-overlay v13.0.5-canary.3 2022-11-19 20:12:30 -08:00
react-refresh-utils v13.0.5-canary.3 2022-11-19 20:12:30 -08:00