-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Bug]: No files selected, nothing to do. Version 1.0.1 #766
Comments
Just tried Version 1.0.0 instead of latest(1.0.1) and that worked |
Verified that this issue exists with v1.0.1 $ cat example.ts
import AWS from "aws-sdk";
const client = new AWS.DynamoDB();
const response = await client.listTables({}).promise();
$ npx aws-sdk-js-codemod@1.0.1 -t v2-to-v3 example.ts
Need to install the following packages:
aws-sdk-js-codemod@1.0.1
Ok to proceed? (y) y
╔════════════════════════════════════════════════════════╗
║ Please review the code change thoroughly for required ║
║ functionality before deploying it to production. ║
║ ║
║ If the transformation is not complete or is incorrect, ║
║ please report the issue on GitHub. ║
╚════════════════════════════════════════════════════════╝
No files selected, nothing to do.
All done.
Results:
0 errors
0 unmodified
0 skipped
0 ok
Time elapsed: 0.001seconds |
The v1.0.1 updated jscodeshift from v0.15.0 to v0.15.1 Looks like the |
Diff between jscodeshift v0.15.0 and v0.15.1 |
The issue appears to be fix for respecting extensions in facebook/jscodeshift#562 The CLI succeeds if $ cat example.ts
import AWS from "aws-sdk";
const client = new AWS.DynamoDB();
const response = await client.listTables({}).promise();
$ npx aws-sdk-js-codemod@1.0.1 -t v2-to-v3 --extensions=ts example.ts
╔════════════════════════════════════════════════════════╗
║ Please review the code change thoroughly for required ║
║ functionality before deploying it to production. ║
║ ║
║ If the transformation is not complete or is incorrect, ║
║ please report the issue on GitHub. ║
╚════════════════════════════════════════════════════════╝
Processing 1 files...
Spawning 1 workers...
Sending 1 files to free worker...
All done.
Results:
0 errors
0 unmodified
0 skipped
1 ok
Time elapsed: 0.252seconds The issue with jscodeshift is that it sets |
The bug reported upstream at facebook/jscodeshift#582 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Self-service
Describe the bug
Date: 2024-02-20T08:42:32.865Z
Tried the command with both relative and absolute paths. It was working till two days ago, but today, it just doesn't find the file and shows the:
No files selected, nothing to do.
All done.
Results:
0 errors
0 unmodified
0 skipped
0 ok
Time elapsed: 0.001seconds
Steps to reproduce
Run:
npx aws-sdk-js-codemod@latest -t v2-to-v3 PATH
Observed behavior
No files selected, nothing to do.
All done.
Results:
0 errors
0 unmodified
0 skipped
0 ok
Time elapsed: 0.001seconds
Expected behavior
Does the migration
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: