Skip to content

chore: Using prepare package lock script from build tools#155

Merged
pan-kot merged 1 commit intomainfrom
use-prepare-package-lock-from-build-tools
Feb 3, 2026
Merged

chore: Using prepare package lock script from build tools#155
pan-kot merged 1 commit intomainfrom
use-prepare-package-lock-from-build-tools

Conversation

@pan-kot
Copy link
Member

@pan-kot pan-kot commented Jan 27, 2026

Description

Using prepare package lock from here: https://github.com/cloudscape-design/build-tools/blob/main/package.json#L7

Related:

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

"//": "ensure that typedoc uses latest typescript. It prints a warning, but works",
"overrides": {
"typescript": "^4.9.4",
"typescript": "^5.9.2",
Copy link
Member Author

Choose a reason for hiding this comment

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

This matches the version of TS used in the main components package. It fixes a compilation error with test-utils, present after upgrading the deps.

{
"inlineType": {
"name": "NonCancelableEventHandler<{}>",
"name": "NonCancelableEventHandler",
Copy link
Member Author

Choose a reason for hiding this comment

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

This is caused by TS version upgrade.

"tsBuildInfoFile": "./.cache/e2e-tests.tsbuildinfo"
},
"include": ["types", "test"],
"include": ["types", "test", "vite/client"],
Copy link
Member Author

Choose a reason for hiding this comment

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

This fixes import.meta.glob call in visual tests. W/o these types, the call to .glob fails.

// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

/* eslint-disable @vitest/no-conditional-expect */
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Do we want to make the disable more local to the relevant tests? Or do we not want to apply this rule in general for some reason (in that case could we instead disable it globally via configuration)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think a global config makes sense here. That rule was not required in the prev configuration, and in this particular case I do not see clear ways to refactor the code to comply. I will update the PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

};

options.series?.forEach((series) => {
if (!("type" in series)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

The Highcharts series option type was extended with UnknownSeriesOptionsType, which does not include the type field.

Ref: highcharts/highcharts-declarations-generator@b381948#diff-027cb4cef6330a88a19cf87488bbabc97c3ebd9a9e5a2be19084339eabc5ff39R305

@pan-kot pan-kot added this pull request to the merge queue Feb 3, 2026
Merged via the queue into main with commit 668220c Feb 3, 2026
43 of 44 checks passed
@pan-kot pan-kot deleted the use-prepare-package-lock-from-build-tools branch February 3, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants