Skip to content

Commit

Permalink
no LICENSE/NOTICE file for you, JavaScript - you bundle them already
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Feb 24, 2021
1 parent f38c06b commit 7fa5e3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/jsii-pacmak/lib/targets/js.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as spec from '@jsii/spec';

import { Generator } from '../generator';
import { Generator, Legalese } from '../generator';
import { PackageInfo, Target } from '../target';
import { toReleaseVersion } from './version-utils';

Expand Down Expand Up @@ -62,6 +62,11 @@ export default class JavaScript extends Target {
// ##################

class PackOnly extends Generator {
public async save(outdir: string, tarball: string, _: Legalese) {
// Intentionally ignore the Legalese field here... it's not useful here.
return super.save(outdir, tarball, {});
}

protected getAssemblyOutputDir(_mod: spec.Assembly) {
return '.';
}
Expand Down

0 comments on commit 7fa5e3d

Please sign in to comment.