inkle / inkle/inky

Names `ink.ink`, `main.ink` break web export

Open
#483 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.