forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### turbo tracing in pnpm projects How pnpm link packages:  After turbo tracing: ``` dist ├── crates │ └── turbopack │ └── tests │ └── node-file-trace │ ├── integration │ └── node_modules │ └── better-sqlite3 -> ../../../../../node_modules/.pnpm/[email protected]/node_modules/better-sqlite3 └── node_modules └── .pnpm ├── [email protected] │ └── node_modules │ ├── better-sqlite3 │ │ ├── build │ │ │ └── Release │ │ └── lib │ │ └── methods │ └── bindings -> ../../[email protected]/node_modules/bindings ├── [email protected] │ └── node_modules │ ├── bindings │ └── file-uri-to-path -> ../../[email protected]/node_modules/file-uri-to-path └── [email protected] └── node_modules └── file-uri-to-path ``` No more **global .pnpm store**. The directory link will follow the original path created by pnpm.
- Loading branch information
1 parent
0eee71c
commit 06ccbf1
Showing
47 changed files
with
20,468 additions
and
28,824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: "Turborepo Node.js Setup" | ||
description: "Sets Node.js up for CI" | ||
inputs: | ||
enable-corepack: | ||
description: "Control turning on corepack." | ||
required: false | ||
default: true | ||
disable-scripts: | ||
description: "Control turning on corepack." | ||
required: false | ||
default: false | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7.12.1 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: pnpm | ||
|
||
- name: Configure corepack | ||
# Forcibly upgrade our available version of corepack. | ||
# The bundled version in node 16 has known issues. | ||
# Prepends the npm bin dir so that it is always first. | ||
shell: bash | ||
run: | | ||
npm install --force --global corepack@latest | ||
npm config get prefix >> $GITHUB_PATH | ||
corepack enable | ||
- name: Enable corepack | ||
if: ${{ inputs.enable-corepack == 'true' }} | ||
shell: bash | ||
run: | | ||
corepack enable | ||
- name: pnpm install | ||
if: ${{ inputs.disable-scripts == 'false' }} | ||
shell: bash | ||
run: pnpm install | ||
|
||
- name: pnpm install | ||
if: ${{ inputs.disable-scripts == 'true' }} | ||
shell: bash | ||
run: pnpm install --ignore-scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,11 +26,7 @@ jobs: | |
with: | ||
key: test | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
cache: "yarn" | ||
node-version: 16 | ||
- uses: ./.github/actions/setup-node | ||
|
||
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
|
@@ -40,10 +36,6 @@ jobs: | |
- name: Set Redis URL | ||
run: echo "BULL_REDIS_CONNECTION=redis://127.0.0.1:6379" >> $GITHUB_ENV | ||
|
||
- name: install Node.js dependencies | ||
run: | | ||
yarn install | ||
- name: Install nextest | ||
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin | ||
shell: bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,12 +67,6 @@ jobs: | |
with: | ||
key: test | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
cache: "yarn" | ||
node-version: 16 | ||
|
||
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
with: | ||
|
@@ -91,16 +85,19 @@ jobs: | |
description: Installing Node.js dependencies... | ||
url: https://github.com/vercel/turbo-tooling/actions/runs/${{ github.run_id }} | ||
|
||
- name: Install node dependencies | ||
run: | | ||
yarn install | ||
- uses: ./.github/actions/setup-node | ||
if: matrix.os.name != 'windows-latest' | ||
|
||
- name: Install node dependencies | ||
- name: install Node.js dependencies on Windows without scripts | ||
uses: ./.github/actions/setup-node | ||
with: | ||
disable-scripts: true | ||
if: matrix.os.name == 'windows-latest' | ||
|
||
- name: install Node.js dependencies with scripts | ||
run: | | ||
yarn install --mode=skip-build | ||
yarn node-gyp install | ||
yarn install | ||
pnpm node-gyp install | ||
pnpm install --force | ||
if: matrix.os.name == 'windows-latest' | ||
|
||
- name: Report progress | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint-staged | ||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
auto-install-peers = true | ||
hoist = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.