Skip to content

Commit 6a1d0fe

Browse files
authored
feat: support tokenAdapter options (#21)
* feat: support tokenAdapter options * fixup * corepack enable * Update main.yml * skip lib check * Update main.yml * Update main.yml * Update main.yml * fix format * fix format * add tc
1 parent c931343 commit 6a1d0fe

39 files changed

+6134
-3125
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ jobs:
1111
name: CI
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- name: Setup node 16
16-
uses: actions/setup-node@v2
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1716
with:
18-
node-version: 16.x
17+
node-version: 18.16.1
18+
19+
- name: setup
20+
run: corepack enable
1921

2022
- name: install
21-
run: yarn
23+
run: yarn install --immutable
2224

2325
- name: lint
2426
run: yarn check:lint

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
coverage
33
dist
4+
.yarn/*
5+
!.yarn/releases

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ coverage
33
yarn.lock
44
dist
55
website
6+
.yarn

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"trailingComma": "es5"
3+
}

.yarn/releases/yarn-4.0.2.cjs

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
5+
nodeLinker: node-modules
6+
7+
yarnPath: .yarn/releases/yarn-4.0.2.cjs

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "rimraf dist && tsc -b tsconfig.build.json",
1111
"check:lint": "eslint src",
1212
"check:ts": "tsc --noEmit",
13-
"check:format": "prettier --list-different .",
13+
"check:format": "prettier . --check",
1414
"prepublish": "yarn check:lint && yarn check:ts && yarn check:format && yarn build"
1515
},
1616
"devDependencies": {
@@ -22,11 +22,12 @@
2222
"prettier": "^2.7.1",
2323
"rimraf": "^3.0.2",
2424
"ts-jest": "^29.1.1",
25-
"typescript": "^4.8.2"
25+
"typescript": "^5.6.3"
2626
},
2727
"files": [
2828
"README.md",
2929
"LICENSE.md",
3030
"dist"
31-
]
31+
],
32+
"packageManager": "[email protected]"
3233
}

0 commit comments

Comments
 (0)