-
Notifications
You must be signed in to change notification settings - Fork 270
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
chore(backups): convert cleanvm to typescript #8256
base: master
Are you sure you want to change the base?
Conversation
d873580
to
6b88b84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still not convinced thah the ts compilation should be considered as necessary, but if yes, I would advise to have a /dist/ folder that contains all the build artefacts
also I think that it would be better to either really type a file ( no any ) or use jsdoc to clarify the modules status. And typing RemoteAdapter is out of reach for now
for (const vdi of Object.values(metadata.vdis ?? {})) { | ||
const uuid = vdi.uuid | ||
console.log({ uuid }) | ||
metadata.isVhdDifferencing[`${uuid}.vhd`] = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related on this PR
console.log({ | ||
/* metadata, */ vdis: metadata.vdis, | ||
isVhdDifferencing: metadata.isVhdDifferencing, | ||
parent: metadata.vmSnapshot.parent, | ||
mergedSize, | ||
fixMetadata, | ||
fileSystemSize, | ||
size, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console shouldn't be in review
Description
WIP
This is the _cleanVm.mjs built from the .mts.
This allows to see with the diff that the resulting mjs file is the same, except for the empty lines that were deleted by TSC. (not configurable)
I only executed
prettier --write *.mjs
to remove the ";" at end of lines. (not configurable too)Dependencies are only partially typed at the moment.
Checklist
Fixes #007
,See xoa-support#42
,See https://...
)Introduced by
CHANGELOG.unreleased.md
Review process
Notes: