-
Notifications
You must be signed in to change notification settings - Fork 40
improve package.json #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@k7sleeper what do you mean by Angular folks do the same? https://angular.io/docs/ts/latest/quickstart.html I see them importing from the core module just like I am: |
@k7sleeper I tried these changes but #39 is still occurring, did this fixed it for you? |
No, these changes alone did not fix #39. You also have to delete |
Well, if you carefully look at
|
… into improve-package.json # Conflicts: # README.md
Has this PR a chance to be merged? |
@k7sleeper I thought you said this didnt fix the defect ? |
@langley-agm Yes, you're right. The defect is solved for me by the following steps which I put into a Grunt task of my build script:
So, if you'd merge this PR I can remove the first 2 patches from my Grunt tasks and generally, For the last issue I could send another PR but I have no idea how to omit the |
I'm confused, does this solve the defect or not? What defect do you want to solve with this PR ? |
I'm sorry. I think of #39. This PR would solve the first 2 issues of the above mentioned list. |
Like I mentioned before, I already ran the code in this PR and it does not solve #39 . |
Ah, yes your're right. Sorry. All the time I'm working with Anyway, I think merging this PR increases quality of |
This PR changes both the package.json and the Guide. The Guide works just as Angular 2 does: |
Oh yes, you're right. I oversaw the changes in the guide. |
Improve
package.json
to have a propermain
andtypings
attribute.Setting the
main
attribute inpackage.json
tocore.js
enables client code to writeimport {Logger} from "angular2-logger";
instead ofimport {Logger} from "angular2-logger/core";
. Angular2 folks do the same.Setting the
typings
attribute inpackage.json
tocore.d.ts
let's the TypeScript compiler usecore.d.ts
when compilingimport {Logger} from "angular2-logger";
. That's what's needed to avoid compiling whole angular2-logger sources. Angular2 folks do the same. They set thetypings
attribute inpackage.json
.