-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7dd3d3
commit 12afb2e
Showing
25 changed files
with
10,920 additions
and
10,527 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
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,5 +1,6 @@ | ||
/fixtures/ | ||
node_modules/ | ||
pnpm-lock.yaml | ||
/docs/api | ||
examples/**/dist/ | ||
packages/**/dist/ | ||
|
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,11 +1,11 @@ | ||
name: ⚙️ Deduplicate yarn.lock | ||
name: ⚙️ Deduplicate lock file | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths: | ||
- ./yarn.lock | ||
- ./pnpm-lock.yaml | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
@@ -20,14 +20,17 @@ jobs: | |
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
cache: "pnpm" | ||
|
||
- name: ⚙️ Dedupe yarn.lock | ||
run: npx yarn-deduplicate && rm -rf ./node_modules && yarn | ||
- name: ⚙️ Dedupe lock file | ||
run: pnpm dedupe && rm -rf ./node_modules && pnpm install | ||
|
||
- name: 💪 Commit | ||
run: | | ||
|
@@ -38,6 +41,6 @@ jobs: | |
echo "💿 no deduplication needed" | ||
exit 0 | ||
fi | ||
git commit -m "chore: deduplicate `yarn.lock`" | ||
git commit -m "chore: deduplicate `pnpm-lock.yaml`" | ||
git push | ||
echo "💿 https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)" |
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 |
---|---|---|
|
@@ -21,20 +21,23 @@ jobs: | |
with: | ||
token: ${{ secrets.FORMAT_PAT }} | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: yarn | ||
cache: pnpm | ||
node-version-file: ".nvmrc" | ||
|
||
- name: 📥 Install deps | ||
run: yarn --frozen-lockfile | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: 🔃 Sort contributors.yml | ||
run: sort --ignore-case --output contributors.yml contributors.yml | ||
|
||
- name: 👔 Format | ||
run: yarn format | ||
run: pnpm format | ||
|
||
- name: 💪 Commit | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -22,22 +22,25 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: yarn | ||
cache: pnpm | ||
node-version-file: ".nvmrc" | ||
|
||
- name: 📥 Install deps | ||
run: yarn --frozen-lockfile | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: 🏗 Build | ||
run: yarn build | ||
run: pnpm build | ||
|
||
- name: 🔐 Setup npm auth | ||
run: | | ||
echo "registry=https://registry.npmjs.org" >> ~/.npmrc | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc | ||
- name: 🚀 Publish | ||
run: npm run publish | ||
run: pnpm run publish |
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 |
---|---|---|
|
@@ -27,14 +27,17 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
cache: "pnpm" | ||
|
||
- name: 📥 Install deps | ||
run: yarn --frozen-lockfile | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: 🔐 Setup npm auth | ||
run: | | ||
|
@@ -50,10 +53,10 @@ jobs: | |
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
version: yarn run version | ||
version: pnpm run version | ||
commit: "chore: Update version for release" | ||
title: "chore: Update version for release" | ||
publish: yarn run release | ||
publish: pnpm run release | ||
createGithubReleases: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -70,11 +73,14 @@ jobs: | |
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
cache: "npm" | ||
cache: "pnpm" | ||
|
||
- id: find_package_version | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -35,10 +35,13 @@ jobs: | |
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: yarn | ||
cache: pnpm | ||
check-latest: true | ||
node-version: ${{ matrix.node }} | ||
|
||
|
@@ -49,16 +52,16 @@ jobs: | |
echo "::remove-matcher owner=eslint-stylish::" | ||
- name: 📥 Install deps | ||
run: yarn --frozen-lockfile | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: 🏗 Build | ||
run: yarn build | ||
run: pnpm build | ||
|
||
- name: 🔬 Lint | ||
run: yarn lint | ||
run: pnpm lint | ||
|
||
- name: 🧪 Run tests | ||
run: yarn test | ||
run: pnpm test | ||
|
||
- name: Check bundle size | ||
run: yarn size | ||
run: pnpm size |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ignore-workspace-cycles=true | ||
enable-pre-post-scripts=true |
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 |
---|---|---|
@@ -1,31 +1,20 @@ | ||
{ | ||
"name": "@remix-run/react-router", | ||
"private": true, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/react-router", | ||
"packages/react-router-dom", | ||
"packages/react-router-dom-v5-compat", | ||
"packages/react-router-native", | ||
"packages/router" | ||
] | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"clean": "git clean -fdX .", | ||
"format": "prettier --ignore-path .eslintignore --write .", | ||
"format:check": "prettier --ignore-path .eslintignore --check .", | ||
"postinstall": "patch-package", | ||
"lint": "eslint --cache .", | ||
"prerelease": "yarn build", | ||
"prerelease": "pnpm build", | ||
"release": "changeset publish", | ||
"size": "filesize", | ||
"test": "jest", | ||
"test:inspect": "node --inspect-brk ./node_modules/.bin/jest", | ||
"changeset": "changeset", | ||
"version": "changeset version && node ./scripts/remove-prerelease-changelogs.mjs", | ||
"publish": "node scripts/publish.js", | ||
"postversion": "node scripts/postversion.mjs", | ||
"version:experimental": "node ./scripts/version experimental", | ||
"watch": "rollup -c -w" | ||
}, | ||
|
@@ -37,6 +26,7 @@ | |
"default" | ||
] | ||
}, | ||
"packageManager": "[email protected]", | ||
"resolutions": { | ||
"@types/react": "^18.2.18", | ||
"@types/react-dom": "^18.2.7", | ||
|
@@ -91,7 +81,6 @@ | |
"jest": "^29.6.2", | ||
"jest-environment-jsdom": "^29.6.2", | ||
"jsonfile": "^6.1.0", | ||
"patch-package": "^6.5.1", | ||
"prettier": "^2.8.8", | ||
"prompt-confirm": "^2.0.4", | ||
"react": "^18.2.0", | ||
|
@@ -130,5 +119,10 @@ | |
"packages/react-router-dom/dist/umd/react-router-dom.production.min.js": { | ||
"none": "23.5 kB" | ||
} | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@changesets/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.