Skip to content

Commit

Permalink
fix(compiler): allow transformation of typescript files in node_modul…
Browse files Browse the repository at this point in the history
…es (#1385)
  • Loading branch information
helmutschneider authored Feb 12, 2020
1 parent 879454d commit 814405e
Show file tree
Hide file tree
Showing 13 changed files with 6,454 additions and 56 deletions.
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

0 comments on commit 814405e

Please sign in to comment.