Skip to content

Commit

Permalink
chore(app): migrate to yarn 4
Browse files Browse the repository at this point in the history
  • Loading branch information
tericcabrel committed Jan 12, 2024
1 parent 578eb8c commit ad31687
Show file tree
Hide file tree
Showing 20 changed files with 19,927 additions and 19,987 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,24 @@ 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: npm install -g yarn@4

- name: Install projects dependencies
uses: bahmutov/npm-install@v1
uses: 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

0 comments on commit ad31687

Please sign in to comment.