Skip to content

Commit

Permalink
Merge pull request #18836 from luciana-mendonca/build/addon-jest-tsup
Browse files Browse the repository at this point in the history
build(addon-jest): use tsup to build addon-jest
  • Loading branch information
ndelangen authored Aug 2, 2022
2 parents 43aba62 + 76c957e commit 51239e2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/addons/jest/manager.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import './dist/esm/manager';
import './dist/manager';
33 changes: 29 additions & 4 deletions code/addons/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,27 @@
},
"license": "MIT",
"author": "Renaud Tertrais <[email protected]> (https://github.com/renaudtertrais)",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./manager": {
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
},
"./register.js": {
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
"README.md",
Expand All @@ -38,7 +56,7 @@
],
"scripts": {
"check": "tsc --noEmit",
"prepare": "node ../../../scripts/prepare.js"
"prepare": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.17",
Expand Down Expand Up @@ -70,6 +88,13 @@
"publishConfig": {
"access": "public"
},
"bundler": {
"entries": [
"./src/index.ts",
"./src/manager.tsx"
],
"platform": "browser"
},
"gitHead": "7d44bfd3e759c6f17b75029ee2e067fab811f27b",
"storybook": {
"displayName": "Jest",
Expand Down

0 comments on commit 51239e2

Please sign in to comment.