Repository navigation
Fix/powershell snippet fallback #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
merill
merged 10 commits into
merill:main
from
jorgeasaurus:fix/powershell-snippet-fallback
Apr 4, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
129247a
Bump version to 1.0.6
actions-user d9785c3
fix: add local PowerShell snippet fallback when DevX API fails
jorgeasaurus f72c5eb
Update src/common/client.js
jorgeasaurus b006ee2
Update src/common/client.js
jorgeasaurus 9c8be19
Update src/common/client.js
jorgeasaurus 6b6d38c
Update src/common/client.js
jorgeasaurus 27483b6
Update src/common/client.js
jorgeasaurus 51fa231
fix: extract regex to avoid no-useless-escape lint error
jorgeasaurus f6f88ce
Fixed issues with PS script generation
merill e7156ed
Updated ux
merill File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| 'use strict'; | ||
|
|
||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
| const chalk = require('react-dev-utils/chalk'); | ||
|
|
||
| function checkRequiredFiles(files) { | ||
| let currentFilePath; | ||
| try { | ||
| files.forEach(filePath => { | ||
| currentFilePath = filePath; | ||
| // Use fs.constants.F_OK to avoid Node deprecation warnings for fs.F_OK. | ||
| fs.accessSync(filePath, fs.constants.F_OK); | ||
| }); | ||
| return true; | ||
| } catch (err) { | ||
| const dirName = path.dirname(currentFilePath); | ||
| const fileName = path.basename(currentFilePath); | ||
| console.log(chalk.red('Could not find a required file.')); | ||
| console.log(chalk.red(' Name: ') + chalk.cyan(fileName)); | ||
| console.log(chalk.red(' Searched in: ') + chalk.cyan(dirName)); | ||
| return false; | ||
| } | ||
| } | ||
|
|
||
| module.exports = checkRequiredFiles; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.