Skip to content

Commit d56a2be

Browse files
fix(angular): A hack to force the Angular compiler to import from module index
Closes ui-router/angular#216
1 parent 7b1c8bc commit d56a2be

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "5.0.17",
55
"scripts": {
66
"clean": "shx rm -rf lib lib-esm _bundles",
7-
"compile": "npm run clean && tsc && tsc -m es6 --outDir lib-esm",
7+
"compile": "npm run clean && tsc && tsc -m es6 --outDir lib-esm && shx cp src/*.json lib",
88
"build": "run-s compile fixdts bundle fixmaps:*",
99
"bundle": "rollup -c && rollup -c --environment MINIFY",
1010
"fixdts": "dts-downlevel 'lib/**/*.d.ts' 'lib-esm/**/*.d.ts'",

src/index.metadata.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"comment": "This forces angular compiler to import from @uirouter/core, instead of deep imports into @uirouter/core/lib",
3+
"importAs" : "@uirouter/core",
4+
"__symbolic" : "module",
5+
"version" : 3,
6+
"metadata": {},
7+
"exports": []
8+
}

tsconfig.esm.json

-19
This file was deleted.

0 commit comments

Comments
 (0)