From afbf9dd2e146d387e5c13c2b90f967c8e619301e Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Thu, 30 Jun 2016 18:29:24 -0700 Subject: [PATCH] Update project.json files to take Modules only from src/Modules --- .../project.json | 40 +++++++++++-------- src/powershell/project.json | 36 ++++++++++------- 2 files changed, 46 insertions(+), 30 deletions(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/project.json b/src/Microsoft.PowerShell.ConsoleHost/project.json index 52fe110c92..45486d0079 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/project.json +++ b/src/Microsoft.PowerShell.ConsoleHost/project.json @@ -10,31 +10,39 @@ "warningsAsErrors": true, "allowUnsafe": true, "copyToOutput": { - "include": [ - "Modules", - "../Modules", + "mappings": { + "Modules/" : { + "include": [ + "../Modules/Full", + "../Modules/Shared" + ], + "exclude": [ + "../Modules/Shared/Pester/.git" + ] + } + }, + "include" : [ "powershell.exe", "../../powershell.version" - ], - "exclude": [ - "../Modules/Pester/.git", - "../Modules/map.json", - "Modules/map.json" ] } }, "publishOptions": { - "include": [ - "Modules", - "../Modules", + "mappings": { + "Modules/" : { + "include": [ + "../Modules/Full", + "../Modules/Shared" + ], + "exclude": [ + "../Modules/Shared/Pester/.git" + ] + } + }, + "include" : [ "powershell.exe", "../../powershell.version" - ], - "exclude": [ - "../Modules/Pester/.git", - "../Modules/map.json", - "Modules/map.json" ] }, diff --git a/src/powershell/project.json b/src/powershell/project.json index 45d9c74072..da0f261c71 100644 --- a/src/powershell/project.json +++ b/src/powershell/project.json @@ -8,34 +8,42 @@ "allowUnsafe": true, "emitEntryPoint": true, "copyToOutput": { + "mappings": { + "Modules/" : { + "include": [ + "../Modules/Core", + "../Modules/Shared" + ], + "exclude": [ + "../Modules/Shared/Pester/.git" + ] + } + }, "include": [ - "Modules", - "../Modules", "*.so", "*.dylib", "../../powershell.version" ], - "exclude": [ - "../Modules/Pester/.git", - "../Modules/map.json", - "Modules/map.json" - ] } }, "publishOptions": { + "mappings": { + "Modules/" : { + "include": [ + "../Modules/Core", + "../Modules/Shared" + ], + "exclude": [ + "../Modules/Shared/Pester/.git" + ] + } + }, "include": [ - "Modules", - "../Modules", "*.so", "*.dylib", "../../powershell.version" ], - "exclude": [ - "../Modules/Pester/.git", - "../Modules/map.json", - "Modules/map.json" - ] }, "dependencies": {