Skip to content

Commit

Permalink
fix: new names and exports for jsii build
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeligio committed Oct 1, 2023
1 parent 5f038d2 commit 71f059e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ const coverageDirectory = 'coverage_report';

const metadataOptions: Pick<
JsiiProjectOptions,
'author' | 'authorAddress' | 'description' | 'gitignore' | 'name' | 'license' | 'repositoryUrl'
'author' | 'authorAddress' | 'description' | 'name' | 'license' | 'repositoryUrl'
> = {
author: 'Eligio Alejandro Mariño Garcés',
authorAddress: '[email protected]',
description: 'Project types for Projen',
gitignore: [reportsDirectory, '.vscode', '.env'],
license: 'MIT',
name,
repositoryUrl: `https://github.com/${repositoryPath}.git`,
Expand All @@ -32,6 +31,7 @@ const documentationOptions: Pick<TypeScriptProjectOptions, 'sampleCode' | 'readm
const buildOptions: Pick<
JsiiProjectPatchOptions,
| 'excludeTypescript'
| 'gitignore'
| 'minNodeVersion'
| 'npmrcOptions'
| 'jsiiVersion'
Expand All @@ -41,6 +41,7 @@ const buildOptions: Pick<
| 'projenrcTsOptions'
> = {
excludeTypescript: ['src/**/*.test.ts'],
gitignore: [reportsDirectory, '.vscode', '.env'],
jsiiVersion: '~5.0.0',
minNodeVersion: '18.17.0',
npmrcOptions: [
Expand Down
12 changes: 6 additions & 6 deletions src/patch/GithubWorkflowPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class GithubWorkflowPatch extends Component {
version: options.actions.actionsUploadArtifact,
},
])
.getVersions();
.createVersions();

const selfMutationJobTree = new VersionTree({ path: ['jobs', 'self-mutation'] });
const selfMutationJobVersions = selfMutationJobTree
Expand All @@ -174,7 +174,7 @@ export class GithubWorkflowPatch extends Component {
version: options.actions.actionsDownloadArtifact,
},
])
.getVersions();
.createVersions();

const packageJsJobTree = new VersionTree({ path: ['jobs', 'package-js'] });
const packageJsJobVersions = packageJsJobTree
Expand All @@ -195,7 +195,7 @@ export class GithubWorkflowPatch extends Component {
version: options.actions.actionsDownloadArtifact,
},
])
.getVersions();
.createVersions();

return this.configure({
path: options.path,
Expand Down Expand Up @@ -232,7 +232,7 @@ export class GithubWorkflowPatch extends Component {
version: options.actions.actionsUploadArtifact,
},
])
.getVersions();
.createVersions();

const releaseGithubJobTree = new VersionTree({ path: ['jobs', 'release_github'] });
const releaseGithubJobVersions = releaseGithubJobTree
Expand All @@ -253,7 +253,7 @@ export class GithubWorkflowPatch extends Component {
version: options.actions.actionsDownloadArtifact,
},
])
.getVersions();
.createVersions();

const releaseNpmJobTree = new VersionTree({ path: ['jobs', 'release_npm'] });
const releaseNpmJobVersions = releaseNpmJobTree
Expand All @@ -274,7 +274,7 @@ export class GithubWorkflowPatch extends Component {
version: options.actions.actionsDownloadArtifact,
},
])
.getVersions();
.createVersions();

return this.configure({
path: options.path,
Expand Down
2 changes: 1 addition & 1 deletion src/renovate/RenovateTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { VersionElement } from './VersionTree';
/**
* The options of the RenovateTransformer constructor.
*/
interface RenovateTransformerOptions {
export interface RenovateTransformerOptions {
/**
* The path to the file to be transformed.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/renovate/VersionTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class VersionTree {
* Get the versions in the tree.
* @returns The versions in the tree.
*/
getVersions() {
createVersions() {
return this.children;
}
}

0 comments on commit 71f059e

Please sign in to comment.