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

⭐ Auto add file to meta on import #401

Open
websharik opened this issue Nov 27, 2022 · 0 comments
Open

⭐ Auto add file to meta on import #401

websharik opened this issue Nov 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@websharik
Copy link
Contributor

I think about auto adding files to meta and found perfect solution. No more handmade file list in meta.
Any handmade added files will same use by scripts, so we can import that files auto.

Example:

import 'Message.txt'
outputChatBox(fileRead(fileOpen('Message.txt')))

Expect:
Utils will remove file import line, add Message.txt to meta (with detect right side by script) and copy file to dist.
*If file used by server and client, side detector must detect file as shared.

Now just error:
error TSTL: Could not resolve lua source files for require path 'Message.txt' in file src\TypeScriptResource\client.ts

@websharik websharik added the enhancement New feature or request label Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant