Packaging in Visual Studio Code

Since Merge-Script can be called from the task integration in Visual Studio Code, it’s very easy to create a task.json file that packages scripts by using Ctrl+Shift+B. You can define the task.json like this.

From VS Code, you can simply open a PS1 file and press the key combination Ctrl+Shift+B. The output of the command will be written to a “out” folder in the same directory as the PS1 file you are building.

Here is an example of packaging a script.