Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ng-update script for migration to openapitools 7.4 #1696

Merged
merged 4 commits into from
May 30, 2024

Conversation

cpaulve-1A
Copy link
Contributor

Proposed change

Ng update script to help the migration to @ama-sdk/schematics 10.3
As projects generated via the @ama-sdk/create command, the update is exposed as a schematics.
Unfortunately, it will not allow the update of several version in one command and needs the 10.3 version of ama-sdk/schematics to already be installed to be run.

@cpaulve-1A cpaulve-1A requested a review from a team as a code owner April 22, 2024 13:09
Copy link

nx-cloud bot commented Apr 22, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 68e38ec. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@cpaulve-1A cpaulve-1A force-pushed the fix/openapi-version-override branch 2 times, most recently from bb7c9ef to 8608aca Compare April 23, 2024 13:53
sdo-1A
sdo-1A previously approved these changes May 24, 2024
@cpaulve-1A cpaulve-1A force-pushed the fix/openapi-version-override branch from 8608aca to d4faf62 Compare May 29, 2024 11:55
@cpaulve-1A cpaulve-1A changed the base branch from main to release/10.3 May 29, 2024 11:55
/**
* Facilitate the migration of a version to another by the run of migration rules
* @param options
*/
function migrateFn(options: MigrateSchematicsSchemaOptions): Rule {

const currentVersion = JSON.parse(require(resolve(__dirname, '..', '..', 'package.json'))).version;
const currentVersion = require(resolve(__dirname, '..', '..', 'package.json')).version;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shame on me 😅

@cpaulve-1A cpaulve-1A enabled auto-merge May 29, 2024 14:32
@cpaulve-1A cpaulve-1A merged commit 46f6fbc into release/10.3 May 30, 2024
25 of 29 checks passed
@cpaulve-1A cpaulve-1A deleted the fix/openapi-version-override branch May 30, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants