Skip to content

Commit

Permalink
fix(angular): A hack to force the Angular compiler to import from mod…
Browse files Browse the repository at this point in the history
…ule index

Closes ui-router/angular#216
  • Loading branch information
christopherthielen committed Mar 27, 2018
1 parent 7b1c8bc commit d56a2be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "5.0.17",
"scripts": {
"clean": "shx rm -rf lib lib-esm _bundles",
"compile": "npm run clean && tsc && tsc -m es6 --outDir lib-esm",
"compile": "npm run clean && tsc && tsc -m es6 --outDir lib-esm && shx cp src/*.json lib",
"build": "run-s compile fixdts bundle fixmaps:*",
"bundle": "rollup -c && rollup -c --environment MINIFY",
"fixdts": "dts-downlevel 'lib/**/*.d.ts' 'lib-esm/**/*.d.ts'",
Expand Down
8 changes: 8 additions & 0 deletions src/index.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"comment": "This forces angular compiler to import from @uirouter/core, instead of deep imports into @uirouter/core/lib",
"importAs" : "@uirouter/core",
"__symbolic" : "module",
"version" : 3,
"metadata": {},
"exports": []
}
19 changes: 0 additions & 19 deletions tsconfig.esm.json

This file was deleted.

0 comments on commit d56a2be

Please sign in to comment.