Skip to content

Commit

Permalink
fix(package): Fix manifest -- location of es6 modules is lib/index no…
Browse files Browse the repository at this point in the history
…t lib-esm/index

This allows uirouter/angular-hybrid to be bundled by es6 module aware bundlers like rollup

Closes #47
  • Loading branch information
christopherthielen committed Aug 15, 2017
1 parent e283d1f commit 040722c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"zone.js": "~0.6.21"
},
"main": "_bundles/ui-router-angular-hybrid.js",
"module": "lib-esm/index.js",
"module": "lib/index.js",
"typings": "lib/index.d.ts",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions src/angular-hybrid.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as angular from 'angular';

import { Component, ElementRef, Inject, Injector, Input, NgModule, Provider } from '@angular/core';
import { Component, ElementRef, Inject, Injector, Input, NgModule } from '@angular/core';
import { downgradeComponent, UpgradeModule } from '@angular/upgrade/static';
import {} from '@angular/upgrade';
import '@angular/upgrade';

import {
StateObject, forEach, PathNode, Resolvable, StateRegistry, UIRouter, ViewConfig, ViewService
Expand All @@ -13,7 +13,7 @@ import {
Ng2ViewDeclaration, ParentUIViewInject, StatesModule, UIROUTER_MODULE_TOKEN, UIROUTER_ROOT_MODULE, UIRouterModule,
} from '@uirouter/angular';

import { $InjectorLike, Ng1ViewConfig, StateProvider } from '@uirouter/angularjs';
import { $InjectorLike, Ng1ViewConfig } from '@uirouter/angularjs';

import { UIRouterRx } from '@uirouter/rx';

Expand Down

0 comments on commit 040722c

Please sign in to comment.