Skip to content
This repository was archived by the owner on May 4, 2020. It is now read-only.

Commit b264ab2

Browse files
author
Long Ho
committed
chore(@formatjs/ts-transformer): fix build
1 parent c1562b1 commit b264ab2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"ts-node": "^8.6.2",
9393
"ts-pegjs": "^0.2.6",
9494
"tslib": "^1.11.1",
95-
"typescript": "^3.8.3"
95+
"typescript": "^3.7.0"
9696
},
9797
"eslintConfig": {
9898
"parser": "@typescript-eslint/parser",

packages/ts-transformer/tests/index.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import {join} from 'path';
22
import {Project} from 'ts-morph';
3-
import {transform, Opts} from '../src';
3+
import {transform, Opts, MessageDescriptor} from '../src';
44
import * as ts from 'typescript';
5-
import {MessageDescriptor} from '../../eslint-plugin-formatjs/src/util';
65

76
const FILES_TO_TESTS: Record<string, Partial<Opts>> = {
87
additionalComponentNames: {
@@ -90,7 +89,7 @@ function compile(filePath: string, options?: Partial<Opts>) {
9089
outDir: join(__dirname, 'output'),
9190
},
9291
});
93-
project.addExistingSourceFile(filePath);
92+
project.addSourceFileAtPathIfExists(filePath);
9493

9594
let msgs: MessageDescriptor[] = [];
9695

0 commit comments

Comments
 (0)