Skip to content

Commit

Permalink
Installing npm library with github
Browse files Browse the repository at this point in the history
  • Loading branch information
caiter78 authored May 11, 2019
1 parent 76e16c4 commit 1d20c5c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"api client",
"rest client"
],
"main": "mapreflex-client.umd.js",
"module": "mapreflex-client.es5.js",
"typings": "types/mapreflex-client.d.ts",
"main": "dist/mapreflex-client.umd.js",
"module": "dist/mapreflex-client.es5.js",
"typings": "dist/types",
"files": [
"./"
"dist"
],
"author": "Andrii Martyniuk <[email protected]>",
"repository": {
Expand All @@ -27,7 +27,6 @@
"prepare": "npm run build",
"prebuild": "rimraf dist",
"build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
"postbuild": "node scripts/copy",
"demo-server": "http-server demo",
"start": "rollup -c rollup.config.ts -w",
"test": "jest --coverage",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const libraryName = 'mapreflex-client';
export default {
input: `src/${libraryName}.ts`,
output: [
{file: 'dist/'+ pkg.main, name: 'MapreflexClient', format: 'umd', sourcemap: true},
{file: 'dist/'+ pkg.module, format: 'es', sourcemap: true},
{file: pkg.main, name: 'MapreflexClient', format: 'umd', sourcemap: true},
{file: pkg.module, format: 'es', sourcemap: true},
],
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
external: [],
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import MapreflexClient from './mapreflex-client';

export { Zctas } from './endpoint/Zctas'
export { States } from './endpoint/States'
export { Counties } from './endpoint/Counties'
Expand All @@ -7,3 +9,5 @@ export { Zcta, ZctaProperties } from './interfaces/Zcta'
export { State, StateProperties } from './interfaces/State'
export { Options, MapreflexOptions } from './interfaces/Options'
export { FeatureCollection, MultiPolygon, Point } from 'geojson'

export default MapreflexClient;

0 comments on commit 1d20c5c

Please sign in to comment.