Skip to content

Commit

Permalink
Merge pull request #20 from theohbrothers/fix/update-vscode-tasks.jso…
Browse files Browse the repository at this point in the history
…n-to-dynamically-determine-module-name

Fix: Update vscode/tasks.json to dynamically determine module name
  • Loading branch information
leojonathanoh committed May 24, 2021
2 parents b5e0fec + 22a0a15 commit 1e6fd5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{
"label": "Build: Generate module manifest",
"type": "shell",
"command": "MODULE_VERSION=${input:MODULE_VERSION} pwsh -Command 'build/PSModulePublisher/src/module/Generate-ModuleManifest.ps1 -DefinitionFile build/definitions/modulemanifest/definition.ps1 -Path src/Position-ExplorerWindow/Position-ExplorerWindow.psd1'",
"command": "MODULE_NAME=$(basename $(pwd)); MODULE_VERSION=${input:MODULE_VERSION} pwsh -Command \"build/PSModulePublisher/src/module/Generate-ModuleManifest.ps1 -DefinitionFile build/definitions/modulemanifest/definition.ps1 -Path src/$MODULE_NAME/$MODULE_NAME.psd1\"",
"group": {
"isDefault": true,
"kind": "build"
Expand All @@ -47,13 +47,13 @@
{
"label": "Publish module (dry run)",
"type": "shell",
"command": "NUGET_API_KEY=${input:NUGET_API_KEY} MODULE_VERSION=${input:MODULE_VERSION} pwsh -Command 'build/PSModulePublisher/src/Invoke-Publish.ps1 -ModuleManifestPath src/Position-ExplorerWindow/Position-ExplorerWindow.psd1 -Repository PSGallery -DryRun'",
"command": "MODULE_NAME=$(basename $(pwd)); NUGET_API_KEY=${input:NUGET_API_KEY} MODULE_VERSION=${input:MODULE_VERSION} pwsh -Command \"build/PSModulePublisher/src/Invoke-Publish.ps1 -ModuleManifestPath src/$MODULE_NAME/$MODULE_NAME.psd1 -Repository PSGallery -DryRun\"",
"group": "build"
},
{
"label": "Publish module",
"type": "shell",
"command": "NUGET_API_KEY=${input:NUGET_API_KEY} MODULE_VERSION=${input:MODULE_VERSION} pwsh -Command 'build/PSModulePublisher/src/Invoke-Publish.ps1 -ModuleManifestPath src/Position-ExplorerWindow/Position-ExplorerWindow.psd1 -Repository PSGallery'",
"command": "MODULE_NAME=$(basename $(pwd)); NUGET_API_KEY=${input:NUGET_API_KEY} MODULE_VERSION=${input:MODULE_VERSION} pwsh -Command \"build/PSModulePublisher/src/Invoke-Publish.ps1 -ModuleManifestPath src/$MODULE_NAME/$MODULE_NAME.psd1 -Repository PSGallery\"",
"group": "build"
},

Expand Down

0 comments on commit 1e6fd5d

Please sign in to comment.