Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade to Yarn 4.x #867

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- run: yarn run test
- run: yarn run lint
- run: yarn run flow
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
index-dist.js
node_modules/
.yarn/
dist/
node_modules/
index-dist.js
npm-debug.log
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-element-to-jsx-string",
"version": "16.0.0",
"description": "Turn a ReactElement into the corresponding JSX string.",
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610",
"packageManager": "yarn@4.6.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"browser": "dist/cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion tests/smoke/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
package.json
yarn.lock
package-lock.json
4 changes: 4 additions & 0 deletions tests/smoke/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
nodeLinker: node-modules

enableHardenedMode: false
enableImmutableInstalls: false
2 changes: 1 addition & 1 deletion tests/smoke/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const installDependencies = () => () =>
return;
}

execSync('yarn install --no-lockfile', {
execSync('npm install', {
cwd: __dirname,
stdio: 'inherit',
});
Expand Down
2 changes: 1 addition & 1 deletion tests/smoke/smoke.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

/* eslint-disable no-console, import/no-extraneous-dependencies, no-global-assign */
/* eslint-disable no-console, import/no-extraneous-dependencies, no-global-assign, import/extensions */

require = require('esm')(module);

Expand Down
8 changes: 8 additions & 0 deletions tests/smoke/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


react@19.0.0:
version "19.0.0"
resolved "https://registry.npmjs.org/react/-/react-19.0.0.tgz"
integrity sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==
24,959 changes: 14,504 additions & 10,455 deletions yarn.lock

Large diffs are not rendered by default.

Loading