Skip to content

Commit

Permalink
fix(project): single export
Browse files Browse the repository at this point in the history
  • Loading branch information
lifenautjoe committed Nov 6, 2017
1 parent f5e0772 commit 95dc643
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"jest": "^21.0.0",
"lint-staged": "^4.0.0",
"lodash.camelcase": "^4.3.0",
"lodash.capitalize": "^4.2.1",
"prettier": "^1.4.4",
"prompt": "^1.0.0",
"replace-in-file": "^3.0.0-beta.2",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import sourceMaps from 'rollup-plugin-sourcemaps'
import camelCase from 'lodash.camelcase'
import capitalize from 'lodash.capitalize'

const pkg = require('./package.json');

Expand All @@ -10,7 +10,7 @@ const libraryName = 'noel';
export default {
entry: `compiled/${libraryName}.js`,
targets: [
{dest: pkg.main, moduleName: camelCase(libraryName), format: 'umd'},
{dest: pkg.main, moduleName: capitalize(libraryName), format: 'umd'},
{dest: pkg.module, format: 'es'},
],
sourcemap: true,
Expand Down
10 changes: 1 addition & 9 deletions src/noel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { NoelEventListenerManager } from './event-listener-manager';

const defaultLogger = new NoelLogger();

export class Noel {
export default class Noel {
private noEventListenersWarning: boolean;

private eventsMap: Map<string, NoelEvent> | null = null;
Expand Down Expand Up @@ -204,11 +204,3 @@ export class Noel {
return this.eventsMap || (this.eventsMap = new Map());
}
}

export * from './errors';

export * from './interfaces';

export * from './types';

export default Noel;

0 comments on commit 95dc643

Please sign in to comment.