Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dts 生成を tsup に移行 & publint で package.json をチェックする #617

Open
wants to merge 11 commits into
base: chore/upgrade-react18-1
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
chore(react-sandbox): revert tsup dts bundle
  • Loading branch information
naporin0624 committed Aug 14, 2024
commit 39c8cf5a9afcbb648d2fb806abd2ae37c2bd4b66
7 changes: 5 additions & 2 deletions packages/react-sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
"default": "./dist/index.js"
},
"import": {
"types": "./dist/index.d.mts",
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
}
},
"sideEffects": false,
"scripts": {
"build": "FORCE_COLOR=1 tsup",
"build": "run-p --print-label 'build:*'",
"build:bundle": "FORCE_COLOR=1 tsup",
"build:dts": "tsc --project tsconfig.build.json --pretty --emitDeclarationOnly",
"typecheck": "tsc --project tsconfig.build.json --pretty --noEmit",
"clean": "rimraf dist .tsbuildinfo",
"test": "vitest run --passWithNoTests"
Expand All @@ -35,6 +37,7 @@
"@types/warning": "^3.0.0",
"@vitejs/plugin-react": "^4.3.1",
"jsdom": "^24.1.0",
"npm-run-all": "^4.1.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.2.1",
Expand Down
1 change: 0 additions & 1 deletion packages/react-sandbox/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ export default defineConfig({
esbuildPlugins: [styledComponentsPlugin],
clean: true,
tsconfig: './tsconfig.build.json',
dts: true,
})
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2052,6 +2052,7 @@ __metadata:
"@types/warning": ^3.0.0
"@vitejs/plugin-react": ^4.3.1
jsdom: ^24.1.0
npm-run-all: ^4.1.5
polished: ^4.1.4
react: ^18.3.1
react-dom: ^18.3.1
Expand Down
Loading