File tree Expand file tree Collapse file tree 16 files changed +16122
-15740
lines changed
Expand file tree Collapse file tree 16 files changed +16122
-15740
lines changed Original file line number Diff line number Diff line change @@ -15,26 +15,28 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v2
1717
18- # https://github.com/actions/cache/blob/main/examples.md#node---yarn
19- - name : Get yarn cache directory path
20- id : yarn-cache-dir-path
21- run : echo "::set-output name=dir::$(yarn cache dir)"
18+ - uses : actions/setup-node@v2
19+ with :
20+ node-version : ' 14'
2221
23- - uses : actions/cache@v2
24- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22+ # https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
23+ - name : Cache pnpm modules
24+ uses : actions/cache@v2
2525 with :
26- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
27- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
26+ path : ~/.pnpm-store
27+ key : ${{ runner.os }}-${{ hashFiles('**/pnpm- lock.yaml ') }}
2828 restore-keys : |
29- ${{ runner.os }}-yarn-
29+ ${{ runner.os }}-
3030
31- - name : Install packages
32- run : yarn
31+ - uses : pnpm/action-setup@v2.0.1
32+ with :
33+ version : 6.0.2
34+ run_install : true
3335
3436 - name : Lint
3537 working-directory : packages/core
36- run : yarn lint
38+ run : pnpm lint
3739
3840 - name : Build
3941 working-directory : packages/core
40- run : yarn build
42+ run : pnpm build
Original file line number Diff line number Diff line change @@ -15,26 +15,28 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v2
1717
18- # https://github.com/actions/cache/blob/main/examples.md#node---yarn
19- - name : Get yarn cache directory path
20- id : yarn-cache-dir-path
21- run : echo "::set-output name=dir::$(yarn cache dir)"
18+ - uses : actions/setup-node@v2
19+ with :
20+ node-version : ' 14'
2221
23- - uses : actions/cache@v2
24- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22+ # https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
23+ - name : Cache pnpm modules
24+ uses : actions/cache@v2
2525 with :
26- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
27- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
26+ path : ~/.pnpm-store
27+ key : ${{ runner.os }}-${{ hashFiles('**/pnpm- lock.yaml ') }}
2828 restore-keys : |
29- ${{ runner.os }}-yarn-
29+ ${{ runner.os }}-
3030
31- - name : Install packages
32- run : yarn
31+ - uses : pnpm/action-setup@v2.0.1
32+ with :
33+ version : 6.0.2
34+ run_install : true
3335
3436 - name : Lint
3537 working-directory : packages/phrases
36- run : yarn lint
38+ run : npm run lint
3739
3840 - name : Build
3941 working-directory : packages/phrases
40- run : yarn build
42+ run : npm run build
Original file line number Diff line number Diff line change @@ -15,26 +15,28 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v2
1717
18- # https://github.com/actions/cache/blob/main/examples.md#node---yarn
19- - name : Get yarn cache directory path
20- id : yarn-cache-dir-path
21- run : echo "::set-output name=dir::$(yarn cache dir)"
18+ - uses : actions/setup-node@v2
19+ with :
20+ node-version : ' 14'
2221
23- - uses : actions/cache@v2
24- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22+ # https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
23+ - name : Cache pnpm modules
24+ uses : actions/cache@v2
2525 with :
26- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
27- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
26+ path : ~/.pnpm-store
27+ key : ${{ runner.os }}-${{ hashFiles('**/pnpm- lock.yaml ') }}
2828 restore-keys : |
29- ${{ runner.os }}-yarn-
29+ ${{ runner.os }}-
3030
31- - name : Install packages
32- run : yarn
31+ - uses : pnpm/action-setup@v2.0.1
32+ with :
33+ version : 6.0.2
34+ run_install : true
3335
3436 - name : Lint
3537 working-directory : packages/schemas
36- run : yarn lint
38+ run : npm run lint
3739
3840 - name : Build
3941 working-directory : packages/schemas
40- run : yarn build
42+ run : npm run build
Original file line number Diff line number Diff line change @@ -15,26 +15,28 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v2
1717
18- # https://github.com/actions/cache/blob/main/examples.md#node---yarn
19- - name : Get yarn cache directory path
20- id : yarn-cache-dir-path
21- run : echo "::set-output name=dir::$(yarn cache dir)"
18+ - uses : actions/setup-node@v2
19+ with :
20+ node-version : ' 14'
2221
23- - uses : actions/cache@v2
24- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22+ # https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
23+ - name : Cache pnpm modules
24+ uses : actions/cache@v2
2525 with :
26- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
27- key : ${{ runner.os }}-yarn- ${{ hashFiles('**/yarn. lock') }}
26+ path : ~/.pnpm-store
27+ key : ${{ runner.os }}-${{ hashFiles('**/pnpm- lock.yaml ') }}
2828 restore-keys : |
29- ${{ runner.os }}-yarn-
29+ ${{ runner.os }}-
3030
31- - name : Install packages
32- run : yarn
31+ - uses : pnpm/action-setup@v2.0.1
32+ with :
33+ version : 6.0.2
34+ run_install : true
3335
3436 - name : Lint
3537 working-directory : packages/ui
36- run : yarn lint && yarn stylelint
38+ run : npm run lint && npm run stylelint
3739
3840 - name : Build
3941 working-directory : packages/ui
40- run : yarn build
42+ run : npm run build
Original file line number Diff line number Diff line change 11#! /bin/sh
22. " $( dirname " $0 " ) /_/husky.sh"
33
4- yarn lerna run --concurrency 1 --stream precommit --since HEAD --exclude-dependents
4+ pnpm -- lerna run --concurrency 1 --stream precommit --since HEAD --exclude-dependents
Original file line number Diff line number Diff line change 11{
22 "version" : " 0.1.0" ,
3- "npmClient" : " yarn " ,
3+ "npmClient" : " pnpm " ,
44 "useWorkspaces" : true
55}
Original file line number Diff line number Diff line change 2020 },
2121 "engines" : {
2222 "node" : " >=14.15.0" ,
23- "yarn " : " ^1.22.10 "
23+ "pnpm " : " >=6 "
2424 }
2525}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ The core backend service.
77Copy proper ` .env ` to project root. (TBD: design the config process)
88
99``` bash
10- yarn && yarn dev
10+ pnpm i && pnpm dev
1111```
1212
1313## OpenAPI Doc
Original file line number Diff line number Diff line change 1313 "dev" : " rm -rf build/ && tsc-watch --preserveWatchOutput --onSuccess \" node ./build/index.js\" "
1414 },
1515 "dependencies" : {
16- "@logto/essentials" : " ^1.1.0-rc.1 " ,
16+ "@logto/essentials" : " ^1.1.0-rc.2 " ,
1717 "@logto/phrases" : " ^0.1.0" ,
1818 "@logto/schemas" : " ^0.1.0" ,
1919 "dayjs" : " ^1.10.5" ,
2222 "formidable" : " ^1.2.2" ,
2323 "got" : " ^11.8.2" ,
2424 "i18next" : " ^20.3.5" ,
25+ "jose" : " ^3.14.3" ,
2526 "koa" : " ^2.13.1" ,
2627 "koa-body" : " ^4.2.0" ,
2728 "koa-logger" : " ^3.2.1" ,
5556 "typescript" : " ^4.3.5"
5657 },
5758 "engines" : {
58- "node" : " >=14.15.0" ,
59- "yarn" : " ^1.22.10"
59+ "node" : " >=14.15.0"
6060 },
6161 "_moduleAliases" : {
6262 "@" : " ./build"
Original file line number Diff line number Diff line change 1010 "files" : [
1111 " lib"
1212 ],
13- "publishConfig" : {
14- "registry" : " https://registry.yarnpkg.com"
15- },
1613 "repository" : {
1714 "type" : " git" ,
1815 "url" : " git+https://github.com/logto-io/logto.git"
1916 },
2017 "scripts" : {
2118 "build" : " rm -rf lib/ && tsc" ,
2219 "lint" : " eslint --format pretty \" src/**\" " ,
23- "prepack" : " yarn build"
20+ "prepack" : " pnpm build"
2421 },
2522 "bugs" : {
2623 "url" : " https://github.com/logto-io/logto/issues"
You can’t perform that action at this time.
0 commit comments