Skip to content

compilerOption: dontRequireLualib #71

@Janne252

Description

@Janne252

First of all, this is an incredibly useful tool! Thank you so much for creating it.

A bit of background/thoughts before I start asking for things:

I've been using lua for a bit over 6 years now (mainly as the scripting language for Company of Heroes >1 and 2). Lack of static types has been a limiting factor.
I'm aware therte are typed variants of Lua but those usually won't solve the other half of the problem: >Editor/IDE support. TypeScript has excellent support on VS Code which makes it the perfect transpile->to-<insert language here> language.

The issue/request:
Looks like the option dontRequireLualib is at least a planned feature since it works if you add it to the tstlOptions configuration:

        'dontRequireLualib': {
            alias: 'dontRequireLualib',
            describe: '',
            default: false,
            type: 'boolean'
        }

(Otherwise the process gets terminated without specifying the reason)

Looks like the most recent pull request is about to touch the compiler options, perhaps this feature could be snuck in? I suppose I could submit a pull request for this too.

Why?
This is an important functionality in CoH1's/CoH2's enbedded & customized lua enviroment since the developers provided a custom function for importing libraries. The use case is extremely narrow but since it's 99% implemented, I thought I'd ask.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions