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

Switch build setup from a custom ESBuild+TS script to tsup #3362

Merged
merged 5 commits into from Apr 16, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .codesandbox/ci.json
Expand Up @@ -5,7 +5,8 @@
"github/reduxjs/rtk-github-issues-example",
"/examples/query/react/basic",
"/examples/query/react/advanced",
"/examples/action-listener/counter"
"/examples/action-listener/counter",
"/examples/publish-ci/cra5"
],
"node": "14",
"buildCommand": "build:packages",
Expand Down
11 changes: 5 additions & 6 deletions packages/toolkit/package.json
Expand Up @@ -89,23 +89,22 @@
"source-map": "^0.7.3",
"terser": "^5.6.1",
"tslib": "^1.10.0",
"tsup": "^6.7.0",
"tsx": "^3.12.2",
"typescript": "~4.9",
"vitest": "^0.27.2",
"yargs": "^15.3.1"
},
"scripts": {
"run-build": "tsx ./scripts/build.ts",
"build-ci": "yarn rimraf dist && yarn tsc && yarn run-build --skipExtraction",
"build-prepare": "npm run build-ci",
"build": "yarn rimraf dist && echo Compiling... && yarn tsc && yarn run-build --local --skipExtraction",
"build-only": "yarn rimraf dist && yarn tsc && yarn run-build --skipExtraction",
"run-build": "tsup",
"build": "yarn rimraf dist && echo Compiling TS... && yarn tsc && yarn run-build",
"build-only": "yarn rimraf dist && yarn run-build",
"format": "prettier --write \"(src|examples)/**/*.{ts,tsx}\" \"**/*.md\"",
"format:check": "prettier --list-different \"(src|examples)/**/*.{ts,tsx}\" \"docs/*/**.md\"",
"lint": "eslint src examples",
"test": "vitest",
"type-tests": "yarn tsc -p src/tests/tsconfig.typetests.json && yarn tsc -p src/query/tests/tsconfig.typetests.json",
"prepack": "npm run build-prepare"
"prepack": "yarn build"
},
"files": [
"dist/",
Expand Down