Skip to content

⭐ Auto add file to meta on import #401

Description

@websharik

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions