Skip to content
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

References are messed up on (d.ts) #40

Open
happysantoo opened this issue Oct 9, 2014 · 0 comments
Open

References are messed up on (d.ts) #40

happysantoo opened this issue Oct 9, 2014 · 0 comments

Comments

@happysantoo
Copy link

While compiling typescript using gulp-tsc , I seem to encounter a strange issue. The file references on the d.ts seems to be messed up.

Source :

///<reference path='typings/lodash/lodash.d.ts'/>
///<reference path='typings/angularjs/angular.d.ts'/>

Gulp

    return gulp.src('src/gravy/gravy.ts')
        .pipe(tsc({sourcemap: true,declaration:true,logErrors: true, out:'gravy.js',outDir:'src/gravy'}))
        .pipe(gulp.dest('src/gravy'));

Generated d.ts file.

/// <reference path="typings/lodash/lodash.d.ts" />
/// <reference path="../src//gravy/typings/angularjs/angular.d.ts" />

See the generated file , the references are messed up. Its strange that the first line is good , the second line always seems to be messed. I reversed the order on the source to see same symptom.
The generated mapping file out of equivalent typescript CLI is good. Any ideas ?

Thanks
Santhosh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant