@fredlackey/devutils 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fredlackey/devutils",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "A globally-installable Node.js CLI toolkit for bootstrapping and configuring development environments across any machine.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -89,7 +89,8 @@ async function getVersion() {
89
89
  * @param {Object} [options] - Installation options
90
90
  * @param {boolean} [options.silent=true] - Silent installation
91
91
  * @param {string} [options.version] - Specific version to install
92
- * @param {string} [options.source] - Package source (winget, msstore)
92
+ * @param {string} [options.source='winget'] - Package source (winget, msstore). Defaults to 'winget'
93
+ * to avoid issues with msstore certificate errors and source ambiguity.
93
94
  * @returns {Promise<{ success: boolean, output: string }>}
94
95
  */
95
96
  async function install(packageName, options = {}) {
@@ -111,8 +112,11 @@ async function install(packageName, options = {}) {
111
112
  command += ` --version "${options.version}"`;
112
113
  }
113
114
 
114
- if (options.source) {
115
- command += ` --source ${options.source}`;
115
+ // Default to 'winget' source to avoid msstore certificate errors and
116
+ // source ambiguity when packages exist in multiple sources
117
+ const source = options.source !== undefined ? options.source : 'winget';
118
+ if (source) {
119
+ command += ` --source ${source}`;
116
120
  }
117
121
 
118
122
  const result = await shell.exec(command);