Names `ink.ink`, `main.ink` break web export
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 340
- PR merge metrics
- No merged PRs in 30d
Description
I called my project `ink.ink`, and later went to export it to the web. Inky made a file called `ink.js` that corresponded to my story's json, which overwrote the `ink.js` that is the Inkjs engine used for running Ink on the web. There was no error message for overwriting, my web export simply had an error.
I suggest: when the user tries to export their project and it's called either `main.ink` or `ink.ink`, Inky should give a helpful error message: `"Cannot export projects called 'ink.ink' or 'main.ink' for the web. Please rename your project and try again."` and refuse to export. This would prevent headaches for the end user.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.