Skip to content

Commit

Permalink
fix: use esnext for build
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Jan 8, 2019
1 parent 3424ed7 commit 7b48ba0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import * as Validator from './validator'

export const areEqual = Compare.phoneNumbersAreEqual
export const areaCode = Riktnummer.findMatchingAreaName
export const normalize = Normalize.normalize
export const numberingArea = NumberingArea.numberingArea
export const riktnummer = Riktnummer.RIKTNUMMER
export const validator = Validator.validator
export const parse = Parser.phoneNumberParser

export default {
Expand All @@ -22,3 +18,8 @@ export default {
riktnummer: Riktnummer.RIKTNUMMER,
validator: Validator.validator,
}

export * from './numberingArea'
export * from './riktnummer'
export * from './utils/normalize'
export * from './validator'
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"esModuleInterop": true,
"importHelpers": true,
"lib": ["es7", "esnext"],
"module": "commonjs",
"module": "esnext",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
Expand Down

0 comments on commit 7b48ba0

Please sign in to comment.