Skip to content

Commit ae92b1a

Browse files
committed
chore(projects): update deps & perf code
1 parent dfb32df commit ae92b1a

File tree

19 files changed

+2117
-2490
lines changed

19 files changed

+2117
-2490
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Editor configuration, see http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

.eslintrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
registry=https://registry.npmmirror.com/
22
shamefully-hoist=true
3+
ignore-workspace-root-check=true

.prettierrc

Whitespace-only changes.

.vscode/settings.json

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.fixAll.eslint": true
3+
"source.fixAll.eslint": "explicit",
4+
"source.organizeImports": "never"
45
},
5-
"editor.fontLigatures": true,
6+
"eslint.experimental.useFlatConfig": true,
67
"editor.formatOnSave": false,
7-
"editor.quickSuggestions": {
8-
"strings": true
9-
},
10-
"editor.tabSize": 2,
11-
"eslint.validate": ["json"],
12-
"files.associations": {
13-
"*.env.*": "dotenv",
14-
"*.svg": "html",
15-
".*rc": "json"
16-
},
17-
"files.eol": "\n",
18-
"[html][css][less][scss][sass][markdown][yaml][yml][jsonc]": {
19-
"editor.defaultFormatter": "esbenp.prettier-vscode",
20-
"editor.formatOnSave": true
21-
},
22-
"cSpell.words": ["consola", "creatordate", "execa", "gitmoji", "kolorist", "ofetch"]
8+
"eslint.validate": ["jsonc"],
9+
"prettier.enable": false
2310
}

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { defineConfig } from '@soybeanjs/eslint-config';
2+
3+
export default defineConfig();

package.json

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"name": "@soybeanjs/changelog",
3+
"type": "module",
34
"version": "0.3.4",
5+
"packageManager": "pnpm@8.12.0",
46
"description": "generate changelog form git tags and commits for github",
57
"author": {
68
"name": "Soybean",
7-
"email": "honghuangdc@gmail.com",
8-
"url": "https://github.com/honghuangdc"
9+
"email": "soybeanjs@outlook.com",
10+
"url": "https://github.com/soybeanjs"
911
},
1012
"license": "MIT",
1113
"homepage": "https://github.com/soybeanjs/changelog",
@@ -18,52 +20,55 @@
1820
"publishConfig": {
1921
"registry": "https://registry.npmjs.org/"
2022
},
23+
"sideEffects": false,
2124
"exports": {
2225
".": {
26+
"types": "./dist/index.d.ts",
2327
"import": "./dist/index.mjs",
24-
"require": "./dist/index.cjs",
25-
"types": "./dist/index.d.ts"
28+
"require": "./dist/index.cjs"
2629
}
2730
},
2831
"main": "./dist/index.cjs",
2932
"module": "./dist/index.mjs",
3033
"types": "./dist/index.d.ts",
31-
"files": [
32-
"dist"
33-
],
34+
"files": ["dist"],
3435
"scripts": {
35-
"build": "pnpm typecheck && unbuild && pnpm build-pkg",
36+
"build": "unbuild && pnpm build-pkg",
3637
"build-pkg": "pnpm -r --filter='./packages/*' run build",
37-
"stub": "pnpm unbuild --stub",
38-
"lint": "eslint . --fix",
39-
"format": "soy prettier-write",
40-
"commit": "soy git-commit",
4138
"cleanup": "soy cleanup",
42-
"ncu": "soy ncu",
39+
"commit": "soy git-commit",
40+
"lint": "eslint . --fix",
41+
"prepare": "simple-git-hooks",
4342
"publish-pkg": "pnpm -r publish --access public",
43+
"release": "soy release",
44+
"stub": "pnpm unbuild --stub",
4445
"typecheck": "tsc --noEmit --skipLibCheck",
45-
"release": "soy release && pnpm build && pnpm publish-pkg"
46+
"update-pkg": "soy ncu"
4647
},
4748
"dependencies": {
49+
"@soybeanjs/eslint-config": "^1.0.9",
4850
"cli-progress": "3.12.0",
4951
"convert-gitmoji": "0.1.3",
50-
"dayjs": "1.11.9",
52+
"dayjs": "1.11.10",
5153
"execa": "8.0.1",
52-
"ofetch": "1.2.1"
54+
"ofetch": "1.3.3"
5355
},
5456
"devDependencies": {
55-
"@soybeanjs/cli": "0.7.1",
56-
"@types/cli-progress": "3.11.0",
57-
"@types/node": "20.5.3",
58-
"eslint": "8.47.0",
59-
"eslint-config-soybeanjs": "0.5.6",
57+
"@soybeanjs/cli": "0.8.8",
58+
"@types/cli-progress": "3.11.5",
59+
"@types/node": "20.10.4",
60+
"eslint": "8.55.0",
61+
"lint-staged": "15.2.0",
6062
"simple-git-hooks": "2.9.0",
61-
"tsx": "3.12.7",
62-
"typescript": "5.1.6",
63+
"tsx": "4.6.2",
64+
"typescript": "5.3.3",
6365
"unbuild": "2.0.0"
6466
},
6567
"simple-git-hooks": {
6668
"commit-msg": "pnpm soy git-commit-verify",
67-
"pre-commit": "pnpm typecheck && pnpm soy lint-staged"
69+
"pre-commit": "pnpm typecheck && pnpm lint-staged"
70+
},
71+
"lint-staged": {
72+
"*": "eslint --fix"
6873
}
6974
}

