Skip to content
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

convert to ESModule /// make it into type: "module" to fit latest es-standard (and make react-toastify work #2

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

snomiao
Copy link
Member

@snomiao snomiao commented Aug 23, 2024

No description provided.

- Add new bun.lockb file for dependency locking.
- Update next.config.js to use ES module imports and exports:
  - Replace `require` with `import` for '@next/mdx'.
  - Change module.exports to `export default`.
- Rename configuration files for better consistency:
  - Rename postcss.config.js to postcss.config.cjs.
  - Rename tailwind.config.js to tailwind.config.cjs.
- Modify package.json:
  - Change project name from "kana" to "comfyci-dashboard".
  - Update "type" from "commonjs" to "module".
  - Bump react-toastify version from "^9.0.8" to "^10.0.5".
- Update tsconfig.json:
  - Change "target" from "es6" to "ESNext" for improved TypeScript support.

These changes modernize the project setup for better ES module support,
enhance module consistency, and ensure compatibility with latest package
versions.
Copy link

vercel bot commented Aug 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
comfyci ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 0:00am

- Upgrade `react-toastify` from version 9.1.3 to 10.0.5 to ensure compatibility with the latest version of `react` and `react-dom` (>=18).
- Update `clsx` from version 1.2.1 to 2.1.1 to align with the latest package improvements and to remove the older version from the dependency tree.
- Modify `pnpm-lock.yaml` to reflect these changes and ensure overall dependency consistency.
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None +1 416 kB sniphpet

🚮 Removed packages: npm/[email protected])

View full report↗︎

@snomiao snomiao changed the title make it into type: "module" to fit latest es-standard (and make react-toastify work convert to ESModule /// make it into type: "module" to fit latest es-standard (and make react-toastify work Aug 23, 2024
@mcmonkey4eva mcmonkey4eva merged commit f29dec2 into main Aug 23, 2024
6 of 7 checks passed
@mcmonkey4eva mcmonkey4eva deleted the sno-upgrade-nextjs branch August 23, 2024 12:04
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