From f1f5e6aae5aa188ff7ed3d58e9c5b6e2467323fd Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Fri, 18 May 2018 13:08:51 +0300 Subject: [PATCH] fix(ts-transform-paths): afterDeclarations name changed --- .gitignore | 1 + package.json | 1 - packages/ts-transform-paths/src/index.ts | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9812e9a..b36a988 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ tags *.map /*.sh packages/*/package-lock.json +.npmrc diff --git a/package.json b/package.json index a323e7f..6c401b8 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "chokidar-cli": "^1.2.0", "lerna": "^2.11.0", "rollup": "^0.59.0", - "source-map-support": "*", "typescript": "^2.8.3" } } diff --git a/packages/ts-transform-paths/src/index.ts b/packages/ts-transform-paths/src/index.ts index 0668619..bb6ca73 100644 --- a/packages/ts-transform-paths/src/index.ts +++ b/packages/ts-transform-paths/src/index.ts @@ -114,7 +114,7 @@ export default function transformPaths(program: ts.Program) { return ts.visitNode(sf, visitor) } }, - afterDeclaration( + afterDeclarations( transformationContext: ts.TransformationContext ): ts.Transformer { return plugin.before(transformationContext) @@ -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