@@ -12,25 +12,8 @@ void main() {
12
12
'bundles external dependencies with external dependencies' ,
13
13
() async {
14
14
final projectDirectory = Directory .systemTemp.createTempSync ();
15
- File (path.join (projectDirectory.path, 'pubspec.yaml' ))
16
- .writeAsStringSync (
17
- '''
18
- name: example
19
- version: 0.1.0
20
- environment:
21
- sdk: ^2.17.0
22
- dependencies:
23
- mason: any
24
- foo:
25
- path: ../../foo
26
- dev_dependencies:
27
- test: any
28
- ''' ,
29
- );
30
15
File (path.join (projectDirectory.path, 'pubspec.lock' ))
31
- .writeAsStringSync (
32
- fooPath,
33
- );
16
+ .writeAsStringSync (fooPath);
34
17
final copyCalls = < String > [];
35
18
36
19
await createExternalPackagesFolder (
@@ -57,48 +40,10 @@ dev_dependencies:
57
40
"don't bundle internal path dependencies" ,
58
41
() async {
59
42
final projectDirectory = Directory .systemTemp.createTempSync ();
60
- File (path.join (projectDirectory.path, 'pubspec.yaml' ))
61
- .writeAsStringSync (
62
- '''
63
- name: example
64
- version: 0.1.0
65
- environment:
66
- sdk: ^2.17.0
67
- dependencies:
68
- mason: any
69
- foo:
70
- path: ../../foo
71
- bar:
72
- path: packages/bar
73
- dev_dependencies:
74
- test: any
75
- ''' ,
76
- );
77
43
File (path.join (projectDirectory.path, 'pubspec.lock' ))
78
- .writeAsStringSync (
79
- fooPathWithInternalDependency,
80
- );
44
+ .writeAsStringSync (fooPathWithInternalDependency);
81
45
final copyCalls = < String > [];
82
46
83
- File (
84
- path.join (
85
- projectDirectory.path,
86
- 'packages' ,
87
- 'bar' ,
88
- 'pubspec.yaml' ,
89
- ),
90
- )
91
- ..createSync (recursive: true )
92
- ..writeAsStringSync (
93
- '''
94
-
95
- name: bar
96
- version: 0.1.0
97
- environment:
98
- sdk: ^2.17.0
99
- ''' ,
100
- );
101
-
102
47
await createExternalPackagesFolder (
103
48
projectDirectory: projectDirectory,
104
49
buildDirectory: Directory (path.join (projectDirectory.path, 'build' )),
0 commit comments