File tree 7 files changed +20
-17
lines changed
7 files changed +20
-17
lines changed Original file line number Diff line number Diff line change
1
+ // See https://typicode.github.io/husky/how-to.html#ci-server-and-docker
1
2
// Skip Husky install in production and CI
2
3
if ( process . env . NODE_ENV === "production" || process . env . CI === "true" ) {
3
4
process . exit ( 0 ) ;
Original file line number Diff line number Diff line change 1
- npm run lint-staged
1
+ lint-staged
Original file line number Diff line number Diff line change 4
4
" packages/libsql-client" ,
5
5
" packages/libsql-client-wasm"
6
6
],
7
- "dependencies" : {
8
- "husky" : " ^9.0.11" ,
9
- "lint-staged" : " ^15.2.2"
10
- },
7
+ "dependencies" : {},
11
8
"scripts" : {
9
+ "prepare" : " node .husky/install.mjs" ,
12
10
"build" : " npm run build --workspaces" ,
13
11
"typecheck" : " npm run typecheck --workspaces" ,
14
12
"format:check" : " npm run format:check --workspaces" ,
15
13
"prepare" : " node .husky/install.mjs" ,
16
14
"lint-staged" : " lint-staged"
15
+ },
16
+ "devDependencies" : {
17
+ "lint-staged" : " ^15.2.2" ,
18
+ "husky" : " ^9.1.5"
17
19
}
18
20
}
Original file line number Diff line number Diff line change 100
100
"test" : " jest --runInBand" ,
101
101
"typecheck" : " tsc --noEmit" ,
102
102
"typedoc" : " rm -rf ./docs && typedoc" ,
103
- "prepare" : " husky install" ,
104
103
"lint-staged" : " lint-staged"
105
104
},
106
105
"dependencies" : {
113
112
"devDependencies" : {
114
113
"@types/jest" : " ^29.2.5" ,
115
114
"@types/node" : " ^18.15.5" ,
116
- "husky" : " ^9.0.11" ,
117
115
"jest" : " ^29.3.1" ,
118
116
"lint-staged" : " ^15.2.2" ,
119
117
"msw" : " ^2.3.0" ,
Original file line number Diff line number Diff line change @@ -140,11 +140,11 @@ export class HttpClient implements Client {
140
140
) : Promise < Array < ResultSet > > {
141
141
return this . limit < Array < ResultSet > > ( async ( ) => {
142
142
try {
143
- const normalizedStmts = stmts . map ( stmt => {
143
+ const normalizedStmts = stmts . map ( ( stmt ) => {
144
144
if ( Array . isArray ( stmt ) ) {
145
145
return {
146
146
sql : stmt [ 0 ] ,
147
- args : stmt [ 1 ] || [ ]
147
+ args : stmt [ 1 ] || [ ] ,
148
148
} ;
149
149
}
150
150
return stmt ;
Original file line number Diff line number Diff line change @@ -198,11 +198,11 @@ export class WsClient implements Client {
198
198
return this . limit < Array < ResultSet > > ( async ( ) => {
199
199
const streamState = await this . #openStream( ) ;
200
200
try {
201
- const normalizedStmts = stmts . map ( stmt => {
201
+ const normalizedStmts = stmts . map ( ( stmt ) => {
202
202
if ( Array . isArray ( stmt ) ) {
203
203
return {
204
204
sql : stmt [ 0 ] ,
205
- args : stmt [ 1 ] || [ ]
205
+ args : stmt [ 1 ] || [ ] ,
206
206
} ;
207
207
}
208
208
return stmt ;
You can’t perform that action at this time.
0 commit comments