Refactor->Rename NodeJS file does not change package.json


First-time poster here.

When I do Refactor->Rename on a NodeJS javascript file, I was expecting the reference to it in package.json to be changed as well.   For example, these should be changed if I renamed the server.js file to app.js:

"main": "server.js"
"start": "node server.js"

Shouldn't they?

In the Rename dialog, I have "Search for references", "Search in comments and strings" and "Search for text occurrences" checked.

Thanks for your attention.

WebStorm 2016.3.4
Build #WS-163.13906.20, built on March 7, 2017
JRE: 1.8.0_112-release-408-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o


this feature is not currently supported, please feel free to file a request for it to youtrack. Related ticket:


Thanks for the quick response.

Feature request created:


Please sign in to leave a comment.