Skip to content

Commit

Permalink
Merge pull request #15 from medayo/fix/package
Browse files Browse the repository at this point in the history
Fix/package
  • Loading branch information
virus2016 authored Oct 19, 2018
2 parents 718963f + eda8ae7 commit f96e3dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/client/snapshot.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ interface ICoolStoryBook {

public async sendAllStories() {
const stories = StoryStorage.getAll();
for (const [key, detail] of Object.entries(stories)) {
await this.sendStory(detail, key);
for (const key in stories) {
if (stories.hasOwnProperty(key)) {
await this.sendStory(stories[key], key);
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Expo Equivalent of Storybook",
"version": "2.2.3",
"private": false,
"main": "./dist/lib/client/index.js",
"main": "node_modules/expo/AppEntry.js",
"typings": "./dist/lib/client/index.d.ts",
"repository": {
"type": "git",
Expand Down Expand Up @@ -65,6 +65,7 @@
"build:release": "npm run clean && npm run tsc -- -d ",
"prepublish": "npm run build:release",
"watch": "npm run build -- -w",
"watch:demo": "npm run build:demo -- -w",
"test": "echo 'not yet'",
"commit": "git-cz",
"demo": "npm run build:demo && expo start",
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"target": "es2015",
"lib": [
"es6",
"dom"
],
"moduleResolution": "node",
"baseUrl": ".",
"jsx": "react",
Expand Down

0 comments on commit f96e3dd

Please sign in to comment.