Skip to content

ref!: move to ESM for 2025 #28

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

Merged
merged 3 commits into from
Dec 19, 2024
Merged

ref!: move to ESM for 2025 #28

merged 3 commits into from
Dec 19, 2024

Conversation

coolaj86
Copy link
Contributor

@coolaj86 coolaj86 commented Dec 17, 2024

Re: #27

  • nix "use strict"; (and .jshintrc)
  • swap require and module.exports for import and export default
  • swap __dirname for Path.dirname(import.meta.url.slice('file://'.length))
  • update jswt@2.x
  • jsconfig.json.module=nodenext, .moduleResolution=nodenext, .target=es2022
  • jsconfig.json.path
  • importmap example
  • package.json.type=module (and .jshintrc)
  • package.json.imports
  • package.json.exports
  • sort package.json
    • [name, description, version, main, files, type, imports, exports, scripts, whatever...]
  • double check against https://git.rootprojects.org/root/walk.js/issues/1

@coolaj86 coolaj86 force-pushed the esm branch 10 times, most recently from 637caab to 39617b6 Compare December 19, 2024 08:01
@coolaj86
Copy link
Contributor Author

Nailed it! (I think)

@coolaj86 coolaj86 merged commit 6c518fa into main Dec 19, 2024
2 checks passed
@coolaj86 coolaj86 deleted the esm branch December 19, 2024 19:59
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.

1 participant