File tree Expand file tree Collapse file tree 4 files changed +5055
-2
lines changed Expand file tree Collapse file tree 4 files changed +5055
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : ['main']
6
+ pull_request :
7
+ types : [opened, synchronize]
8
+
9
+ jobs :
10
+ build :
11
+ name : Build and Test
12
+ timeout-minutes : 15
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Check out code
17
+ uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 2
20
+
21
+ - name : Setup Node.js environment
22
+ uses : actions/setup-node@v4
23
+ with :
24
+ node-version : 20
25
+ cache : ' npm'
26
+
27
+ - name : Install dependencies
28
+ run : npm install
29
+
30
+ - name : Build
31
+ run : npm run build
32
+
33
+ - name : Test
34
+ run : npm run test
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ node_modules
3
3
dist
4
4
types
5
5
coverage
6
- package-lock.json
7
6
.idea
8
7
.turbo
9
8
* .tsbuildinfo
Original file line number Diff line number Diff line change 1
- import { readFileSync , writeFileSync } from 'node:fs' ;
1
+ import { mkdirSync , readFileSync , writeFileSync } from 'node:fs' ;
2
2
import { dirname } from 'node:path' ;
3
3
import { fileURLToPath } from 'node:url' ;
4
4
import * as esbuild from 'esbuild' ;
@@ -115,6 +115,7 @@ async function build(esm) {
115
115
process . exit ( 1 ) ;
116
116
}
117
117
118
+ mkdirSync ( 'dist' , { recursive : true } ) ;
118
119
for ( const file of build . outputFiles ) {
119
120
if ( ! file . path . endsWith ( '.umd.js' ) ) {
120
121
writeFileSync ( file . path , file . contents ) ;
You can’t perform that action at this time.
0 commit comments