File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : CI build
2
2
3
3
on :
4
- push :
5
- branches :
6
- - master
7
- - support/6.x
8
4
pull_request :
9
5
branches :
10
6
- master
11
- - support/6.x
12
7
13
8
permissions :
14
9
contents : read
24
19
steps :
25
20
- name : Checkout
26
21
uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0
27
24
28
25
- name : Install pnpm
29
26
uses : pnpm/action-setup@v4
37
34
node-version : ${{ matrix.node-version }}
38
35
39
36
- run : pnpm install --frozen-lockfile
37
+ - run : pnpm lerna run build --since origin/master --ignore @turf/turf
40
38
- run : git diff --exit-code
41
- - run : pnpm test
39
+ - run : pnpm lerna run test --since origin/master
40
+ # note: does not run linting
41
+ # note: does not run last-checks
Original file line number Diff line number Diff line change 28
28
" {projectRoot}/test/**" ,
29
29
" {projectRoot}/types.ts"
30
30
],
31
- "dependsOn" : [" build " ],
31
+ "dependsOn" : [],
32
32
"cache" : true
33
33
},
34
34
"last-checks" : {
Original file line number Diff line number Diff line change 12
12
"lint:mrl" : " mrl check" ,
13
13
"lint:prettier" : " prettier --check ." ,
14
14
"preinstall" : " npx only-allow pnpm" ,
15
- "prepare" : " husky && lerna run build " ,
15
+ "prepare" : " husky" ,
16
16
"test" : " pnpm run lint && lerna run test && lerna run --scope @turf/turf last-checks"
17
17
},
18
18
"lint-staged" : {
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ function difference(
52
52
const properties = features . features [ 0 ] . properties || { } ;
53
53
54
54
const differenced = polygonClipping . difference ( geoms [ 0 ] , ...geoms . slice ( 1 ) ) ;
55
+
55
56
if ( differenced . length === 0 ) return null ;
56
57
if ( differenced . length === 1 ) return polygon ( differenced [ 0 ] , properties ) ;
57
58
return multiPolygon ( differenced , properties ) ;
You can’t perform that action at this time.
0 commit comments