Skip to content

chore: remove bun repo config#29

Open
nicomiguelino wants to merge 1 commit intomainfrom
chore/cleanup-bun-to-npm-migration
Open

chore: remove bun repo config#29
nicomiguelino wants to merge 1 commit intomainfrom
chore/cleanup-bun-to-npm-migration

Conversation

@nicomiguelino
Copy link
Copy Markdown
Collaborator

Summary

  • remove Bun-specific repo lock/config files
  • switch Dependabot package updates to npm
  • keep downstream test setup working via @screenly/edge-apps/test

- delete bun lockfile and bun test config
- switch dependabot updates to npm
- preserve test setup via @screenly/edge-apps/test
- refresh package-lock after npm install
@nicomiguelino nicomiguelino self-assigned this May 6, 2026
@nicomiguelino nicomiguelino marked this pull request as ready for review May 6, 2026 04:36
@nicomiguelino nicomiguelino requested a review from Copilot May 6, 2026 04:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 removes Bun-specific repository configuration/lock artifacts, switches Dependabot to track npm updates, and keeps the downstream @screenly/edge-apps/test side-effect behavior by moving the DOM-global initialization into the ./test entrypoint.

Changes:

  • Removed Bun repo config (bunfig.toml) and lockfile (bun.lock).
  • Updated Dependabot to use the npm package ecosystem.
  • Moved JSDOM/global DOM setup into src/test/index.ts and removed the separate src/test/setup.ts side-effect module.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/test/setup.ts Deleted prior JSDOM/global setup module (previously used for Bun preload / side effects).
src/test/index.ts Inlined DOM globals initialization into the ./test entrypoint and removed the setup re-export.
package-lock.json Replaced/updated lockfile content for npm usage (includes metadata changes for platform-specific packages).
bunfig.toml Removed Bun test preload configuration.
bun.lock Removed Bun lockfile from the repo.
.github/dependabot.yml Switched Dependabot ecosystem from bun to npm and renamed the group accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/test/index.ts
Comment on lines +1 to +2
import { JSDOM } from 'jsdom'

Comment thread src/test/index.ts
Comment on lines +12 to +20
global.document = dom.window.document
global.window = dom.window as unknown as Window & typeof globalThis
global.navigator = dom.window.navigator
global.Node = dom.window.Node
global.HTMLElement = dom.window.HTMLElement
global.customElements = dom.window.customElements
global.getComputedStyle = dom.window.getComputedStyle
global.SVGSVGElement = dom.window.SVGSVGElement

Comment thread src/test/index.ts
Comment on lines +4 to +19
// for downstream Bun tests that need DOM globals.
const dom = new JSDOM(
'<!DOCTYPE html><html><head></head><body></body></html>',
{
url: 'http://localhost',
},
)

global.document = dom.window.document
global.window = dom.window as unknown as Window & typeof globalThis
global.navigator = dom.window.navigator
global.Node = dom.window.Node
global.HTMLElement = dom.window.HTMLElement
global.customElements = dom.window.customElements
global.getComputedStyle = dom.window.getComputedStyle
global.SVGSVGElement = dom.window.SVGSVGElement
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