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

ESM version #13

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

ESM version #13

wants to merge 9 commits into from

Conversation

UrielCh
Copy link

@UrielCh UrielCh commented Mar 5, 2024

All function are available exported as default.xxx and as xxx.

expected for if and Array and function.

so:
import h from 'hasard';
give access to all function using h.functionName, like h.number or h.Number

import {Number, number} from 'hasard'; will do the same

only
import {if as _if, Array as _Array, function ad _function} from 'hasard'; will not works.
use

import h from 'hasard';
// h.if
// h.function
// h.Array

for thoses functions

@UrielCh
Copy link
Author

UrielCh commented Apr 30, 2024

please do not merge it yet, I have works on the ESM port of opencv4node, I have some new tips.

npx @arethetypeswrong/cli $(npm pack)

this tools is awsome.

@UrielCh
Copy link
Author

UrielCh commented Apr 30, 2024

This project have no typing, so @arethetypeswrong/cli is useless.

so keep going

@piercus
Copy link
Owner

piercus commented Apr 30, 2024

Ok, Tell me when it's ready

@UrielCh
Copy link
Author

UrielCh commented May 1, 2024

You can merge this PR; it primarily involves updating a dependency rather than any complex changes. Most modifications result from upgrading XO, where the latest version renames variables to be more explicit.

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.

None yet

2 participants