Skip to content

Commit

Permalink
Use yarn 1.22instead of yarn 3
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownskl committed Sep 25, 2024
1 parent 6231445 commit 010cf91
Show file tree
Hide file tree
Showing 11 changed files with 6,229 additions and 8,780 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-npm-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-${{ runner.arch }}-npm-

- name: Enable corepack
run: |
corepack enable
- name: Install yarn dependencies
run: yarn

Expand Down Expand Up @@ -123,10 +119,6 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-flatpak-builder-${{ hashFiles('flatpak/*') }}
restore-keys: ${{ runner.os }}-${{ runner.arch }}-flatpak-builder-

- name: Enable corepack
run: |
corepack enable
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: greenlight.flatpak
Expand Down Expand Up @@ -169,10 +161,6 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-npm-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-${{ runner.arch }}-npm-

- name: Enable corepack
run: |
corepack enable
- name: Install yarn dependencies
run: yarn

Expand Down
4 changes: 2 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@greenlight/cli",
"version": "1.0.0",
"dependencies": {
"@greenlight/authentication": "workspace:^",
"@greenlight/logger": "workspace:^",
"@greenlight/authentication": "^1.0.0",
"@greenlight/logger": "^1.0.0",
"debug": "^4.3.4",
"xbox-webapi": "^1.4.1"
},
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@
"cli",
"server",
"packages/*"
],
"packageManager": "[email protected]"
}
]
}
3 changes: 2 additions & 1 deletion packages/authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"name": "@greenlight/authentication",
"version": "1.0.0",
"dependencies": {
"@greenlight/logger": "workspace:^",
"@greenlight/logger": "^1.0.0",
"electron-store": "^8.0.1",
"electron": "32.1.2",
"xal-node": "^1.0.2"
},
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/authentication/src/authstore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export default class AuthStore extends TokenStore {
}

const getAppBasePath = () => {
let ElectronAppName = '@greenlight/app3 (development)'
let ElectronAppName = '@greenlight/app2 (development)'
if(process.env.NODE_ENV === 'production')
ElectronAppName = '@greenlight/app3'
ElectronAppName = '@greenlight/app'

if(app !== undefined && app.getPath !== undefined)
return app.getPath('userData')
Expand Down
10 changes: 5 additions & 5 deletions packages/platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "@greenlight/platform",
"version": "1.0.0",
"dependencies": {
"@greenlight/authentication": "workspace:^",
"@greenlight/logger": "workspace:^",
"@greenlight/storeapi": "workspace:^",
"@greenlight/webapi": "workspace:^",
"@greenlight/xcloudapi": "workspace:^"
"@greenlight/authentication": "^1.0.0",
"@greenlight/logger": "^1.0.0",
"@greenlight/storeapi": "^1.0.0",
"@greenlight/webapi": "^1.0.0",
"@greenlight/xcloudapi": "^1.0.0"
},
"license": "MIT",
"main": "dist/index",
Expand Down
6 changes: 3 additions & 3 deletions packages/storeapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"test": "yarn build:deps && yarn build && mocha -r ../../node_modules/ts-node/register tests/**.ts tests/**/*.ts"
},
"dependencies": {
"@greenlight/authentication": "workspace:^",
"@greenlight/logger": "workspace:^",
"@greenlight/xcloudapi": "workspace:^",
"@greenlight/authentication": "^1.0.0",
"@greenlight/logger": "^1.0.0",
"@greenlight/xcloudapi": "^1.0.0",
"sqlite3": "^5.1.7"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/webapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"test": "yarn build && mocha -r ../../node_modules/ts-node/register tests/**.ts tests/**/*.ts"
},
"dependencies": {
"@greenlight/authentication": "workspace:^",
"@greenlight/logger": "workspace:^"
"@greenlight/authentication": "^1.0.0",
"@greenlight/logger": "^1.0.0"
},
"devDependencies": {
"@types/chai": "^4",
Expand Down
4 changes: 2 additions & 2 deletions packages/xcloudapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"test": "yarn build && mocha -r ../../node_modules/ts-node/register tests/**.ts tests/**/*.ts"
},
"dependencies": {
"@greenlight/authentication": "workspace:^",
"@greenlight/logger": "workspace:^"
"@greenlight/authentication": "^1.0.0",
"@greenlight/logger": "^1.0.0"
},
"devDependencies": {
"@types/chai": "^4",
Expand Down
10 changes: 5 additions & 5 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "@greenlight/server",
"version": "1.0.0",
"dependencies": {
"@greenlight/authentication": "workspace:^",
"@greenlight/logger": "workspace:^",
"@greenlight/storeapi": "workspace:^",
"@greenlight/webapi": "workspace:^",
"@greenlight/xcloudapi": "workspace:^",
"@greenlight/authentication": "^1.0.0",
"@greenlight/logger": "^1.0.0",
"@greenlight/storeapi": "^1.0.0",
"@greenlight/webapi": "^1.0.0",
"@greenlight/xcloudapi": "^1.0.0",
"fastify": "^5.0.0"
},
"license": "MIT",
Expand Down
Loading

0 comments on commit 010cf91

Please sign in to comment.