-
Notifications
You must be signed in to change notification settings - Fork 532
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
Move migration-tools to separate example package #22267
Conversation
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.
LGTM! Very satisfying to see all the return types added 😄
@@ -65,14 +70,15 @@ class MigrationTool implements IMigrationTool { | |||
return "migrated"; | |||
} else if (this.acceptedMigration !== undefined) { | |||
return "migrating"; | |||
// eslint-disable-next-line unicorn/no-negated-condition |
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.
This is an interesting eslint rule 🤔
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.
Yeah, I'm usually not a fan but will go along with it. Here though I decided to at least put off compliance since it would want me to swap just the last two clauses that are otherwise in chronological order.
⯅ @fluid-example/bundle-size-tests: +245 Bytes
Baseline commit: 1a86c7d |
"build:docs": "api-extractor run --local", | ||
"build:esnext": "tsc --project ./tsconfig.json", | ||
"check:are-the-types-wrong": "attw --pack .", | ||
"check:biome": "biome check .", | ||
"check:exports": "api-extractor run --config ./api-extractor-lint.json", | ||
"check:format": "npm run check:biome", | ||
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore", | ||
"ci:build:docs": "api-extractor run", |
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.
Remove "build:docs" and "ci:build:docs" to avoid API extractor reports. api-extractor.json
could also be removed.
I think the policy will be okay with you leaving the API linting via "check:exports": "api-extractor run --config ./api-extractor-lint.json" using api-extractor-lint.json.
All of the APIs are tagged @internal
which doesn't seem to make sense. Add notes if this is intentional and explain the pattern.
- If nothing will ever be publicly used (package could be in the
@fluid-internal
scope eventually) then remove all API related things - linting too. - If some might be public facing, then use a tag other than
@internal
to distinguish. The linting step should keep tagging honest (even without the report).
This PR primarily moves the migration-tools to their own separate example package, rather than their current home of example-utils. There are no material functional changes to the tools or examples.
Since we'll eventually be putting these through the experimental/beta phase this will be necessary anyway, and in the meantime it'll help clarify to customers what portions they should be checking out.
It largely does not touch the same-container migration tools since they're not the focus right now, beyond separating out some shared types.
Other changes are:
AB#12617
AB#12618