Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #26 from storybookjs/norbert/tsup
Browse files Browse the repository at this point in the history
Change build scripts to use tsup instead of tsc
  • Loading branch information
yannbf authored Apr 26, 2023
2 parents 7967837 + df816e6 commit 2dc815b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 25 deletions.
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,17 @@
"url": "https://github.com/storybookjs/jest.git"
},
"scripts": {
"build": "yarn build:esm && yarn build:cjs",
"build:esm": "tsc --project tsconfig.esm.json",
"build:cjs": "tsc --project tsconfig.cjs.json",
"build": "tsup ./src/index.ts --format cjs,esm --dts",
"prerelease": "yarn build",
"release": "auto shipit"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"license": "MIT",
"files": [
"dist/**/*"
],
"types": "./dist/types/index.d.ts",
"types": "./dist/index.d.ts",
"publishConfig": {
"access": "public"
},
Expand All @@ -31,12 +29,13 @@
},
"devDependencies": {
"@auto-it/first-time-contributor": "^10.37.6",
"tsup": "^5.12.0",
"@auto-it/released": "^10.37.6",
"@storybook/linter-config": "^3.1.2",
"@types/react": "*",
"auto": "^10.37.6",
"expect": "^27.3.1",
"typescript": "^4.4.3"
"typescript": "^5.0.4"
},
"author": "yannbf@gmail.com",
"auto": {
Expand Down
7 changes: 0 additions & 7 deletions tsconfig.cjs.json

This file was deleted.

9 changes: 0 additions & 9 deletions tsconfig.esm.json

This file was deleted.

5 changes: 3 additions & 2 deletions tsconfig.base.json → tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"noImplicitAny": true,
"allowJs": true,
"strict": true,
"target": "es2020",
"module": "ESNext",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"declaration": true,
Expand Down

0 comments on commit 2dc815b

Please sign in to comment.