Skip to content

Commit

Permalink
build: tsup config
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman committed Oct 19, 2024
1 parent 779cfcc commit 1870911
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 234 deletions.
5 changes: 3 additions & 2 deletions Taskfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ build_microbundle3() {
set +x
}

# uses esbuild has support emitDecoratorMetadata
build_tsup() {
set -x
rm -rfv dist
# npm i tsup --no-save on CI/CD (uses esbuild no support of emitDecoratorMetadata)
tsup src/index.ts --format cjs --target es2020 --dts --sourcemap
npx tsup
# tsup src/index.ts --format cjs --target es2020 --dts --sourcemap
cp -fv README.md package.json dist
}

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"commit_lint": "sh Taskfile commit_lint",
"commit": "cz",
"dev": "node node_modules/webpack-dev-server/bin/webpack-dev-server",
"build": "sh Taskfile build_microbundle1",
"build": "sh Taskfile build_pkgroll",
"lint:w": "run-p tscheck:w eslint:w",
"test:m": "node node_modules/@stryker-mutator/core/bin/stryker.js run",
"mocha": "node -r ts-node/register node_modules/mocha/bin/mocha",
Expand All @@ -52,24 +52,24 @@
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@eslint/compat": "^1.2.0",
"@eslint/js": "^9.12.0",
"@eslint/compat": "^1.2.1",
"@eslint/js": "^9.13.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@swc/core": "^1.7.36",
"@swc/helpers": "^0.5.13",
"@types/mocha": "^10.0.9",
"@types/node": "^22.7.5",
"@types/node": "^22.7.7",
"c8": "^10.1.2",
"commitizen": "^4.3.1",
"conventional-changelog-conventionalcommits": "^8.0.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^9.12.0",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-etc": "^2.0.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-perfectionist": "^3.9.0",
"eslint-plugin-perfectionist": "^3.9.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
Expand All @@ -91,7 +91,7 @@
"remark-cli": "^12.0.1",
"remark-license": "^6.1.0",
"remark-toc": "^9.0.0",
"semantic-release": "^24.1.2",
"semantic-release": "^24.1.3",
"semantic-release-monorepo": "^8.0.2",
"simplytyped": "^3.3.0",
"ts-node": "^10.9.2",
Expand All @@ -100,6 +100,6 @@
"tslib": "^2.8.0",
"tsup": "^8.3.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.9.0"
"typescript-eslint": "^8.10.0"
}
}
Loading

0 comments on commit 1870911

Please sign in to comment.