Skip to content

chore: migrate context-mill to ESM#125

Merged
sarahxsanders merged 1 commit into
mainfrom
esm-migration
May 8, 2026
Merged

chore: migrate context-mill to ESM#125
sarahxsanders merged 1 commit into
mainfrom
esm-migration

Conversation

@sarahxsanders
Copy link
Copy Markdown
Collaborator

2015 x2 - vincent moved the wizard to ESM, just moving over context mill + warlock

  • Add "type": "module" to package.json
  • Add engines field requiring Node >=20.11.0 (for import.meta.dirname)
  • Convert all require()/module.exports to import/export across 15 files
  • Replace __dirname with import.meta.dirname in build.js and dev-server.js
  • Fix test files that mixed require() with ESM imports

All 42 tests pass. Full build (82 skills) completes successfully.

Generated-By: PostHog Code
Task-Id: 6d2d9459-9c69-4d58-9937-ca35bf9ecea4

- Add "type": "module" to package.json
- Add engines field requiring Node >=20.11.0 (for import.meta.dirname)
- Convert all require()/module.exports to import/export across 15 files
- Replace __dirname with import.meta.dirname in build.js and dev-server.js
- Fix test files that mixed require() with ESM imports

All 42 tests pass. Full build (82 skills) completes successfully.

Generated-By: PostHog Code
Task-Id: 6d2d9459-9c69-4d58-9937-ca35bf9ecea4
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

@sarahxsanders sarahxsanders requested a review from a team May 4, 2026 22:27
@sarahxsanders sarahxsanders merged commit 2e3c8e1 into main May 8, 2026
15 checks passed
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