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

Upgrade deps and drop node 18 support #15

Merged
merged 2 commits into from
Apr 7, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

bunx lint-staged
5 changes: 1 addition & 4 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

exec </dev/tty && node_modules/.bin/cz --hook || true
node_modules/.bin/cz --hook || true
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"editor.formatOnSave": true,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.fixAll": "explicit"
},
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"prettier.enable": false,
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# starter-ts

[![npm](https://badgen.net/npm/v/@mathix420/starter-ts)](https://npmjs.com/package/@mathix420/starter-ts)
<!-- [![bundlephobia](https://badgen.net/bundlephobia/tree-shaking/@mathix420/starter-ts)](https://npmjs.com/package/@mathix420/starter-ts) -->
[![npm](https://badgen.net/github/license/@mathix420/starter-ts)](https://npmjs.com/package/@mathix420/starter-ts)


> Note: Replace `starter-ts`, `_description_`, `"keywords": []` and `mathix420` globally to use this template.

Inpired from https://github.com/ryansonshine/typescript-npm-package-template and https://github.com/antfu/starter-ts
Expand Down
Binary file modified bun.lockb
Binary file not shown.
19 changes: 19 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import prettierConfig from "eslint-config-prettier";
import prettier from "eslint-plugin-prettier";
import tseslint from "typescript-eslint";
import eslint from "@eslint/js";

export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
prettierConfig,
{
files: ["**/*.ts"],
plugins: {
prettier,
},
rules: {
"prettier/prettier": "error",
},
},
];
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build": "bun build src/index.ts --outdir dist/ --sourcemap=external --target=node --splitting",
"lint": "eslint ./src/",
"lintfix": "eslint ./src/ --fix",
"prepare": "husky install",
"prepare": "husky",
"semantic-release": "semantic-release",
"test:watch": "bun test --watch",
"test": "bun test --coverage",
Expand All @@ -46,20 +46,20 @@
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"devDependencies": {
"@eslint/js": "^9.0.0",
"@ryansonshine/commitizen": "^4.2.8",
"@ryansonshine/cz-conventional-changelog": "^3.3.4",
"@semantic-release/github": "^9.2.3",
"@semantic-release/npm": "^11.0.1",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"@semantic-release/github": "^10.0.3",
"@semantic-release/npm": "^12.0.0",
"bun-types": "latest",
"conventional-changelog-conventionalcommits": "^7.0.2",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.3",
"prettier": "^3.1.0",
"semantic-release": "^23.0.0"
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"prettier": "^3.2.5",
"semantic-release": "^23.0.7",
"typescript-eslint": "^7.5.0"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand Down
Loading