Flatten Packages for Visual Studio
node_modules folder to avoid long path issues on Windows.
Important! Node.js MUST be installed for this to work.
The extension adds a button in the context-menu of Solution Explorer.
It shows up when you right-click
package.json or any folder containing
a subfolder called
The first time you run this extension it will download the npm package flatten-packages if you don't already have it installed.
When the flatten-packages modules is installed (it takes ~5 seconds),
the extension will run the command to flatten the package hierarchy
Since the extension uses a Node module behind the scenes, the package flattening will work with long paths that Windows and Visual Studio normally can't handle.