Skip to content

Commit 967d917

Browse files
authored
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.
1 parent 140aa4d commit 967d917

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/jsii-pacmak/bin/jsii-pacmak.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import { VERSION_DESC } from '../lib/version';
5151
.option('force-subdirectory', {
5252
type: 'boolean',
5353
desc: 'force generation into a target-named subdirectory, even in single-target mode',
54-
default: false
54+
default: true,
5555
})
5656
.option('recurse', {
5757
alias: 'R',

packages/jsii-pacmak/lib/targets/dotnet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default class Dotnet extends Target {
6161

6262
await this.copyFiles(
6363
path.join(sourceDir, packageId, 'bin', 'Release'),
64-
path.join(outDir, this.targetName));
64+
outDir);
6565
await fs.remove(path.join(outDir, 'netstandard2.0'));
6666
}
6767

0 commit comments

Comments
 (0)