diff --git a/lib/client/snapshot.component.tsx b/lib/client/snapshot.component.tsx index 53fede6..39cc921 100644 --- a/lib/client/snapshot.component.tsx +++ b/lib/client/snapshot.component.tsx @@ -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); + } } } diff --git a/package.json b/package.json index 63549eb..9baada0 100755 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/tsconfig.json b/tsconfig.json index b602d59..d6bfd26 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { - "target": "es2017", "module": "commonjs", + "target": "es2015", + "lib": [ + "es6", + "dom" + ], "moduleResolution": "node", "baseUrl": ".", "jsx": "react",