Skip to content

Commit

Permalink
fix(angular/cli): Use package.json fields: 'typings', 'main', 'jsnext…
Browse files Browse the repository at this point in the history
…:main'

Point 'main' to the commonjs es5 files (lib/index.js)
Point 'jsnext:main' to ESM files (lib-esm/index.js)
Point 'typings' to typings in es5 dir (lib/index.d.ts)

What didn't work:
- Pointing 'main' to the UMD bundle
- Replacing 'jsnext:main' with 'module'
- Pointing 'typings' to typings in ESM dir (lib-esm/index.d.ts)
  • Loading branch information
christopherthielen committed Oct 5, 2017
1 parent 5b58566 commit 74143d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"engines": {
"node": ">=4.0.0"
},
"main": "_bundles/ui-router-core.js",
"jsnext:main": "lib-esm/index.js",
"typings": "lib/index.d.ts",
"main": "lib/index.js",
"jsnext:main": "lib-esm/index.js",
"license": "MIT",
"devDependencies": {
"@types/jasmine": "^2.5.47",
Expand Down

0 comments on commit 74143d9

Please sign in to comment.