Skip to content

Commit

Permalink
fix(ts-transform-paths): afterDeclarations name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed May 18, 2018
1 parent 0a7c2a4 commit f1f5e6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ tags
*.map
/*.sh
packages/*/package-lock.json
.npmrc
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"chokidar-cli": "^1.2.0",
"lerna": "^2.11.0",
"rollup": "^0.59.0",
"source-map-support": "*",
"typescript": "^2.8.3"
}
}
4 changes: 2 additions & 2 deletions packages/ts-transform-paths/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function transformPaths(program: ts.Program) {
return ts.visitNode(sf, visitor)
}
},
afterDeclaration(
afterDeclarations(
transformationContext: ts.TransformationContext
): ts.Transformer<ts.SourceFile> {
return plugin.before(transformationContext)
Expand All @@ -123,7 +123,7 @@ export default function transformPaths(program: ts.Program) {

if (!isPatched && compareVersions(ts.versionMajorMinor, '2.9') < 0) {
isPatched = true
patchEmitFiles(ts).push(plugin.afterDeclaration)
patchEmitFiles(ts).push(plugin.afterDeclarations)
}

return plugin
Expand Down

0 comments on commit f1f5e6a

Please sign in to comment.