mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
The new version of Turborepo (rightfully) complains that two of our packages don't have output files specified when running `pnpm build`: ``` WARNING no output files found for task @next/codemod#build. Please check your `outputs` key in `turbo.json` WARNING no output files found for task @vercel/turbopack-next#build. Please check your `outputs` key in `turbo.json` ``` The package `@next/codemod` emits its `.js`, `.js.map`, and `.d.ts` files into the same folder as the respective source files instead of `dist` (as specified in the root `turbo.json`). And `@vercel/turbopack-next` does not emit any output files. Both facts are now reflected in the two added package-specific `turbo.json` files.
27 lines
539 B
JSON
27 lines
539 B
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"extends": ["//"],
|
|
"tasks": {
|
|
"build": {
|
|
"outputs": [
|
|
"**/*.js",
|
|
"**/*.d.ts",
|
|
"**/*.js.map",
|
|
"!bin/__testfixtures__/**",
|
|
"!transforms/__testfixtures__/**",
|
|
"!transforms/__tests__/**"
|
|
]
|
|
},
|
|
"dev": {
|
|
"outputs": [
|
|
"**/*.js",
|
|
"**/*.d.ts",
|
|
"**/*.js.map",
|
|
"!bin/__testfixtures__/**",
|
|
"!transforms/__testfixtures__/**",
|
|
"!transforms/__tests__/**"
|
|
]
|
|
}
|
|
}
|
|
}
|