Skip to content

Commit

Permalink
Add umd bundle, fix dummy.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Sneed committed Sep 13, 2017
1 parent 36e2956 commit 2af2c7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.0",
"description": "",
"keywords": [],
"module": "dist/--libraryname--.js",
"main": "dist/--libraryname--.umd.js",
"module": "dist/--libraryname--.es2015.js",
"typings": "dist/types/--libraryname--.d.ts",
"files": [
"dist"
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const libraryName = '--libraryname--'
export default {
entry: `compiled/${libraryName}.js`,
targets: [
{ dest: pkg.main, moduleName: camelCase(libraryName), format: 'umd' },
{ dest: pkg.module, format: 'es' }
],
sourceMap: true,
Expand Down
2 changes: 1 addition & 1 deletion src/dummy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export class Dummy {
* @returns An object with a name.
*/
getPerson(name: string): any {
return { name: 'john' };
return { name: name };
}
}

0 comments on commit 2af2c7f

Please sign in to comment.