Skip to content

Fix CI type error - #446

Merged
webstackdev merged 7 commits into
mainfrom
bugfix/ci-types-error
Nov 4, 2025
Merged

Fix CI type error#446
webstackdev merged 7 commits into
mainfrom
bugfix/ci-types-error

Conversation

@webstackdev

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings November 4, 2025 02:00
@vercel

vercel Bot commented Nov 4, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
astro-webstackbuilders-com Ready Ready Preview Comment Nov 4, 2025 2:23pm

@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown

Dependency Review

The following issues were found:

  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses.
  • ⚠️ 4 packages with OpenSSF Scorecard issues.

View full job summary

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR streamlines the project's npm scripts and updates the .cache directory handling strategy. The main goal is to remove unused e2e testing scripts while ensuring that generated type definitions and placeholder data remain version-controlled for development consistency.

  • Removed 13 unused or redundant e2e testing scripts from package.json
  • Updated .gitignore to selectively include TypeScript declarations and pages.json in .cache
  • Added type declaration file for the generated pages.json file

Reviewed Changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated 2 comments.

File Description
package.json Removed 13 redundant e2e test script variations, keeping only core test commands
.gitignore Changed from ignoring entire .cache directory to selectively excluding contents while preserving type declarations and pages.json
.cache/pages.d.ts Added TypeScript type definitions for the generated pages.json file structure

Comment thread package.json
@@ -45,19 +45,6 @@
"test": "NODE_ENV=test npm run test:unit && npm run test:e2e:ready",

Copilot AI Nov 4, 2025

Copy link

Choose a reason for hiding this comment

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

The script test:e2e:ready is referenced in the main test script but has been removed. This will cause the test command to fail with 'missing script: test:e2e:ready' error. Either update this to use test:e2e or restore the test:e2e:ready script.

Suggested change
"test": "NODE_ENV=test npm run test:unit && npm run test:e2e:ready",
"test": "NODE_ENV=test npm run test:unit && npm run test:e2e",

Copilot uses AI. Check for mistakes.
Comment thread .cache/pages.d.ts
Comment on lines +6 to +14
type PageData =
| string
| { articles: string[] }
| { 'case-studies': string[] }
| { downloads: string[] }
| { services: string[] }
| { 'social-shares': string[] }
| { stories: string[] }
| { tags: string[] }

Copilot AI Nov 4, 2025

Copy link

Choose a reason for hiding this comment

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

The PageData type definition is too rigid with hardcoded property names. This forces type definition updates whenever new page categories are added. Consider using a more flexible type: type PageData = string | Record<string, string[]> to allow any category name.

Suggested change
type PageData =
| string
| { articles: string[] }
| { 'case-studies': string[] }
| { downloads: string[] }
| { services: string[] }
| { 'social-shares': string[] }
| { stories: string[] }
| { tags: string[] }
type PageData = string | Record<string, string[]>

Copilot uses AI. Check for mistakes.
@webstackdev
webstackdev merged commit 5ea137a into main Nov 4, 2025
13 of 18 checks passed
@webstackdev
webstackdev deleted the bugfix/ci-types-error branch November 4, 2025 18:16
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