Unverified Commit fa821702 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix turbo cache for @next/env (#48466)

While testing workflow changes noticed that when turborepo cache is
leveraged the `@next/env` types are missing causing unexpected failures
since the types aren't stored in the `dist` folder which is all that is
cached for the build step.

x-ref: https://github.com/vercel/next.js/commits/ijjk/update-ci-workflow
parent 36ea6ea1
...@@ -16,15 +16,14 @@ ...@@ -16,15 +16,14 @@
"author": "Next.js Team <support@vercel.com>", "author": "Next.js Team <support@vercel.com>",
"license": "MIT", "license": "MIT",
"main": "dist/index.js", "main": "dist/index.js",
"types": "types/index.d.ts", "types": "dist/index.d.ts",
"files": [ "files": [
"dist", "dist"
"types"
], ],
"scripts": { "scripts": {
"dev": "ncc build ./index.ts -w -o dist/", "dev": "ncc build ./index.ts -w -o dist/",
"prerelease": "rimraf ./dist/", "prerelease": "rimraf ./dist/",
"types": "tsc index.ts --declaration --emitDeclarationOnly --declarationDir types --esModuleInterop", "types": "tsc index.ts --declaration --emitDeclarationOnly --declarationDir dist --esModuleInterop",
"release": "ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register", "release": "ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register",
"build": "pnpm release && pnpm types", "build": "pnpm release && pnpm types",
"prepublishOnly": "cd ../../ && turbo run build", "prepublishOnly": "cd ../../ && turbo run build",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment