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

Add possibility to apply comments for coverage settings in transforms #153

Merged
merged 8 commits into from
Aug 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions dist/bundler/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var Transformer = (function () {
filename: queued.file.originalPath,
module: queued.file.originalPath,
source: queued.emitOutput.sourceFile.getFullText(),
emitOutput: queued.emitOutput,
ts: {
ast: queued.emitOutput.sourceFile,
version: ts.version
Expand Down
2 changes: 2 additions & 0 deletions src/api/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as ESTree from "estree";
import * as log4js from "log4js";
import * as ts from "typescript";

import { EmitOutput } from "../compiler/emit-output";
import { Configuration } from "../shared/configuration";

export interface TransformCallback {
Expand All @@ -23,6 +24,7 @@ export interface TransformContext {
filename: string;
module: string;
source: string;
emitOutput?: EmitOutput;
ts?: TransformContextTs;
}

Expand Down
1 change: 1 addition & 0 deletions src/bundler/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class Transformer {

let context: TransformContext = {
config: this.config,
emitOutput: queued.emitOutput,
filename: queued.file.originalPath,
module: queued.file.originalPath,
source: queued.emitOutput.sourceFile.getFullText(),
Expand Down