Skip to content

Commit

Permalink
Fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
stephl3 committed Jan 9, 2025
1 parent 5fe902f commit 3359658
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 29 deletions.
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions tools/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
"tsc": "tsc --build tsconfig.json"
},
"dependencies": {
"@lg-tools/build": "workspace:*",
"@lg-tools/codemods": "workspace:*",
"@lg-tools/create": "workspace:*",
"@lg-tools/install": "workspace:*",
"@lg-tools/link": "workspace:*",
"@lg-tools/lint": "workspace:*",
"@lg-tools/slackbot": "workspace:*",
"@lg-tools/test": "workspace:*",
"@lg-tools/update": "workspace:*",
"@lg-tools/validate": "workspace:*",
"@lg-tools/build": "workspace:^",
"@lg-tools/codemods": "workspace:^",
"@lg-tools/create": "workspace:^",
"@lg-tools/install": "workspace:^",
"@lg-tools/link": "workspace:^",
"@lg-tools/lint": "workspace:^",
"@lg-tools/slackbot": "workspace:^",
"@lg-tools/test": "workspace:^",
"@lg-tools/update": "workspace:^",
"@lg-tools/validate": "workspace:^",
"commander": "^11.0.0",
"read-pkg-up": "7.0.1"
}
Expand Down
4 changes: 2 additions & 2 deletions tools/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@emotion/react": "11.11.1",
"@emotion/server": "11.11.0",
"@leafygreen-ui/testing-lib": "workspace:^",
"@lg-tools/build": "workspace:*",
"@lg-tools/meta": "workspace:*",
"@lg-tools/build": "workspace:^",
"@lg-tools/meta": "workspace:^",
"@testing-library/dom": "9.3.1",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "14.0.0",
Expand Down
14 changes: 9 additions & 5 deletions tools/test/scripts/install-react17.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ pkgJson.pnpm.overrides = {
const pkgJsonPath = path.resolve(rootDir, 'package.json');
fse.writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2));

// Install dependencies
const packagesToInstall = Object.entries(r17packages.dependencies).map(
// Add and install dependencies
const packagesToAdd = Object.entries(r17packages.dependencies).map(
([pkg, version]) => `${pkg}@${version}`,
);

spawnSync('pnpm', ['add', '--save-dev', '--ignore-workspace-root-check', ...packagesToInstall], {
stdio: 'inherit',
});
spawnSync(
'pnpm',
['add', '--save-dev', '--ignore-workspace-root-check', ...packagesToAdd],
{
stdio: 'inherit',
},
);

spawnSync('pnpm', ['install']);

0 comments on commit 3359658

Please sign in to comment.