File tree Expand file tree Collapse file tree 2 files changed +74
-1
lines changed Expand file tree Collapse file tree 2 files changed +74
-1
lines changed Original file line number Diff line number Diff line change
1
+ version : 2.1
2
+
3
+ executors :
4
+ default :
5
+ docker :
6
+ - image : circleci/node:10
7
+ working_directory : ~/project
8
+ environment :
9
+ YARN_CACHE_FOLDER : " ~/.cache/yarn"
10
+
11
+ jobs :
12
+ install-dependencies :
13
+ executor : default
14
+ steps :
15
+ - checkout
16
+ - attach_workspace :
17
+ at : ~/project
18
+ - restore_cache :
19
+ keys :
20
+ - yarn-{{ checksum "package.json" }}
21
+ - yarn-
22
+ - run :
23
+ name : Install dependencies
24
+ command : |
25
+ yarn install --frozen-lockfile
26
+ - save_cache :
27
+ key : yarn-{{ checksum "package.json" }}
28
+ paths : ~/.cache/yarn
29
+ - persist_to_workspace :
30
+ root : .
31
+ paths : .
32
+ lint :
33
+ executor : default
34
+ steps :
35
+ - attach_workspace :
36
+ at : ~/project
37
+ - run :
38
+ name : Lint
39
+ command : |
40
+ yarn lint
41
+ typescript :
42
+ executor : default
43
+ steps :
44
+ - attach_workspace :
45
+ at : ~/project
46
+ - run :
47
+ name : Typecheck
48
+ command : |
49
+ yarn typescript
50
+ build-package :
51
+ executor : default
52
+ steps :
53
+ - attach_workspace :
54
+ at : ~/project
55
+ - run :
56
+ name : Compile
57
+ command : |
58
+ yarn prepare
59
+
60
+ workflows :
61
+ build-and-test :
62
+ jobs :
63
+ - install-dependencies
64
+ - lint :
65
+ requires :
66
+ - install-dependencies
67
+ - typescript :
68
+ requires :
69
+ - install-dependencies
70
+ - build-package :
71
+ requires :
72
+ - install-dependencies
Original file line number Diff line number Diff line change @@ -80,7 +80,8 @@ export default async function build({
80
80
81
81
let tsc = options ?. tsc
82
82
? path . resolve ( root , options . tsc )
83
- : path . join ( root , 'node_modules' ) + ( platform ( ) === 'win32' ? '.cmd' : '' ) ;
83
+ : path . join ( root , 'node_modules' ) +
84
+ ( platform ( ) === 'win32' ? '.cmd' : '' ) ;
84
85
85
86
if ( ! ( await fs . pathExists ( tsc ) ) ) {
86
87
tsc = spawn . sync ( 'which' , [ 'tsc' ] ) . stdout . toString ( ) . trim ( ) ;
You can’t perform that action at this time.
0 commit comments