Skip to content

Commit 6dabe7f

Browse files
authored
dependencies: fix warnings (#1546)
* chore(deps): update package dependencies and add resolutions - Added "@types/node" dependency to package.json for improved TypeScript support. - Updated "@emnapi/core" and "@emnapi/runtime" to version 1.9.0 in yarn.lock. - Updated various "@InQuirer" packages to their latest versions for enhanced functionality and bug fixes. - Added resolutions for "glob" and "rimraf" to ensure consistent dependency versions across the project. * chore: add .yarnrc.yml and update package.json for Yarn 4 compatibility - Introduced a new .yarnrc.yml file to configure the node linker for Yarn 4+. - Added "@types/node" dependency to package.json for improved TypeScript support. - Updated package.json to use npm for production installs, enhancing reliability across Yarn versions. - Adjusted workspaces configuration in package.json for better organization. * chore: update Yarn version and dependencies - Updated Yarn version in package.json from 4.9.1 to 4.13.0 for improved features and performance. - Added .yarn/install-state.gz to .gitignore to prevent unnecessary files from being tracked. - Introduced new dependencies in packages/web/package.json: react-is, rxjs, @testing-library/dom, prettier, and typescript, along with updates to existing dependencies for better compatibility and functionality. * chore: add package extensions to .yarnrc.yml for peer dependency resolution - Introduced package extensions in .yarnrc.yml to address peer dependency warnings for several packages, including @types/react-datepicker, babel-plugin-styled-components, styled-components, eslint-plugin-jest, eslint-plugin-testing-library, and ts-node-dev. - This change ensures that missing peerDependencies are correctly declared, improving compatibility and reducing warnings during installation. * chore: enable Corepack in workflow files - Added a step to enable Corepack in the GitHub Actions workflows for E2E, unit, and copilot setup, ensuring consistent package management across the CI environment. * chore: remove duplicate Corepack enable step in workflow files - Eliminated redundant Corepack enable steps from the GitHub Actions workflows for E2E, unit, and copilot setup, streamlining the CI configuration. * chore: remove Copilot setup instructions and workflow files - Deleted the `.github/copilot-instructions.md` file and the `copilot-setup-steps.yml` workflow to streamline the repository and eliminate unused configurations. * chore: increase timeout durations for CI stability in OAuth test utilities - Updated waitForTimeout values from 50ms to 100ms in setIsSyncing and setGoogleConnectionState functions to allow more time for React to process state changes and ensure consistent behavior during CI runs. - Enhanced comments for clarity regarding the purpose of the delays. * refactor(tests): update sidebar connection status tests for Google Calendar - Renamed SIDEBAR_ICON_LABELS to SIDEBAR_STATUS_LABELS to better reflect their purpose. - Updated tests to verify the sidebar connection status using aria-label attributes instead of icons. - Enhanced test descriptions for clarity and improved reliability by using semantic queries for status updates. - Adjusted utility functions to support the new testing approach, ensuring accurate representation of connection states. * chore: update .gitignore to include .yarn directory - Added .yarn/ to .gitignore to prevent tracking of Yarn-related files. - Removed .yarn/install-state.gz from .gitignore as it is no longer needed. * chore: clean up package.json and yarn.lock by removing rimraf references - Removed rimraf entries from resolutions and overrides in package.json. - Updated rimraf version in yarn.lock to 2.7.1 and adjusted its dependencies accordingly. * chore: remove .yarn/install-state.gz file - Deleted the .yarn/install-state.gz file as it is no longer needed, streamlining the project structure. * refactor(tests): enhance sidebar connection status tests for Google Calendar - Updated tests to use getByRole for improved accessibility and clarity in verifying Google Calendar connection statuses. - Adjusted status messages to provide clearer context for users, ensuring accurate representation of connection states in the tests. * chore: update Yarn installation instructions and configuration - Replaced `yarn install --frozen-lockfile --network-timeout 300000` with `yarn install --immutable` across documentation and workflow files for consistency. - Added `httpTimeout` setting in `.yarnrc.yml` to manage slow networks and large installs, enhancing installation reliability. * chore: update build command to use Yarn for consistency - Changed the build command in build.ts to use `yarn webpack` instead of `webpack`, ensuring consistency with Yarn usage across the project.
1 parent 85c456f commit 6dabe7f

19 files changed

Lines changed: 17364 additions & 12455 deletions

File tree

.cursorrules/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This rule defines development commands, setup, and workflow for the Compass code
1212
### Install Dependencies
1313

1414
```bash
15-
yarn install --frozen-lockfile --network-timeout 300000
15+
yarn install --immutable
1616
```
1717

1818
- Takes ~3.5 minutes
@@ -139,7 +139,7 @@ packages/
139139

140140
## Summary
141141

142-
- Install with `yarn install --frozen-lockfile --network-timeout 300000`
142+
- Install with `yarn install --immutable` (`httpTimeout` is in `.yarnrc.yml`)
143143
- Start frontend: `yarn dev:web` (recommended)
144144
- Run tests: `yarn test:web`, `yarn test:backend`, `yarn test:core`
145145
- Format code: `yarn prettier . --write`

.github/copilot-instructions.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/copilot-setup-steps.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/test-e2e.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ jobs:
1515
- name: Check out repository
1616
uses: actions/checkout@v4
1717

18+
- name: Enable Corepack
19+
run: corepack enable
20+
1821
- name: Set up Node.js
1922
uses: actions/setup-node@v4
2023
with:
2124
node-version: 24
2225
cache: yarn
2326

2427
- name: Install dependencies
25-
run: yarn install --frozen-lockfile --network-timeout 300000
28+
run: yarn install --immutable
2629

2730
- name: Install Playwright browsers
2831
run: npx playwright install --with-deps chromium

.github/workflows/test-unit.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
- name: Check out Git repository
1515
uses: actions/checkout@v4
1616

17+
- name: Enable Corepack
18+
run: corepack enable
19+
1720
- name: Install Node.js and Yarn
1821
uses: actions/setup-node@v4
1922
with:
@@ -22,7 +25,7 @@ jobs:
2225

2326
- name: Install Dependencies
2427
run: |
25-
yarn install --frozen-lockfile --network-timeout 300000
28+
yarn install --immutable
2629
2730
- name: Run ${{ matrix.project }} tests
2831
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ packages/**/yarn.lock
2323
.idea/
2424
.mcp.json
2525
.vscode/
26+
.yarn/
2627
.yarn-cache/
2728

2829
build/

.yarnrc.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
nodeLinker: node-modules
2+
3+
# Slow networks / large installs (replaces Yarn 1.x `yarn install --network-timeout`)
4+
httpTimeout: 300000
5+
6+
# Fix peer dependency warnings (YN0086)
7+
# These extensions add missing peerDependencies to packages that need them
8+
packageExtensions:
9+
# @types/react-datepicker has react-popper as a dependency but doesn't declare
10+
# react/react-dom as peerDependencies for react-popper to consume
11+
"@types/react-datepicker@*":
12+
peerDependencies:
13+
react: "*"
14+
react-dom: "*"
15+
16+
# babel-plugin-styled-components uses @babel/plugin-syntax-jsx but doesn't
17+
# declare @babel/core as a peerDependency
18+
"babel-plugin-styled-components@*":
19+
peerDependencies:
20+
"@babel/core": "*"
21+
22+
# styled-components bundles babel-plugin-styled-components which needs @babel/core
23+
"styled-components@*":
24+
peerDependencies:
25+
"@babel/core": "*"
26+
27+
# eslint-plugin-jest uses @typescript-eslint/utils which needs typescript
28+
"eslint-plugin-jest@*":
29+
peerDependencies:
30+
typescript: "*"
31+
32+
# eslint-plugin-testing-library uses @typescript-eslint/utils which needs typescript
33+
"eslint-plugin-testing-library@*":
34+
peerDependencies:
35+
typescript: "*"
36+
37+
# ts-node-dev uses ts-node which needs @types/node
38+
"ts-node-dev@*":
39+
peerDependencies:
40+
"@types/node": "*"

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Primary instructions for AI agents and developers in the Compass monorepo.
44

55
## Quick Start
66

7-
1. `yarn install --frozen-lockfile --network-timeout 300000` (takes ~3.5 min, do not cancel)
7+
1. `yarn install --immutable` (Do not cancel; `httpTimeout` is set in `.yarnrc.yml`)
88
2. `cp packages/backend/.env.local.example packages/backend/.env`
99
3. `yarn dev:web` (frontend on http://localhost:9080/)
1010

@@ -69,7 +69,7 @@ Example: `import { foo } from '@compass/core'` not `import { foo } from '../../.
6969

7070
### Initial Setup
7171

72-
- Install dependencies: `yarn install --frozen-lockfile --network-timeout 300000`
72+
- Install dependencies: `yarn install --immutable` (`httpTimeout` is set in `.yarnrc.yml`)
7373
- Takes ~3.5 minutes. Set timeout to 10+ minutes.
7474
- Copy environment template: `cp packages/backend/.env.local.example packages/backend/.env`
7575

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This section provides specific guidelines for AI coding agents working on Compas
1717
2. **Environment Setup**
1818

1919
```bash
20-
yarn install --frozen-lockfile --network-timeout 300000
20+
yarn install --immutable
2121
cp packages/backend/.env.local.example packages/backend/.env
2222
yarn dev:web # Verify frontend works
2323
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Want to poke around or self-host?
6969

7070
```bash
7171
# Quick start
72-
yarn install --frozen-lockfile --network-timeout 300000
72+
yarn install --immutable
7373
cp packages/backend/.env.local.example packages/backend/.env
7474
yarn dev:web # Frontend on http://localhost:9080
7575
yarn dev:backend # Backend on http://localhost:3000

0 commit comments

Comments
 (0)