Skip to content

Commit

Permalink
Merge pull request #18546 from storybookjs/future/tsup-libs-1
Browse files Browse the repository at this point in the history
Build: Use TSUP to compile `core-common`
  • Loading branch information
shilman authored Jun 29, 2022
2 parents fcacaf7 + 1deadc5 commit 36d99ce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
24 changes: 20 additions & 4 deletions lib/core-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,21 @@
"url": "https://opencollective.com/storybook"
},
"license": "MIT",
"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"
},
"./package.json": {
"require": "./package.json",
"import": "./package.json",
"types": "./package.json"
}
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
"types/**/*",
Expand All @@ -30,7 +42,7 @@
"*.d.ts"
],
"scripts": {
"prepare": "node ../../scripts/prepare.js"
"prepare": "esrun ../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@babel/core": "^7.12.10",
Expand Down Expand Up @@ -86,6 +98,7 @@
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@digitak/esrun": "^3.2.2",
"@types/compression": "^1.7.0",
"@types/interpret": "^1.1.1",
"@types/mock-fs": "^4.13.0",
Expand All @@ -104,5 +117,8 @@
"publishConfig": {
"access": "public"
},
"bundlerEntrypoint": [
"./src/index.ts"
],
"gitHead": "a88dcca40ba169a373bad33dd76e9a4bd4f1f5ec"
}
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8131,6 +8131,7 @@ __metadata:
"@babel/preset-react": ^7.12.10
"@babel/preset-typescript": ^7.12.7
"@babel/register": ^7.12.1
"@digitak/esrun": ^3.2.2
"@storybook/csf": 0.0.2--canary.4566f4d.1
"@storybook/node-logger": 7.0.0-alpha.6
"@storybook/semver": ^7.3.2
Expand Down

0 comments on commit 36d99ce

Please sign in to comment.