Skip to content

Commit

Permalink
build: migrate to yarn v4
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Feb 20, 2024
1 parent f84e192 commit bd24609
Show file tree
Hide file tree
Showing 7 changed files with 6,886 additions and 7,112 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

name: CI

# Controls when the action will run.
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
branches:
- master
pull_request:
branches: [ master ]
branches:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,7 +25,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# Runs a single command using the runners shell
- name: Run a one-line script
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.yarn/
.yarn/*
!.yarn/plugins
node_modules
*.iml
Expand Down
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

1 change: 1 addition & 0 deletions .yarn/plugins/plugin-prepare-lifecycle.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports={name:"plugin-prepare-lifecycle",factory:e=>({hooks:{afterAllInstalled(r){if(!r.topLevelWorkspace.manifest.scripts.get("prepare"))return;e("@yarnpkg/shell").execute("yarn prepare")}}})};
7 changes: 5 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
compressionLevel: mixed

nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
{
"name": "test",
"name": "local-test",
"version": "0.0.0",
"repository": "git@github.com:JounQin/test.git",
"author": "JounQin <admin@1stg.me>",
"license": "MIT",
"private": true,
"packageManager": "yarn@4.1.0",
"scripts": {
"prepare": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0"
"prepare": "simple-git-hooks"
},
"devDependencies": {
"@1stg/common-config": "^8.0.1",
"typescript": "^5.0.4"
"@1stg/common-config": "^10.0.0",
"@commitlint/cli": "^18.6.1",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"simple-git-hooks": "^2.9.0",
"typescript": "^5.3.3"
},
"resolutions": {
"prettier": "^2.3.1"
"prettier": "^3.2.5"
},
"commitlint": {
"extends": "@1stg/commitlint-config"
Expand Down
Loading

0 comments on commit bd24609

Please sign in to comment.