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
Could get-package-info output the package name as-is on all platforms, instead of replacing the hyphens - with underscores _ on win32?
This question is motivated by recent honeycomb work with electron-forge v6. I found that the electron-forge Windows package maker @electron-forge/maker-squirrel is outputting installer names like hello-honeycomb-2.3.1 Setup.exe
Where the file name preserves the hyphen in the package name, hello-honeycomb.
Using get-package-info I could almost construct this name as
Could get-package-info output the package name as-is on all platforms, instead of replacing the hyphens
-
with underscores_
on win32?This question is motivated by recent honeycomb work with electron-forge v6. I found that the electron-forge Windows package maker @electron-forge/maker-squirrel is outputting installer names like
hello-honeycomb-2.3.1 Setup.exe
Where the file name preserves the hyphen in the package name,
hello-honeycomb
.Using get-package-info I could almost construct this name as
But since the
package_name
had its hyphen converted to an underscore, the closest I could get washello_honeycomb-2.3.1 Setup.exe
I think this is a (new?) use case where we'd want to keep the hypen, even on win32.
Instead of having platform-specific behavior, could get-package-info provide both versions of the name outputs? Perhaps:
package_name
-- the name from package.json as-ispackage_name_with_underscores
-- the name with hypens replaced with underscoresThen from any platform, win32 or other, users could consume the value they need.
The text was updated successfully, but these errors were encountered: