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

Support for json file import #208

Open
highcard opened this issue Jun 5, 2024 · 1 comment
Open

Support for json file import #208

highcard opened this issue Jun 5, 2024 · 1 comment

Comments

@highcard
Copy link

highcard commented Jun 5, 2024

No description provided.

@samualtnorman
Copy link
Owner

Fixed in d76d668.

The next release to have this fix will be 0.21.

To receive the fix early:

  • Run npm install -g hackmud-script-manager@dev if you have HSM installed globally
  • Run pnpm add hackmud-script-manager@dev in the Hackmud Scripting Environment

You can import .json files like so:

import myJson from "./path/to/my.json"

export default function () {
	return myJson
}

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

No branches or pull requests

2 participants