ulfryk / angular-typescript

TypeScript 1.7 annotations (decorators) for AngularJS 1.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide single entry point

lifenautjoe opened this issue · 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

Can you explain more precisely?

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

Ok, great - waiting for your proposition :)