You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Prefix dot-files and dot-directories with an underscore so they are included in the module package, and remove the underscore prefix when copying files to a new repo
docs: Add info about dot-files underscore prefix workaround
test: Add tests to ensure underscore prefix is removed from dot-files and dot-directories
Copy file name to clipboardExpand all lines: docs/Contributing.md
+6
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,12 @@ If you want to increment the Major or Minor version number, you have 2 options:
23
23
Builds are not triggered on tags, and thus the version tag will be used as the starting point for the next version.
24
24
e.g. Creating a new tag of `v2.4.0` will produce a new version of `2.4.1` on the next commit to the `main` branch.
25
25
26
+
## Why are the template dot-files filenames prefixed with an underscore?
27
+
28
+
`Publish-Module` has a bug where it does not include any files or directories starting with `.` in the module NuGet package.
29
+
The newer `Publish-PSResource` has fixed this issue somewhat so the directories and some of the files are included, but it still leaves out some dot-files, like the `.gitignore` and `.editorconfig` files.
30
+
To work around these issues, we prefix the files with an underscore (e.g. `_.gitignore`) so that they are included in the module package, and then remove the underscore prefix during the file copy process of the `New-PowerShellScriptModuleRepository` cmdlet.
31
+
26
32
## ⁉ Why was a specific decision made
27
33
28
34
Curious about some of the choices made in this project?
0 commit comments