packages/githublogen/package.json

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,49 @@
22
"name": "githublogen",
33
"type": "module",
44
"version": "0.3.4",
5-
"sideEffects": false,
5+
"packageManager": "pnpm@8.12.0",
66
"author": {
77
"name": "Soybean",
88
"email": "soybeanjs@outlook.com",
99
"url": "https://github.com/soybeanjs"
1010
},
1111
"license": "MIT",
12+
"homepage": "https://github.com/soybeanjs/changelog/tree/main/packages/githublogen",
13+
"repository": {
14+
"url": "https://github.com/soybeanjs/changelog.git"
15+
},
16+
"bugs": {
17+
"url": "https://github.com/soybeanjs/changelog/issues"
18+
},
19+
"keywords": ["github", "release", "releases", "conventional", "changelog", "log"],
1220
"publishConfig": {
1321
"registry": "https://registry.npmjs.org/"
1422
},
15-
"keywords": [
16-
"github",
17-
"release",
18-
"releases",
19-
"conventional",
20-
"changelog",
21-
"log"
22-
],
23+
"sideEffects": false,
2324
"bin": {
2425
"githublogen": "./dist/cli.mjs"
2526
},
26-
"files": [
27-
"dist"
28-
],
27+
"files": ["dist"],
2928
"engines": {
3029
"node": ">=12.0.0"
3130
},
3231
"scripts": {
33-
"build": "pnpm typecheck && unbuild",
32+
"build": "unbuild",
3433
"stub": "pnpm unbuild --stub",
3534
"typecheck": "tsc --noEmit --skipLibCheck"
3635
},
3736
"dependencies": {
3837
"@soybeanjs/changelog": "workspace:*",
39-
"c12": "1.4.2",
38+
"c12": "1.5.1",
4039
"cac": "6.7.14",
4140
"execa": "8.0.1",
4241
"kolorist": "1.8.0",
43-
"ofetch": "1.2.1"
42+
"ofetch": "1.3.3"
4443
},
4544
"devDependencies": {
46-
"@soybeanjs/cli": "0.7.1",
47-
"@types/node": "20.5.3",
48-
"typescript": "5.1.6",
45+
"@soybeanjs/cli": "0.8.8",
46+
"@types/node": "20.10.4",
47+
"typescript": "5.3.3",
4948
"unbuild": "2.0.0"
5049
}
5150
}

packages/githublogen/src/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
import process from 'node:process';
23
import cac from 'cac';
34
import { consola } from 'consola';
45
import { blue, bold, cyan, dim, red, yellow } from 'kolorist';

packages/githublogen/tsconfig.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
{
22
"compilerOptions": {
3-
"baseUrl": ".",
4-
"module": "ESNext",
53
"target": "ESNext",
6-
"lib": ["DOM", "ESNext"],
7-
"strict": true,
8-
"esModuleInterop": true,
9-
"allowSyntheticDefaultImports": true,
104
"jsx": "preserve",
11-
"moduleResolution": "node",
5+
"lib": ["DOM", "ESNext"],
6+
"baseUrl": ".",
7+
"module": "ESNext",
8+
"moduleResolution": "Bundler",
9+
"paths": {
10+
"@/*": ["./src/*"]
11+
},
1212
"resolveJsonModule": true,
13-
"noUnusedLocals": true,
13+
"types": ["node"],
14+
"strict": true,
1415
"strictNullChecks": true,
15-
"skipLibCheck": true,
16+
"noUnusedLocals": true,
17+
"outDir": "./dist",
18+
"allowSyntheticDefaultImports": true,
19+
"esModuleInterop": true,
1620
"forceConsistentCasingInFileNames": true,
17-
"types": ["node"],
18-
"paths": {
19-
"@/*": ["./src/*"]
20-
}
21+
"isolatedModules": true
2122
},
22-
"include": ["src/**/*"],
23+
"include": ["./**/*.ts"],
2324
"exclude": ["node_modules", "dist"]
2425
}

0 commit comments

Comments
 (0)