Skip to content

Commit

Permalink
feat(node,jsii): authorOrganization
Browse files Browse the repository at this point in the history
A boolean indicating if the author is an organization or an individual.
Defaults to `false`.
  • Loading branch information
Elad Ben-Israel committed Jul 5, 2020
1 parent 752c080 commit e773a0d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"author": {
"name": "Elad Ben-Israel",
"email": "benisrae@amazon.com"
"email": "benisrae@amazon.com",
"organization": false
},
"devDependencies": {
"constructs": "2.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/jsii-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface JsiiProjectOptions extends CommonOptions {
readonly authorName: string;
readonly authorEmail?: string;
readonly authorUrl?: string;
readonly authorOrganization?: boolean;
readonly license?: string;
readonly stability?: string;

Expand Down
6 changes: 5 additions & 1 deletion src/node-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,13 @@ export interface NodeProjectOptions extends ProjectOptions, CommonOptions {
readonly description?: string;
readonly repository?: string;
readonly repositoryDirectory?: string;

readonly authorName?: string;
readonly authorEmail?: string;
readonly homepage?: string;
readonly authorUrl?: string;
readonly authorOrganization?: boolean;

readonly homepage?: string;
readonly license?: string;
readonly stability?: string;
readonly gitignore?: string[];
Expand Down Expand Up @@ -206,6 +209,7 @@ export class NodeProject extends Project {
name: options.authorName,
email: options.authorEmail,
url: options.authorUrl,
organization: options.authorOrganization ?? false,
},
'homepage': options.homepage,
'devDependencies': this.devDependencies,
Expand Down

0 comments on commit e773a0d

Please sign in to comment.