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

Change build scripts to use tsup instead of tsc #26

Merged
merged 3 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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