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

fix: allow transformation of typescript files in node_modules #1385

Merged
merged 8 commits into from
Feb 12, 2020
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ script:
else
npm run test -- --runInBand;
fi
- npm run test:monorepo

after_success:
# report coverages to coveralls
Expand Down
1 change: 1 addition & 0 deletions e2e/__monorepos__/simple/dependency/imported-module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const A = 1.0
3 changes: 3 additions & 0 deletions e2e/__monorepos__/simple/dependency/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { A } from './imported-module'

export default A
8 changes: 8 additions & 0 deletions e2e/__monorepos__/simple/dependency/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "dependency",
"version": "0.0.1",
"peerDependencies": {
"typescript": "^3.7.5"
},
"main": "./index.ts"
}
21 changes: 21 additions & 0 deletions e2e/__monorepos__/simple/dependency/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": [
"esnext"
],
"allowJs": true,
"declaration": true,
"sourceMap": true,
"declarationDir": "./lib",
"outDir": "./lib",
"downlevelIteration": true,
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true
},
"include": [
"./src"
]
}
3 changes: 3 additions & 0 deletions e2e/__monorepos__/simple/with-dependency/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import A from 'dependency'

export const fn = () => A
Loading