diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d9c7d4cd6c635..b829f934fbb3c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -13,15 +13,11 @@ "NODE_VERSION": "lts/*" } }, - "runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], - - // Set *default* container specific settings.json values on container create. - "settings": { - "go.toolsManagement.checkForUpdates": "local", - "go.useLanguageServer": true, - "go.gopath": "/go" - }, - + "runArgs": [ + "--cap-add=SYS_PTRACE", + "--security-opt", + "seccomp=unconfined" + ], // Add the IDs of extensions you want installed when the container is created. "extensions": [ "bradlc.vscode-tailwindcss", @@ -39,12 +35,12 @@ "windmilleng.vscode-go-autotest", "yzhang.markdown-all-in-one" ], - // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "go version && cargo --version", // Invoking `cargo` will eagerly install the toolchain specified in rust-toolchain file + "postCreateCommand": "cargo --version", + // Invoking `cargo` will eagerly install the toolchain specified in rust-toolchain file // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode", diff --git a/.prettierignore b/.prettierignore index 636c4d96551c4..bb208140e1ece 100644 --- a/.prettierignore +++ b/.prettierignore @@ -20,7 +20,5 @@ __generated__/ # crates -crates/*/js/src/compiled -crates/next-transform-strip-page-exports/tests # generators *.hbs diff --git a/release.md b/release.md index 3c06f28405f0d..05cd3073ff9c7 100644 --- a/release.md +++ b/release.md @@ -1,51 +1,5 @@ # Release Documentation -## Release npm packages - -We have a simple script to release npm packages from pnpm workspaces: `cargo xtask workspace --bump`. - -```text -? Select a package to bump -> [ ] @vercel/node-module-trace - [ ] @vercel/webpack-node-module-trace -[↑↓ to move, space to select one, → to all, ← to none, type to filter] -``` - -Press space to select the package you want to publish. -Press enter to choose the version type you want to bump: - -```text -? Select a package to bump @vercel/node-module-trace, @vercel/webpack-node-module-trace -? Version for @vercel/node-module-trace - patch - minor -> major - alpha - beta - canary -[↑↓ to move, enter to select, type to filter] -``` - -> **Note** -> -> This command will always increase the version according to the semver version.
-> For example, if the current version of one package is `1.0.0`, and you choose `patch`, the version will be increased to `1.0.1`.
- -> **Warning** -> -> If the version of one package is `1.0.0-beta.0`, and you choose `alpha`, the cli will panic and exit. Because the `beta` < `alpha` in semver. - -Once you have finished the bump, the script will do the following things: - -- bump the version you choose in the corresponding package -- update dependencies in other packages that depend on the package you choose -- update `pnpm-lock.yaml` file -- run `git tag -s pkg@version -m "pkg@version"` for each package - -You need to run `git push --follow-tags` to finish the release. - -## Release Turborepo - 1. Create a release by triggering the [Turborepo Release][1] workflow - Specify the semver increment using the SemVer Increment field (start with `prerelease`) @@ -53,7 +7,8 @@ You need to run `git push --follow-tags` to finish the release. 2. A PR is automatically opened to merge the release branch created in step 1 back into `main` - - ⚠️ Merge this in! You don't need to wait for tests to pass. It's important to merge this branch soon after the publish is successful + - ⚠️ Merge this in! You don't need to wait for tests to pass. It's important to merge this branch soon after the + publish is successful ### Notes diff --git a/scripts/ignore-examples.js b/scripts/ignore-examples.js deleted file mode 100644 index fb39efa502550..0000000000000 --- a/scripts/ignore-examples.js +++ /dev/null @@ -1,77 +0,0 @@ -/* - -This script is used to determine when examples should be built on Vercel. -We use a custom script for this situation instead of `npx turbo-ignore` because -the examples are not workspaces within this repository, and we want to rebuild them -only when: - -1. The examples themselves have changed -2. The turbo version has changed -3. We force a build on vercel - -We recommend using `npx turbo-ignore` in your own projects. - -*/ - -const childProcess = require("child_process"); - -// https://vercel.com/support/articles/how-do-i-use-the-ignored-build-step-field-on-vercel -const ABORT_BUILD_CODE = 0; -const CONTINUE_BUILD_CODE = 1; - -const continueBuild = () => process.exit(CONTINUE_BUILD_CODE); -const abortBuild = () => process.exit(ABORT_BUILD_CODE); - -const example = process.argv[2]; - -const ignoreCheck = () => { - if (process.env.TURBO_FORCE === "true") { - console.log("\u226B `TURBO_FORCE` detected"); - continueBuild(); - } - - // no app name (directory) was passed in via args - if (!example) { - console.log( - `\u226B Could not determine example to check - continuing build...` - ); - continueBuild(); - } - - console.log( - `\u226B Checking for changes to "examples/${example}" or "turbo" version...` - ); - - // get all file names changed in last commit - const fileNameList = childProcess - .execSync("git diff --name-only HEAD~1") - .toString() - .trim() - .split("\n"); - - // check if any files in the example have changed, - const exampleChanged = fileNameList.some((file) => - file.startsWith(`examples/${example}`) - ); - // or if a new version of turbo has been released. - const turboVersionChanged = fileNameList.some( - (file) => file === "version.txt" - ); - - if (exampleChanged) { - console.log( - `\u226B Detected changes to examples/${example} - continuing build...` - ); - continueBuild(); - } - - if (turboVersionChanged) { - console.log(`\u226B New version of "turbo" detected - continuing build...`); - continueBuild(); - } - - console.log(`\u226B No relevant changes detected, skipping build.`); - abortBuild(); -}; - -ignoreCheck(); diff --git a/turbow.js b/turbow.js deleted file mode 100755 index e133ae3ddde58..0000000000000 --- a/turbow.js +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env node - -const path = require("path"); - -let binPath; -if (path.sep === "\\") { - binPath = ".\\target\\debug\\turbo.exe"; -} else { - binPath = "./target/debug/turbo"; -} - -try { - require("child_process").execFileSync(binPath, process.argv.slice(2), { - stdio: "inherit", - }); -} catch (e) { - if (e && e.status) process.exit(e.status); - throw e; -}