From 967d917801adf03aa5a96aeacd7fa31d8c105082 Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Thu, 14 Feb 2019 16:34:56 +0100 Subject: [PATCH] fix(jsii-pacmack): default to target directory mode (#363) Always generate to `$root/dist/TARGET`, even when only generating one target. Don't double up on 'dotnet' name. This behavior works better for selectively building targets in a larger build that expects certain naming conventions. --- packages/jsii-pacmak/bin/jsii-pacmak.ts | 2 +- packages/jsii-pacmak/lib/targets/dotnet.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jsii-pacmak/bin/jsii-pacmak.ts b/packages/jsii-pacmak/bin/jsii-pacmak.ts index 3fa1a07658..dfcb913018 100644 --- a/packages/jsii-pacmak/bin/jsii-pacmak.ts +++ b/packages/jsii-pacmak/bin/jsii-pacmak.ts @@ -51,7 +51,7 @@ import { VERSION_DESC } from '../lib/version'; .option('force-subdirectory', { type: 'boolean', desc: 'force generation into a target-named subdirectory, even in single-target mode', - default: false + default: true, }) .option('recurse', { alias: 'R', diff --git a/packages/jsii-pacmak/lib/targets/dotnet.ts b/packages/jsii-pacmak/lib/targets/dotnet.ts index 09790004f1..863028d2d6 100644 --- a/packages/jsii-pacmak/lib/targets/dotnet.ts +++ b/packages/jsii-pacmak/lib/targets/dotnet.ts @@ -61,7 +61,7 @@ export default class Dotnet extends Target { await this.copyFiles( path.join(sourceDir, packageId, 'bin', 'Release'), - path.join(outDir, this.targetName)); + outDir); await fs.remove(path.join(outDir, 'netstandard2.0')); }