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

export function to run Uno from JavaScript/TypeScript (beta-3.0) #469

Merged
merged 1 commit into from Apr 19, 2023

Conversation

mortend
Copy link
Member

@mortend mortend commented Apr 16, 2023

When installing fuse-sdk locally in an empty Node.js package, npm fails with an ENOENT error because the following file can't be found, at least on some systems (tested on MacBook Air M1 with npm v8.9.0):

[...]/node_modules/fuse-sdk/node_modules/@fuse-open/uno/bin/uno.js

(Installing fuse-sdk globally works fine, or installing @fuse-open/uno locally before installing fuse-sdk also works as a workaround.)

This patch is a step towards fixing the problem in fuse-sdk, and the idea is to "require" uno in fuse-sdk, rather than hardcoding its path.

When installing fuse-sdk locally in an empty Node.js package, npm fails
with an ENOENT error because the following file can't be found, at least
on some systems (tested on MacBook Air M1 with npm v8.9.0):

    [...]/node_modules/fuse-sdk/node_modules/@fuse-open/uno/bin/uno.js

(Installing fuse-sdk globally works fine, or installing @fuse-open/uno
locally before installing fuse-sdk also works as a workaround.)

This patch is a step towards fixing the problem in fuse-sdk, and the
idea is to "require" uno in fuse-sdk, rather than hardcoding its path.
@mortend mortend merged commit a58c623 into fuse-open:beta-3.0 Apr 19, 2023
1 check passed
@mortend mortend deleted the index-js branch April 19, 2023 17:27
mortend added a commit that referenced this pull request Jun 8, 2023
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

1 participant