Commit 066fc04
authored
🩹 [Patch]: Build root module from files before subfolders (#83)
## Description
This pull request includes several changes to improve the organization
and processing of module files in the PowerShell build scripts. The most
important changes include modifying the order and method of adding
content from subfolders, reorganizing the script regions, and ensuring
consistent sorting of files and folders.
Changes to file processing order and method:
*
[`README.md`](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L47-R56):
Changed the order of processing subfolder content and clarified that
files are processed recursively in alphabetical order.
*
[`scripts/helpers/Build/Add-ContentFromItem.ps1`](diffhunk://#diff-36e9defd1dfaa43ba6fef9a2251761c86b9ac751eaf3177f344a0ec597e3c832L35-L44):
Moved the processing of subfolders to occur after processing files in
the current folder, ensuring a more logical and efficient order.
[[1]](diffhunk://#diff-36e9defd1dfaa43ba6fef9a2251761c86b9ac751eaf3177f344a0ec597e3c832L35-L44)
[[2]](diffhunk://#diff-36e9defd1dfaa43ba6fef9a2251761c86b9ac751eaf3177f344a0ec597e3c832L54-R64)
Reorganization of script regions:
*
[`scripts/helpers/Build/Build-PSModuleRootModule.ps1`](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879R68):
Added and reorganized region headers for better readability and
structure, including "Class exporter," "Module post-header," "Data
importer," and "Member exporter" sections.
[[1]](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879R68)
[[2]](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879R120)
[[3]](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879R146-R162)
[[4]](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879R232-R235)
Consistency improvements:
*
[`scripts/helpers/Build/Build-PSModuleRootModule.ps1`](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879L204-R199):
Ensured consistent sorting of files and folders by name before
processing, improving the predictability of the build process.
[[1]](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879L204-R199)
[[2]](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879L213-R215)
*
[`scripts/helpers/Build/Get-PSModuleClassesToExport.ps1`](diffhunk://#diff-c51cdeca9e44fe598bc10e94c98fc0d72f8a6fb36e872193b2fc9b9b1348f1a9L28-R28):
Sorted files by name before processing to maintain consistency.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] 1 parent 8b38cc6 commit 066fc04
File tree
4 files changed
+33
-42
lines changed- scripts/helpers/Build
4 files changed
+33
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
| |||
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
54 | | - | |
| 48 | + | |
55 | 49 | | |
56 | | - | |
57 | 50 | | |
58 | 51 | | |
59 | 52 | | |
60 | | - | |
61 | 53 | | |
62 | | - | |
| 54 | + | |
63 | 55 | | |
64 | 56 | | |
65 | | - | |
66 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
67 | 63 | | |
68 | | - | |
69 | | - | |
| 64 | + | |
70 | 65 | | |
71 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| 146 | + | |
144 | 147 | | |
145 | | - | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| 153 | + | |
| 154 | + | |
150 | 155 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | 156 | | |
160 | 157 | | |
161 | 158 | | |
162 | 159 | | |
163 | 160 | | |
164 | 161 | | |
165 | | - | |
| 162 | + | |
166 | 163 | | |
167 | 164 | | |
168 | 165 | | |
| |||
171 | 168 | | |
172 | 169 | | |
173 | 170 | | |
174 | | - | |
175 | 171 | | |
176 | | - | |
177 | | - | |
| 172 | + | |
178 | 173 | | |
179 | 174 | | |
180 | 175 | | |
| |||
201 | 196 | | |
202 | 197 | | |
203 | 198 | | |
204 | | - | |
| 199 | + | |
205 | 200 | | |
206 | 201 | | |
207 | 202 | | |
| |||
210 | 205 | | |
211 | 206 | | |
212 | 207 | | |
213 | | - | |
| 208 | + | |
214 | 209 | | |
215 | | - | |
216 | 210 | | |
217 | 211 | | |
218 | 212 | | |
219 | 213 | | |
220 | 214 | | |
221 | | - | |
222 | | - | |
| 215 | + | |
223 | 216 | | |
224 | 217 | | |
225 | 218 | | |
| |||
236 | 229 | | |
237 | 230 | | |
238 | 231 | | |
| 232 | + | |
239 | 233 | | |
240 | 234 | | |
| 235 | + | |
241 | 236 | | |
242 | 237 | | |
243 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments