Skip to content

Commit 494c03c

Browse files
authored
Merge pull request #257 from alcpereira/chore/husky
chore: bump husky and clean up scripts
2 parents 1e309a1 + 9331a43 commit 494c03c

File tree

7 files changed

+20
-17
lines changed

7 files changed

+20
-17
lines changed

.husky/install.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// See https://typicode.github.io/husky/how-to.html#ci-server-and-docker
12
// Skip Husky install in production and CI
23
if (process.env.NODE_ENV === "production" || process.env.CI === "true") {
34
process.exit(0);

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run lint-staged
1+
lint-staged

package-lock.json

+8-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
"packages/libsql-client",
55
"packages/libsql-client-wasm"
66
],
7-
"dependencies": {
8-
"husky": "^9.0.11",
9-
"lint-staged": "^15.2.2"
10-
},
7+
"dependencies": {},
118
"scripts": {
9+
"prepare": "node .husky/install.mjs",
1210
"build": "npm run build --workspaces",
1311
"typecheck": "npm run typecheck --workspaces",
1412
"format:check": "npm run format:check --workspaces",
1513
"prepare": "node .husky/install.mjs",
1614
"lint-staged": "lint-staged"
15+
},
16+
"devDependencies": {
17+
"lint-staged": "^15.2.2",
18+
"husky": "^9.1.5"
1719
}
1820
}

packages/libsql-client/package.json

-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
"test": "jest --runInBand",
101101
"typecheck": "tsc --noEmit",
102102
"typedoc": "rm -rf ./docs && typedoc",
103-
"prepare": "husky install",
104103
"lint-staged": "lint-staged"
105104
},
106105
"dependencies": {
@@ -113,7 +112,6 @@
113112
"devDependencies": {
114113
"@types/jest": "^29.2.5",
115114
"@types/node": "^18.15.5",
116-
"husky": "^9.0.11",
117115
"jest": "^29.3.1",
118116
"lint-staged": "^15.2.2",
119117
"msw": "^2.3.0",

packages/libsql-client/src/http.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ export class HttpClient implements Client {
140140
): Promise<Array<ResultSet>> {
141141
return this.limit<Array<ResultSet>>(async () => {
142142
try {
143-
const normalizedStmts = stmts.map(stmt => {
143+
const normalizedStmts = stmts.map((stmt) => {
144144
if (Array.isArray(stmt)) {
145145
return {
146146
sql: stmt[0],
147-
args: stmt[1] || []
147+
args: stmt[1] || [],
148148
};
149149
}
150150
return stmt;

packages/libsql-client/src/ws.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ export class WsClient implements Client {
198198
return this.limit<Array<ResultSet>>(async () => {
199199
const streamState = await this.#openStream();
200200
try {
201-
const normalizedStmts = stmts.map(stmt => {
201+
const normalizedStmts = stmts.map((stmt) => {
202202
if (Array.isArray(stmt)) {
203203
return {
204204
sql: stmt[0],
205-
args: stmt[1] || []
205+
args: stmt[1] || [],
206206
};
207207
}
208208
return stmt;

0 commit comments

Comments
 (0)