Skip to content

Fast compilation with third party amd dependencies #216

Open
@henkkuli

Description

@henkkuli

Hi!

I am trying to use fast compile to compile a project with third party amd dependencies. I am using the following file layout:

project
|-lib
| |-jquery.d.ts
|-src
| |-a.ts
| |-b.ts

My configuration:

ts: {
    options: {
        module: 'amd',
        target: 'es5',
        fast: 'always'
    },
    all: {
        src: ['src/**/*.ts', 'lib/**/*.d.ts'],
        outDit: 'build'
    }
}

src/a.ts:

import $ = require('jquery');
import b = require('./b.ts');

On the first time the compilation works just fine: it can trace jquery to lib/jquery.d.ts because it is defined as source. But on the second time, when I have just edited src/a.ts, the compiler can't find jquery and crashes. I can't just include ../lib/jquery because the file defines module named jquery which is not the same.

I suggest the compiler should include all .d.ts file in the compilation whether the file has changed or not. Or the task should include an option for telling the locations of irregular dependencies.

Henrik Lievonen

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions