rokucommunity / ropm

A package manager for the Roku platform.
MIT License
31 stars 5 forks source link

extended classes do not ge their namespace prefixed #30

Closed georgejecook closed 3 years ago

georgejecook commented 3 years ago
        it.only('applies class prefix to classes that are extended from the same package', async () => {
            manager.modules = createProjects(hostDir, hostDir, {
                name: 'host',
                dependencies: [{
                    name: 'core',
                    _files: {
                        'source/lib.d.bs': trim`
                            class Person
                            end class
                            class Coder extends Person
                            end class
                        `
                    }
                }]
            });

            await process();

            fsEqual(`${hostDir}/source/roku_modules/logger/lib.d.bs`, trim`
                namespace core
                class Person
                end class
                end namespace
                namespace core
                class Coder extends core.Person
                end class
                end namespace
            `);
        });
georgejecook commented 3 years ago

got a script to workaroudn this too ;)

TwitchBronBron commented 3 years ago

This is not a ropm problem. However, I just merged https://github.com/rokucommunity/brighterscript/pull/324 which accomplishes what you were asking for.