2
2
$ . $ {TESTDIR}/ .. / .. / helpers/ setup_integration_test. sh
3
3
4
4
Test using $ TURBO_ROOT $ in inputs and outputs
5
+ $ mkdir -p fixtures/ turbo_root_inputs_outputs/ packages/ pkg-a/ dist
5
6
$ cd fixtures/ turbo_root_inputs_outputs
7
+ $ echo ' console.log("root file");' > root-file. js
8
+ $ cp $ {TESTDIR}/ turbo. json ./ turbo. json
9
+ $ git add . && git commit -m " Initial commit" -- quiet
10
+
6
11
$ $ {TURBO} build -- output-logs= hash-only
7
- • Packages in scope: pkg-a
8
- • Running build in 1 packages
9
- • Remote caching disabled
12
+ \xe2\x80\xa2 Packages in scope: pkg-a (esc)
13
+ \xe2\x80\xa2 Running build in 1 packages (esc)
14
+ \xe2\x80\xa2 Remote caching disabled (esc)
10
15
pkg-a: build: cache miss, executing * hash* (glob)
11
16
12
17
Tasks: 1 successful, 1 total
13
18
Cached: 0 cached , 1 total
14
- Time: * (glob)
19
+ Time: * ms (glob)
15
20
16
21
$ test -f packages/ pkg-a/ dist/ root-file. js
17
22
$ cat packages/ pkg-a/ dist/ root-file. js
18
23
console. log (" root file" );
19
24
$ rm packages/ pkg-a/ dist/ root-file. js
20
25
21
26
$ $ {TURBO} build -- output-logs= hash-only
22
- • Packages in scope: pkg-a
23
- • Running build in 1 packages
24
- • Remote caching disabled
27
+ \xe2\x80\xa2 Packages in scope: pkg-a (esc)
28
+ \xe2\x80\xa2 Running build in 1 packages (esc)
29
+ \xe2\x80\xa2 Remote caching disabled (esc)
25
30
pkg-a: build: cache hit, replaying output * hash* (glob)
26
31
27
32
Tasks: 1 successful, 1 total
28
33
Cached: 1 cached , 1 total
29
- Time: * (glob)
34
+ Time: * ms (glob)
30
35
31
36
$ test -f packages/ pkg-a/ dist/ root-file. js
32
37
$ cat packages/ pkg-a/ dist/ root-file. js
@@ -35,51 +40,59 @@ Test using $TURBO_ROOT$ in inputs and outputs
35
40
$ echo " console.log('modified');" > root-file. js
36
41
37
42
$ $ {TURBO} build -- output-logs= hash-only
38
- • Packages in scope: pkg-a
39
- • Running build in 1 packages
40
- • Remote caching disabled
43
+ \xe2\x80\xa2 Packages in scope: pkg-a (esc)
44
+ \xe2\x80\xa2 Running build in 1 packages (esc)
45
+ \xe2\x80\xa2 Remote caching disabled (esc)
41
46
pkg-a: build: cache miss, executing * hash* (glob)
42
47
43
48
Tasks: 1 successful, 1 total
44
49
Cached: 0 cached , 1 total
45
- Time: * (glob)
50
+ Time: * ms (glob)
46
51
47
52
$ cat packages/ pkg-a/ dist/ root-file. js
48
53
console. log (' modified' );
49
54
50
55
Test using $ TURBO_ROOT $ in outputs only
51
56
$ cd .. / turbo_root_outputs_only
57
+ $ mkdir -p .
58
+ $ cp $ {TESTDIR}/ turbo. json ./ turbo. json
59
+ $ git add . && git commit -m " Initial commit" -- quiet
60
+
52
61
$ $ {TURBO} build -- output-logs= hash-only
53
- • Packages in scope: turbo_root_outputs_only
54
- • Running build in 1 packages
55
- • Remote caching disabled
62
+ \xe2\x80\xa2 Packages in scope: turbo_root_outputs_only (esc)
63
+ \xe2\x80\xa2 Running build in 1 packages (esc)
64
+ \xe2\x80\xa2 Remote caching disabled (esc)
56
65
turbo_root_outputs_only: build: cache miss, executing * hash* (glob)
57
66
58
67
Tasks: 1 successful, 1 total
59
68
Cached: 0 cached , 1 total
60
- Time: * (glob)
69
+ Time: * ms (glob)
61
70
62
71
$ test -f root-output. js
63
72
$ cat root-output. js
64
73
root output
65
74
$ rm root-output. js
66
75
67
76
$ $ {TURBO} build -- output-logs= hash-only
68
- • Packages in scope: turbo_root_outputs_only
69
- • Running build in 1 packages
70
- • Remote caching disabled
77
+ \xe2\x80\xa2 Packages in scope: turbo_root_outputs_only (esc)
78
+ \xe2\x80\xa2 Running build in 1 packages (esc)
79
+ \xe2\x80\xa2 Remote caching disabled (esc)
71
80
turbo_root_outputs_only: build: cache hit, replaying output * hash* (glob)
72
81
73
82
Tasks: 1 successful, 1 total
74
83
Cached: 1 cached , 1 total
75
- Time: * (glob)
84
+ Time: * ms (glob)
76
85
77
86
$ test -f root-output. js
78
87
$ cat root-output. js
79
88
root output
80
89
81
90
Test error when using $ TURBO_ROOT $ in globalDependencies
82
91
$ cd .. / turbo_root_global_deps_error
92
+ $ mkdir -p .
93
+ $ cp $ {TESTDIR}/ turbo. json ./ turbo. json
94
+ $ git add . && git commit -m " Initial commit" -- quiet
95
+
83
96
$ $ {TURBO} build -- output-logs= hash-only
84
97
ERROR: $ TURBO_ROOT $ syntax is not allowed in globalDependencies
85
98
[1 ]
0 commit comments