From 8481d0e62262284fe57118f37f6d35bb7f6c8214 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Tue, 12 Oct 2021 16:40:50 +0200 Subject: [PATCH 1/2] remove leftover js file --- index.js | 6 ------ package.json | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 index.js diff --git a/index.js b/index.js deleted file mode 100644 index 573cb3b..0000000 --- a/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import * as expectPatched from '@storybook/expect'; -import { instrument } from '@storybook/instrumenter'; -import * as mock from 'jest-mock'; - -export const { jest } = instrument({ jest: mock }); -export const { expect } = instrument(expectPatched, { intercept: true }); diff --git a/package.json b/package.json index bf1423e..ba0a239 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "tsc", "prepublish": "yarn build" }, - "browser": "index.js", + "browser": "./dist/index.js", "license": "MIT", "files": [ "./dist/index.js" From 4e4ed9d44cb0fdf5a1f62c2bbe2edc9079b835a2 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Tue, 12 Oct 2021 16:49:36 +0200 Subject: [PATCH 2/2] include typings in dist folder --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ba0a239..7920ddc 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "browser": "./dist/index.js", "license": "MIT", "files": [ - "./dist/index.js" + "dist/**/*" ], "types": "./dist/index.d.ts", "publishConfig": {