File tree 5 files changed +38
-0
lines changed
5 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
7
7
jobs :
8
+ " typecheck " :
9
+ name : " Typecheck"
10
+ runs-on : ubuntu-latest
11
+ timeout-minutes : 2
12
+ steps :
13
+ - name : " Checkout this repo"
14
+ uses : actions/checkout@v4
15
+ - name : " Setup Node.js"
16
+ uses : actions/setup-node@v4
17
+ with :
18
+ node-version : " 18.x"
19
+ - name : " Install node dependencies and build"
20
+ run : " npm ci && npm run build"
21
+ - name : " Typecheck"
22
+ run : " npm run typecheck"
23
+
24
+ " format-check " :
25
+ name : " Check formatting"
26
+ runs-on : ubuntu-latest
27
+ timeout-minutes : 2
28
+ steps :
29
+ - name : " Checkout this repo"
30
+ uses : actions/checkout@v4
31
+ - name : " Setup Node.js"
32
+ uses : actions/setup-node@v4
33
+ with :
34
+ node-version : " 18.x"
35
+ - name : " Install node dependencies"
36
+ run : " npm ci"
37
+ - name : " Check formatting"
38
+ run : " npm run format:check"
39
+
8
40
" test-against-sqld " :
9
41
name : " Tests against sqld"
10
42
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 9
9
"lint-staged" : " ^15.2.2"
10
10
},
11
11
"scripts" : {
12
+ "build" : " npm run build --workspaces" ,
13
+ "typecheck" : " npm run typecheck --workspaces" ,
14
+ "format:check" : " npm run format:check --workspaces" ,
12
15
"prepare" : " node .husky/install.mjs" ,
13
16
"lint-staged" : " lint-staged"
14
17
}
Original file line number Diff line number Diff line change 52
52
"build" : " npm run build:esm" ,
53
53
"build:esm" : " tsc -p tsconfig.build-esm.json" ,
54
54
"bundle" : " rm -rf node_modules && mkdir -p node_modules/@libsql/libsql-wasm-experimental && cp -R ../../node_modules/@libsql/libsql-wasm-experimental/* node_modules/@libsql/libsql-wasm-experimental" ,
55
+ "format:check" : " prettier --check ." ,
55
56
"test" : " jest --runInBand" ,
56
57
"typecheck" : " tsc --noEmit" ,
57
58
"typedoc" : " rm -rf ./docs && typedoc"
Original file line number Diff line number Diff line change 95
95
"build" : " npm run build:cjs && npm run build:esm" ,
96
96
"build:cjs" : " tsc -p tsconfig.build-cjs.json" ,
97
97
"build:esm" : " tsc -p tsconfig.build-esm.json" ,
98
+ "format:check" : " prettier --check ." ,
98
99
"postbuild" : " cp package-cjs.json ./lib-cjs/package.json" ,
99
100
"test" : " jest --runInBand" ,
100
101
"typecheck" : " tsc --noEmit" ,
Original file line number Diff line number Diff line change 71
71
"build" : " npm run build:cjs && npm run build:esm" ,
72
72
"build:cjs" : " tsc -p tsconfig.build-cjs.json" ,
73
73
"build:esm" : " tsc -p tsconfig.build-esm.json" ,
74
+ "format:check" : " prettier --check ." ,
74
75
"postbuild" : " cp package-cjs.json ./lib-cjs/package.json" ,
75
76
"test" : " jest --runInBand" ,
76
77
"typecheck" : " tsc --noEmit" ,
You can’t perform that action at this time.
0 commit comments