angular-typescript icon indicating copy to clipboard operation
angular-typescript copied to clipboard

Provide single entry point

Open lifenautjoe opened this issue 9 years ago • 3 comments

There is no entry point for the package, consider doing what is being done at test/module.ts as entry point for the module

lifenautjoe avatar Apr 08 '16 14:04 lifenautjoe

Can you explain more precisely?

ulfryk avatar Apr 08 '16 19:04 ulfryk

There is no package.json main attribute to the module name, meaning it cannot be used as

import angularTypescript = require('angular-typescript');

or even better (if ambient declaration files were provided)

import {controller} from 'angular-typescript';

Not really sure if this can be accomplished with raw .ts files, I know it can with compiled files and ambient declaration files (from the other closed issue), I'll fork the project, do it over there and submit a PR, if you don't agree with what is done, I'll just make it a separate npm module

lifenautjoe avatar Apr 08 '16 19:04 lifenautjoe

Ok, great - waiting for your proposition :)

ulfryk avatar Apr 08 '16 19:04 ulfryk