Commit Graph
305 Commits
Author SHA1 Message Date
Zack TannerandGitHub ab2ebb1d53 fix: flaky test detection needs to use new turbopack flag (#77908)
As of #77894, there's a new way to indicate Turbopack should run, which breaks flaky tests detection with Turbopack. This swaps out the flag to unblock my downstack PR.
2025-04-07 12:28:24 -07:00
Delba de OliveiraandGitHub 6bc472a788 Docs IA 2.0: Add Deep Dive section placeholder (#77724)
This section will be for developers who want to understand how things
work. It's not essential knowledge, but good to know.

A place for conceptual information and colorful diagrams that explain
the magic behind things โœจ ๐ŸŒˆ
2025-04-04 16:24:56 +01:00
Will Binns-SmithandGitHub c11ff2b8e3 Scripts: migrate unpack-next to TypeScript (#77538)
## Convert unpack-next.cjs to TypeScript

### What?
Converted `scripts/unpack-next.cjs` to TypeScript, renaming it to
`scripts/unpack-next.ts` and updating the imports and type definitions.

### Why?
This change continues the ongoing TypeScript migration efforts in the
codebase, providing better type safety and developer experience.

### How?
- Renamed file from `.cjs` to `.ts`
- Converted CommonJS `require()` statements to ES module `import`
statements
- Added type annotation for the `path` parameter in the `realPathIfAny`
function

Fixes #
2025-04-01 16:08:43 -07:00
Will Binns-SmithandGitHub 9f76476ae4 pack-next: use default --js-build as option instead of --no-js-build (#77686)
Yargs automatically creates `--no-` variations of options. Using
`--no-js-build` as an option directly confuses it.

`--no-js-build` remains a valid cli argument.

Test Plan: Verify `pnpm pack-next` builds JS by default and `pnpm
pack-next --no-js-build` doesnโ€™t.

Help now looks like this:

```
pack-next.ts

Options:
      --help      Show help                                            [boolean]
      --version   Show version number                                  [boolean]
      --js-build  Build JavaScript code (default). Use `--no-js-build` to skip
                  building JavaScript                  [boolean] [default: true]
  -p, --project                                                         [string]
      --tar       Create tarballs instead of direct reflinks           [boolean]
      --compress  How compress the binary, useful on platforms where tarballs
                  can exceed 2 GiB, which causes ERR_FS_FILE_TOO_LARGE with
                  pnpm. Defaults to "strip" on Linux, otherwise defaults to
                  "none". Requires `--tar` to be set.
                                             [string] [choices: "none", "strip"]
```
2025-04-01 21:32:21 +00:00
49b000831a chore(ci): Configure codspeed (#76884)
### What?

Configure codspeed

### Why?

To track performance changes of small functions correctly.

### How?

---------

Co-authored-by: Benjamin Woodruff <[email protected]>
2025-03-29 11:02:29 +09:00
Will Binns-SmithandGitHub a6375148dc Refactor build scripts and rewrite pack-next in TypeScript (#77536)
Written with @bgw.

- Transitions to using `tsx` for script execution
- Replaces `patch-package` with TypeScript implementation
- Implements argument parsing and help message with `yargs`
- Uses `execa` for some command execution

Test Plan: Run `pnpm pack-next`, `pnpm swc-build-wasm`, `pnpm unpack-next`, and `pnpm sweep` without errors.
2025-03-28 16:24:32 -07:00
Will Binns-SmithandGitHub 420fa8013b devlow-bench: wait for complete ready for server startup event (#77217)
Previously, we marked the server startup whenever a local url was shown
in stdio. Next.js shows this url as soon as it can to make it actionable
sooner, before the server is truly ready.

This changes makes the event record the time until the โ€œReady in Nmsโ€
message is shown instead.

Test Plan: `./node_modules/.bin/devlow-bench ./scripts/devlow-bench.mjs`
and validate server startup is recorded.
2025-03-19 12:53:38 +01:00
JJ KasperandGitHub 32de0d9a0f Fix canary only warning for devlow-bench (#76772)
These are failing our canary only check for stable releases so adds
necessary env to avoid this.

x-ref:
https://github.com/vercel/next.js/actions/runs/13641536096/job/38133462655
2025-03-03 23:03:49 +00:00
Hendrik LiebauandGitHub a606ff7e27 Fix octokit.rest.issues.addLabels call (#76601)
Follow-up for #76544.

[Failed worflow
run](https://github.com/vercel/next.js/actions/runs/13560755436/job/37903278074)

The PR number was incorrectly retrieved from the
`octokit.rest.pulls.create` response.
2025-02-27 15:42:41 +01:00
JJ KasperandGitHub 6647a7706f Update more global turbo CLI usage (#76576)
Continues https://github.com/vercel/next.js/pull/76532 as it seems to be
alleviating the `npm` failures so replaces some more usage of global
`npm` installing the turbo CLI.

x-ref:
https://github.com/vercel/next.js/actions/runs/13554859494/job/37886841090#step:15:25
2025-02-27 01:01:38 +00:00
Hendrik LiebauandGitHub 3396eac787 Run React 18 tests for automated update PRs (#76544) 2025-02-26 13:15:47 +01:00
b84bd5221b [dev-overlay] docs: add readme (#76396)
This PR added the README for the dev overlay for future contributors.

[**View
Preview**](https://github.com/vercel/next.js/blob/9136b280a3e194b81c1ea9e4aa7236eeb895a843/packages/next/src/client/components/react-dev-overlay/README.md)

Closes NDX-656

---------

Co-authored-by: Lee Robinson <[email protected]>
2025-02-24 02:55:56 +09:00
Benjamin WoodruffandGitHub 1675073b8f build(scripts/pack-next): Add support for compressing debuginfo with zlib (#74662)
On Linux we must either compress or strip debuginfo, otherwise the debug tarball will be >2GiB, and pnpm (it's actually a node/libuv bug) has issues with files larger than 2GiB.

As far as I can tell Rust can generate line numbers for backtraces with zlib-compressed debuginfo, but not with newer zstd-compressed debuginfo.
2025-01-09 09:11:53 -08:00
832c77d01f examples: remove app-dir and with prefix in the mdx directory name (#73458)
## What?

1. Rename the following examples.

| Before | After |
|--------|--------|
|
[app-dir-mdx](https://github.com/vercel/next.js/tree/canary/examples/app-dir-mdx)
| mdx |
|
[with-mdx](https://github.com/vercel/next.js/tree/canary/examples/with-mdx)
| mdx-pages |
|
[with-mdx-remote](https://github.com/vercel/next.js/tree/canary/examples/with-mdx-remote)
| mdx-remote |

2. Change the example names at README.md in the repositories.
3. Update the mdx pathname in the test files.

## Why?

### Why remove `app-dir-` in the directory name?

The default has already been App Router anyways and a lot of examples
have migrated over.
x-ref:
https://github.com/vercel/next.js/pull/72642#issuecomment-2474415343

### Why remove `with-` in the directory name?

According to [examples
guidelines](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md),

> Example directories should not be prefixed with `with-`

## How did you verify your code works?

I have tested the new
[with-mdx.test.ts](https://github.com/vercel/next.js/blob/canary/test/e2e/yarn-pnp/test/with-mdx.test.ts)
and
[example.test.ts](https://github.com/vercel/next.js/blob/canary/test/examples/examples.test.ts).

### Adding or Updating Examples

- [x] The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- [x] Make sure the linting passes by running `pnpm build && pnpm lint`.
See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

CC: @samcx

Co-authored-by: Sam Ko <[email protected]>
2025-01-07 18:53:42 -08:00
Sebastian "Sebbie" SilbermannandGitHub 21565ff615 sync-react: Handle version bumps across SemVer minors and release channels (#74091) 2024-12-18 22:09:36 +01:00
Delba de OliveiraandGitHub 67921c23ef Docs: Create Examples section (#73858)
Closes: https://linear.app/vercel/issue/DOC-4047/create-examples-section

Redirects: https://github.com/vercel/front/pull/39878
2024-12-13 12:08:44 +00:00
JJ KasperandGitHub 4fdc2ac60e Add NEXT_PRIVATE_SKIP_CANARY_CHECK env for bench job (#73763)
Fixes:
https://github.com/vercel/next.js/actions/runs/12263653936/job/34217267903
2024-12-10 13:00:44 -08:00
a0f85705da test: change with-next-sass to with-sass (#73670)
## Summary

Follow up #73548 and #73633.
#73548 changed the `with-next-sass` to `with-sass` directory.
However, some tests still use old `with-next-sass` name.
This PR updates them.

Co-authored-by: Sam Ko <[email protected]>
2024-12-09 22:16:18 +00:00
Sebastian "Sebbie" SilbermannandGitHub 3c3fd7367e Use React 19 stable in Pages Router (#73562) 2024-12-05 21:19:20 +01:00
Sebastian "Sebbie" SilbermannandGitHub ca99500db3 sync-react: Add affordance to stop syncing Pages Router (#73533) 2024-12-05 19:21:07 +01:00
Tobias KoppersandGitHub 918a53427f fix Turbopack devlow bench (#73278)
### What?

fix TURBO_CACHE env var

cleanup devlow bench script
2024-11-29 18:17:49 +01:00
Will Binns-SmithandGitHub b4cc12e201 Devlow: exit with non-zero code on failure (#73276)
This allows remaining variants/scenarios to run while still ensuring
that CI can recognize the failure.
2024-11-27 15:04:13 -08:00
Tobias KoppersandGitHub eb86d82e93 fix benchmark directory (#73057)
### What?

The bench need to run in the correct directory
2024-11-21 19:41:49 +01:00
Tim NeutkensandGitHub 35c755a644 Turbopack build: Add bench for Turbopack cache (#73040)
Adds a separate bench for Turbopack build enabled.

<!-- 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(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the
PR.
- Read the Docs Contribution Guide to ensure your contribution follows
the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

### Adding or Updating Examples

- The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- Make sure the linting passes by running `pnpm build && pnpm lint`. See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See:
https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature
request has been accepted for implementation before opening a PR. (A
discussion must be opened, see
https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added
(https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to
understand the PR)
- When linking to a Slack thread, you might want to share details of the
conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?

### Why?

### How?

Closes NEXT-
Fixes #

-->
2024-11-21 15:27:18 +01:00
Zack TannerandGitHub 6f10926f31 ci: flake detection should run in both bundlers (#72773)
We run flake detection on PRs to help catch flaky tests before they hit
canary, but we currently only run flaky test detection in Webpack and
not Turbopack. This is problematic because there's sufficient forking
logic in tests for the different bundlers & we've seen a high likelihood
of a test to flake more frequently in one bundler vs another due to
things like differing compilation speeds and differing implementation of
core features.

This will add some additional time to this CI job to account for needing
to run the tests 6 times, but will hopefully catch things before they
become a problem later. I think we could also consider reducing the
number of times per bundler to be 2 if it turns out to be adding too
much time.

This updates the flake detection job to run the tests multiple times in
Turbopack as well.

CI run:
https://github.com/vercel/next.js/actions/runs/11822662639/job/32940264160?pr=72773
2024-11-13 18:15:58 +00:00
Delba de OliveiraandGitHub 0b35ddd825 Docs: Move next.config.js API pages under a config folder, fix headings in TS and ESLint config pages (#72465)
This PR:

- Moves `next.config.js` options under a "config" folder which includes
references for other configuration such as the ESLint plugin. I figure
it would be tidier than having "Next.config.js Options" and "Config" in
the API reference.
- Fixes the issue with the "config" folder not showing up in canary:
https://linear.app/vercel/issue/DOC-3749/bug-figure-out-why-new-config-folder-isnt-showing-up-in-the-canary
- Fixes the indentation issues and missing example header (caused by an
invisible character).

Redirects: https://github.com/vercel/front/pull/38704
2024-11-08 14:48:55 +00:00
fa8d558154 Docs: Split Getting Started between App and Pages, improve Installation page (#72178)
Prepare **Getting Started** Section for upcoming changes, and work on
the first page: `Installation`.

Closes: 
-
https://linear.app/vercel/issue/DOC-3703/update-how-getting-started-is-handled-in-next-site
-
https://linear.app/vercel/issue/DOC-3694/page-how-to-set-up-a-new-nextjs-project-installation
- https://linear.app/vercel/issue/DOC-3707/create-subsection-for-plugins
- https://linear.app/vercel/issue/DOC-3709/eslint-plugin-api-reference
- https://linear.app/vercel/issue/DOC-3710/typescript-reference-page

### Key Changes: 

- Duplicate Getting Started Section between App and Pages Router docs 
- Since getting started will vary between the routers, each docs needs
to have their own Getting Started section
- Reorganize folder numbers
   
**Installation Page**: 
- Split app and pages router specific information
- Rename "Installation" to "How to set up a Next.js application" for SEO
- Add setup instructions for **TypeScript**
- Add setup instructions for **ESLint**
- Add setup instructions for **Absolute Imports and Module Path
Aliases**

**Side effects from moving content around**:
- Create a subsection in API Reference called **Configuration**. 
   - Add ESLint Plugin page, and update it to follow template
   - Add TypeScript page, and update it to follow template
- Remove the **Absolute Imports and Module Path Aliases** page, it's
small enough to live under the set up instructions.

---------

Co-authored-by: Rich Haines <[email protected]>
2024-11-06 12:32:05 +00:00
Jiwon ChoiandGitHub 570ed9674a examples: check-examples.sh considers src/app as Pages Router (#72332) 2024-11-06 00:49:05 +09:00
Jude GaoandGitHub b2bc1ed6b1 Fix swc version mismatch when checking out an older version (#71978) 2024-10-29 14:39:36 +01:00
Sebastian "Sebbie" SilbermannandGitHub b08f75557c react-sync: Ignore update notices from npm (#71717)
`npm view` prints a notice when a new update is available
to `stderr` tricking us into thinking there was an error.
```
npm notice
npm notice New minor version of npm available! 10.7.0 -> 10.9.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
npm notice To update run: npm install -g [email protected]
npm notice
```

Running with `--silent` avoids these unrelated warnings (see https://github.com/npm/npm/issues/2040#issuecomment-3504495).

## Test plan

https://github.com/vercel/next.js/pull/71718
2024-10-23 16:40:50 +02:00
Sebastian "Sebbie" SilbermannandGitHub fe4e4d2c33 react-sync: Automatically update peer dependencies in libraries (#71636) 2024-10-22 18:05:19 +00:00
Mo BeigiandGitHub 863168d4ad Sync @next/third-parties with React peer versions (#71261) 2024-10-14 20:21:04 +02:00
JJ KasperandGitHub dc92b51e9c Remove windows i686 next-swc build target (#71041)
After https://github.com/vercel/next.js/pull/70995 investigated how much
our windows 32 bit build is actually leveraged and it seems it is not at
all. Also it seems Windows itself is [ending support for 32
bit](https://community.f-secure.com/total-en/kb/articles/29675-support-for-windows-10-32-bit-ending-on-september-30-2024#:~:text=Other%20Languages&text=F%2DSecure%20will%20stop%20supporting,a%20new%20version%20of%20Windows)
arch so no reason for us to continue supporting it.

Build and deploy workflow run:
https://github.com/vercel/next.js/actions/runs/11260148483
x-ref: [slack
thread](https://vercel.slack.com/archives/C04KC8A53T7/p1728431976293749)
2024-10-09 11:15:49 -07:00
Tim NeutkensandGitHub 9377b15d27 Turbopack build: Fix benchmark running with webpack (#70533)
Ensures there is no error running Tailwind with webpack in this
benchmark.

<!-- 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(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the
PR.
- Read the Docs Contribution Guide to ensure your contribution follows
the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

### Adding or Updating Examples

- The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- Make sure the linting passes by running `pnpm build && pnpm lint`. See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See:
https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature
request has been accepted for implementation before opening a PR. (A
discussion must be opened, see
https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added
(https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to
understand the PR)
- When linking to a Slack thread, you might want to share details of the
conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?

### Why?

### How?

Closes NEXT-
Fixes #

-->
2024-09-27 12:19:07 +02:00
Tim NeutkensandGitHub 0362f85fb4 Turbopack build: Add devlow-bench (#70511)
Ensures Webpack build and Turbopack build results for the heavy-npm-deps
benchmark are uploaded to DataDog so that we can track them over time.

<!-- 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(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the
PR.
- Read the Docs Contribution Guide to ensure your contribution follows
the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

### Adding or Updating Examples

- The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- Make sure the linting passes by running `pnpm build && pnpm lint`. See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See:
https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature
request has been accepted for implementation before opening a PR. (A
discussion must be opened, see
https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added
(https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to
understand the PR)
- When linking to a Slack thread, you might want to share details of the
conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?

### Why?

### How?

Closes NEXT-
Fixes #

-->
2024-09-26 19:04:28 +02:00
Sebastian "Sebbie" SilbermannandGitHub 1cb6faaee1 Extend support of Pages router to React 18 (#70219) 2024-09-25 19:08:13 +02:00
hrmnyandGitHub 14f7018a34 chore: auto-format generated types with prettier (#70405)
### What?

Added a step in both `build-native.cjs` and `build-wasm.cjs` scripts to
run Prettier on the generated types file after writing it.

Should have been added with #69680, but I didn't think about it.

Currently, every time you built the native module you have changes in
the git repo (which would be fixed on commit, but graphite might not be
happy with uncommitted changes).
2024-09-24 23:55:13 +02:00
hrmnyandGitHub 0539477e7c types: improve napi binding typing using generated types (#69680)
### Why?

All the `any` and `unknown` types kept bothering me.

I've also removed some unused napi functions
2024-09-24 16:39:19 +02:00
hrmnyandGitHub 89422a6002 fix(scripts): correct globbing, cargo colors, patch path (#69624)
### What?

A couple of small fixes for the scripts ported from nextpack.

- use ignore globs correctly
- get path for patch after removing other arguments
- display cargo colors
2024-09-03 17:18:45 +00:00
Benjamin WoodruffandGitHub 882d88381c build(pack-next): Add an option for the pack-next script to automate patching package.json (#69396)
## What is `pack-next`?

This is a script we use for developing turbopack. It builds tarballs for
all the next.js packages, including `next-swc`, and then provides
instructions about how to modify a project's `package.json` to install
from that tarball.

## What does this PR do?

If you provide a `--project ~/path/to/directory` argument to `pnpm
pack-next`, we'll auto-update the `package.json` there for you, instead
of telling you how to do it manually!

This also understands the React 19 RC peer dependencies, which is
something that was missing from the generated instructions.

## Supported Package Managers

I've tested this with `npm` and `pnpm`.
- `bun` fails with `ENOTDIR` for unknown reasons (maybe it's trying to
handle the local tarball as a directory instead of a tarball?).
- `yarn` fails due to an upstream issue:
https://github.com/yarnpkg/yarn/issues/6339

This does generate the entries for yarn's `resolutions` feature,
assuming the upstream issue is eventually fixed.

## Why Rust and `cargo xtask`?

https://github.com/matklad/cargo-xtask

I'd love for these Turbopack-centric scripts to be written in Rust with
xtask, since they're mostly touched by the turbopack team.

However, it's also hard to justify putting too much effort into these
development scripts, so I don't want to rewrite the whole thing right
now.

I figured I'd write the new functionality in Rust and call it from the
old JS script.

## Test Plan

Perform a fresh checkout of shadcn/ui, and then:

```
pnpm pack-next --project ~/shadcn-ui/apps/www/
```

```
Found workspace! Patching "/home/bgw.linux/shadcn-ui/package.json" with overrides.
Successfully patched "/home/bgw.linux/shadcn-ui/package.json" to use local tarball files!
Run `pnpm i` or `npm i` to install the overrides
```

Check the resulting changes to `~/shadcn-ui`:

```diff
diff --git a/package.json b/package.json
index be47ad7..262c13b 100644
--- a/package.json
+++ b/package.json
@@ -63,12 +63,31 @@
     "tsx": "^4.1.4",
     "turbo": "^1.9.9",
     "vite-tsconfig-paths": "^4.2.0",
-    "vitest": "^0.31.1"
+    "vitest": "^0.31.1",
+    "@next/swc": "file:/home/bgw.linux/next.js/tarballs/next-swc.tar"
   },
   "devDependencies": {
     "@types/node": "^20.11.27",
     "@types/react": "^18.2.65",
     "@types/react-dom": "^18.2.22",
     "typescript": "^5.5.3"
+  },
+  "overrides": {
+    "next": "file:/home/bgw.linux/next.js/tarballs/next.tar",
+    "@next/mdx": "file:/home/bgw.linux/next.js/tarballs/next-mdx.tar",
+    "@next/env": "file:/home/bgw.linux/next.js/tarballs/next-env.tar",
+    "@next/bundle-analyzer": "file:/home/bgw.linux/next.js/tarballs/next-bundle-analyzer.tar",
+    "@next/swc": "file:/home/bgw.linux/next.js/tarballs/next-swc.tar",
+    "react": "19.0.0-rc-7771d3a7-20240827",
+    "react-dom": "19.0.0-rc-7771d3a7-20240827"
+  },
+  "resolutions": {
+    "next": "file:/home/bgw.linux/next.js/tarballs/next.tar",
+    "@next/mdx": "file:/home/bgw.linux/next.js/tarballs/next-mdx.tar",
+    "@next/env": "file:/home/bgw.linux/next.js/tarballs/next-env.tar",
+    "@next/bundle-analyzer": "file:/home/bgw.linux/next.js/tarballs/next-bundle-analyzer.tar",
+    "@next/swc": "file:/home/bgw.linux/next.js/tarballs/next-swc.tar",
+    "react": "19.0.0-rc-7771d3a7-20240827",
+    "react-dom": "19.0.0-rc-7771d3a7-20240827"
   }
 }
```
2024-08-29 10:25:34 -07:00
Sebastian "Sebbie" SilbermannandGitHub 1e493fc8e7 Create React sync automatically (#69314)
Closes NDX-245
2024-08-28 17:33:57 +02:00
Sebastian "Sebbie" SilbermannandGitHub 53cf8e2651 sync-react: Fix --version and --no-install being ignored (#69317) 2024-08-27 10:01:31 +02:00
Sebastian "Sebbie" SilbermannandGitHub bb60a00f5c sync-react: Remove redundant work (#69199) 2024-08-23 02:53:10 +02:00
Sebastian "Sebbie" SilbermannandGitHub 3c7af4f96b sync-react: Print to console what should go into PR description (#69195) 2024-08-23 01:39:34 +02:00
Sebastian "Sebbie" SilbermannandGitHub 0fc762c7e3 sync-react: Automatically update all references to the React peer dependency version (#69194) 2024-08-23 00:20:10 +02:00
Tobias KoppersandGitHub 226bd00692 [Turbopack] fix build-native script (#68822)
### What?

fixes `pnpm pack-next --release`
2024-08-13 15:36:45 +02:00
1948f5b4ba fix(create-next-app): link to app dir docs in next-env.d.ts in app dir templates (#68534)
Fixes #68533

A link to docs in `next-dev.d.ts` linked to the pages router docs in app
router templates. This was confusing, because some sections on this page
only work with pages router. This PR fixes that

---------

Co-authored-by: Sam Ko <[email protected]>
2024-08-09 22:21:28 +00:00
Sebastian SilbermannandGitHub 3cfce00bad Improve error message when preview builds were not found in deploy tests (#68589) 2024-08-09 10:57:01 +02:00
hrmnyandGitHub 114c29513e chore: port more nextpack scripts (#68586)
### What?

Ports a few more useful scripts from nextpack, namely:

- `patch-next`
- `sweep`
- `build-native` (to clean up incremental artifacts on compiler panics)
- the macOS compression agent
2024-08-07 18:55:20 +00:00
Benjamin WoodruffandGitHub b113937a8a [turbopack] Replace uses of globby in scripts with glob (#68493)
Replace uses of `globby` (which is not in the `package.json`) with
`glob` (which is in the `package.json`).

These scripts were part of the nextpack repository (RIP), and
@wbinnssmith copied them over in #68471

Tested by running `pnpm pack-next`, inspecting the `tarballs` directory,
installing the tarballs into shadcn-ui, and building with turbopack.

`globby` and `glob` share the same API, but Next.js pulls in a pretty
old version of `glob`, so some of the newer APIs don't exist, and it
doesn't natively use promises:
https://github.com/isaacs/node-glob/tree/v7.1.6

We could upgrade `glob` without too much pain... It's only used for
`devDependencies`.
2024-08-05 20:17:39 -04:00