Skip to content

Commit

Permalink
Revert "chore: migrate to Yarn v3"
Browse files Browse the repository at this point in the history
This reverts commit 0192439

It's really impossible to debug anything with Yarn Berry
  • Loading branch information
L2jLiga committed Oct 20, 2023
1 parent e5b6eab commit b446192
Show file tree
Hide file tree
Showing 9 changed files with 4,821 additions and 7,991 deletions.
4 changes: 0 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ package-lock.json text -diff merge=binary

# Husky
/.husky/* text eol=lf linguist-language=Shell

# Yarn Berry
/.yarn/releases/** binary
/.yarn/plugins/** binary
12 changes: 3 additions & 9 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ jobs:
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install Yarn
run: corepack enable
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
run: yarn install --frozen-lockfile
- name: Build projects
run: yarn build
- name: Run tests
Expand All @@ -64,14 +62,12 @@ jobs:
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install Yarn
run: corepack enable
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
run: yarn install --frozen-lockfile
- name: Check licenses
run: yarn license-checker
- name: Lint project
Expand All @@ -91,14 +87,12 @@ jobs:
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Install Yarn
run: corepack enable
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
run: yarn install --frozen-lockfile
- name: Build projects
run: yarn build
- name: Perform CodeQL Analysis
Expand Down
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,3 @@ node_modules
*.log
*.sarif
*.tsbuildinfo

# Yarn Berry
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.4.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .yarnrc.yml

This file was deleted.

6 changes: 3 additions & 3 deletions examples/ecmascript-decorators/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */
"declaration": false,

/* Basic Options */
"target": "ES2022",
"module": "ESNext",
Expand All @@ -16,8 +16,8 @@

/* FIXME: TAKE A LOOK AT ME, I AM OMITED */
// "experimentalDecorators": false,
/* FIXME: TAKE A LOOK AT ME, I AM STILL TRUE */
"emitDecoratorMetadata": true,
/* FIXME: TAKE A LOOK AT ME, I AM OMITED AS WELL */
// "emitDecoratorMetadata": true,

/* Advanced Options */
"skipLibCheck": true,
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.0.0",
"private": true,
"scripts": {
"build": "yarn workspaces foreach run build",
"build": "yarn workspaces run build",
"lint": "eslint .",
"test": "yarn workspaces foreach run test",
"test": "yarn workspaces run test",
"license-checker": "license-checker --production --onlyAllow=\"MIT;ISC;BSD-3-Clause;BSD-2-Clause\" --excludePrivatePackages",
"prepare": "husky install"
},
Expand Down Expand Up @@ -66,6 +66,5 @@
"lib",
"plugins/*",
"examples/*"
],
"packageManager": "yarn@3.6.4"
]
}
Loading

0 comments on commit b446192

Please sign in to comment.