Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jun 23, 2019
2 parents 4e37ac1 + 7eeec39 commit 9b0b080
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@chatie/semver": "^0.4.7",
"@chatie/tsconfig": "^0.6.1",
"pkg-jq": "^0.2.4",
"rollup": "^1.16.0",
"rollup": "^1.16.2",
"rollup-plugin-json": "^4.0.0",
"tstest": "^0.4.2"
},
Expand Down
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
export { StateSwitch } from './state-switch'
import { StateSwitch } from './state-switch'

export { VERSION } from './version'

export {
StateSwitch,
}
export default StateSwitch
6 changes: 5 additions & 1 deletion tests/fixtures/smoke-testing.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import Default, {
StateSwitch,
VERSION,
} from 'state-switch'
Expand All @@ -11,4 +11,8 @@ const ss = new StateSwitch()
ss.on(true)
console.info(`StateSwitch v${ss.version()}`)

if (Default !== StateSwitch) {
throw new Error('default export does not match the exported module!')
}

console.info('Smoke Testing PASSED!')

0 comments on commit 9b0b080

Please sign in to comment.