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(app): migrate to yarn 4 #61

Merged
merged 4 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Next Next commit
chore(app): migrate to yarn 4
  • Loading branch information
tericcabrel committed Jan 12, 2024
commit bad53d06054a416e6b75ef2c84d215fe57956f2d
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,26 @@ jobs:
CONVERTKIT_FORM_ID: form_id
steps:
- uses: actions/checkout@v3

- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/*.yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install Yarn 4
run: |
corepack enable
yarn set version berry

- name: Install projects dependencies
uses: bahmutov/npm-install@v1
run: yarn install

- name: Lint the projects
run: yarn lint
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ dist/**
eslintcache
key.txt
.eslintcache

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
10 changes: 5 additions & 5 deletions apps/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
},
"dependencies": {
"@graphql-tools/schema": "^8.5.0",
"@snipcode/database": "*",
"@snipcode/domain": "*",
"@snipcode/embed": "*",
"@snipcode/logger": "*",
"@snipcode/utils": "*",
"@snipcode/database": "workspace:*",
"@snipcode/domain": "workspace:*",
"@snipcode/embed": "workspace:*",
"@snipcode/logger": "workspace:*",
"@snipcode/utils": "workspace:*",
"apollo-server-core": "^3.9.0",
"apollo-server-express": "^3.9.0",
"axios": "^0.27.2",
Expand Down
4 changes: 2 additions & 2 deletions apps/functions/code-embed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"node": ">=16.14.0"
},
"dependencies": {
"@snipcode/database": "*",
"@snipcode/embed": "*",
"@snipcode/database": "workspace:*",
"@snipcode/embed": "workspace:*",
"shiki": "^0.11.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"@headlessui/react": "^1.6.5",
"@hookform/resolvers": "^2.9.6",
"@sentry/nextjs": "^7.5.0",
"@snipcode/front": "*",
"@snipcode/utils": "*",
"@snipcode/front": "workspace:*",
"@snipcode/utils": "workspace:*",
"classnames": "^2.3.1",
"graphql": "^16.3.0",
"next": "12.2.0",
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "snipcode",
"version": "1.0.0",
"license": "MIT",
"private": true,
"scripts": {
"build": "turbo run build",
"build:prod": "turbo run build:prod",
Expand All @@ -15,7 +16,6 @@
"cache:link": "turbo link",
"cache:disable": "turbo unlink"
},
"private": true,
"workspaces": [
"packages/database",
"packages/domain",
Expand All @@ -38,7 +38,6 @@
"pre-commit": "lint-staged"
}
},
"dependencies": {},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
Expand All @@ -53,7 +52,7 @@
"eslint-plugin-typescript-sort-keys": "^2.1.0",
"husky": "^8.0.1",
"prettier": "^2.7.1",
"turbo": "^1.5.4"
"turbo": "^1.11.3"
},
"packageManager": "yarn@1.22.19"
"packageManager": "yarn@4.0.2"
}
2 changes: 2 additions & 0 deletions packages/database/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "@snipcode/database",
"version": "1.0.0",
"private": true,
"description": "This package contains all the entities and data access layer",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
"scripts": {
"prebuild": "yarn db:generate",
"build": "tsc --project tsconfig.prod.json",
"clean": "rm -rf .turbo dist",
"lint": "eslint src index.ts",
Expand Down