Skip to content

Commit

Permalink
chore(projects): update deps & perf code
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 9, 2023
1 parent dfb32df commit ae92b1a
Show file tree
Hide file tree
Showing 19 changed files with 2,117 additions and 2,490 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Editor configuration, see http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
6 changes: 0 additions & 6 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
registry=https://registry.npmmirror.com/
shamefully-hoist=true
ignore-workspace-root-check=true
Empty file added .prettierrc
Empty file.
23 changes: 5 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"editor.fontLigatures": true,
"eslint.experimental.useFlatConfig": true,
"editor.formatOnSave": false,
"editor.quickSuggestions": {
"strings": true
},
"editor.tabSize": 2,
"eslint.validate": ["json"],
"files.associations": {
"*.env.*": "dotenv",
"*.svg": "html",
".*rc": "json"
},
"files.eol": "\n",
"[html][css][less][scss][sass][markdown][yaml][yml][jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"cSpell.words": ["consola", "creatordate", "execa", "gitmoji", "kolorist", "ofetch"]
"eslint.validate": ["jsonc"],
"prettier.enable": false
}
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineConfig } from '@soybeanjs/eslint-config';

export default defineConfig();
53 changes: 29 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "@soybeanjs/changelog",
"type": "module",
"version": "0.3.4",
"packageManager": "[email protected]",
"description": "generate changelog form git tags and commits for github",
"author": {
"name": "Soybean",
"email": "honghuangdc@gmail.com",
"url": "https://github.com/honghuangdc"
"email": "soybeanjs@outlook.com",
"url": "https://github.com/soybeanjs"
},
"license": "MIT",
"homepage": "https://github.com/soybeanjs/changelog",
Expand All @@ -18,52 +20,55 @@
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "pnpm typecheck && unbuild && pnpm build-pkg",
"build": "unbuild && pnpm build-pkg",
"build-pkg": "pnpm -r --filter='./packages/*' run build",
"stub": "pnpm unbuild --stub",
"lint": "eslint . --fix",
"format": "soy prettier-write",
"commit": "soy git-commit",
"cleanup": "soy cleanup",
"ncu": "soy ncu",
"commit": "soy git-commit",
"lint": "eslint . --fix",
"prepare": "simple-git-hooks",
"publish-pkg": "pnpm -r publish --access public",
"release": "soy release",
"stub": "pnpm unbuild --stub",
"typecheck": "tsc --noEmit --skipLibCheck",
"release": "soy release && pnpm build && pnpm publish-pkg"
"update-pkg": "soy ncu"
},
"dependencies": {
"@soybeanjs/eslint-config": "^1.0.9",
"cli-progress": "3.12.0",
"convert-gitmoji": "0.1.3",
"dayjs": "1.11.9",
"dayjs": "1.11.10",
"execa": "8.0.1",
"ofetch": "1.2.1"
"ofetch": "1.3.3"
},
"devDependencies": {
"@soybeanjs/cli": "0.7.1",
"@types/cli-progress": "3.11.0",
"@types/node": "20.5.3",
"eslint": "8.47.0",
"eslint-config-soybeanjs": "0.5.6",
"@soybeanjs/cli": "0.8.8",
"@types/cli-progress": "3.11.5",
"@types/node": "20.10.4",
"eslint": "8.55.0",
"lint-staged": "15.2.0",
"simple-git-hooks": "2.9.0",
"tsx": "3.12.7",
"typescript": "5.1.6",
"tsx": "4.6.2",
"typescript": "5.3.3",
"unbuild": "2.0.0"
},
"simple-git-hooks": {
"commit-msg": "pnpm soy git-commit-verify",
"pre-commit": "pnpm typecheck && pnpm soy lint-staged"
"pre-commit": "pnpm typecheck && pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}
35 changes: 17 additions & 18 deletions packages/githublogen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,49 @@
"name": "githublogen",
"type": "module",
"version": "0.3.4",
"sideEffects": false,
"packageManager": "[email protected]",
"author": {
"name": "Soybean",
"email": "[email protected]",
"url": "https://github.com/soybeanjs"
},
"license": "MIT",
"homepage": "https://github.com/soybeanjs/changelog/tree/main/packages/githublogen",
"repository": {
"url": "https://github.com/soybeanjs/changelog.git"
},
"bugs": {
"url": "https://github.com/soybeanjs/changelog/issues"
},
"keywords": ["github", "release", "releases", "conventional", "changelog", "log"],
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"keywords": [
"github",
"release",
"releases",
"conventional",
"changelog",
"log"
],
"sideEffects": false,
"bin": {
"githublogen": "./dist/cli.mjs"
},
"files": [
"dist"
],
"files": ["dist"],
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"build": "pnpm typecheck && unbuild",
"build": "unbuild",
"stub": "pnpm unbuild --stub",
"typecheck": "tsc --noEmit --skipLibCheck"
},
"dependencies": {
"@soybeanjs/changelog": "workspace:*",
"c12": "1.4.2",
"c12": "1.5.1",
"cac": "6.7.14",
"execa": "8.0.1",
"kolorist": "1.8.0",
"ofetch": "1.2.1"
"ofetch": "1.3.3"
},
"devDependencies": {
"@soybeanjs/cli": "0.7.1",
"@types/node": "20.5.3",
"typescript": "5.1.6",
"@soybeanjs/cli": "0.8.8",
"@types/node": "20.10.4",
"typescript": "5.3.3",
"unbuild": "2.0.0"
}
}
1 change: 1 addition & 0 deletions packages/githublogen/src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
import process from 'node:process';
import cac from 'cac';
import { consola } from 'consola';
import { blue, bold, cyan, dim, red, yellow } from 'kolorist';
Expand Down
29 changes: 15 additions & 14 deletions packages/githublogen/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
{
"compilerOptions": {
"baseUrl": ".",
"module": "ESNext",
"target": "ESNext",
"lib": ["DOM", "ESNext"],
"strict": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"jsx": "preserve",
"moduleResolution": "node",
"lib": ["DOM", "ESNext"],
"baseUrl": ".",
"module": "ESNext",
"moduleResolution": "Bundler",
"paths": {
"@/*": ["./src/*"]
},
"resolveJsonModule": true,
"noUnusedLocals": true,
"types": ["node"],
"strict": true,
"strictNullChecks": true,
"skipLibCheck": true,
"noUnusedLocals": true,
"outDir": "./dist",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"types": ["node"],
"paths": {
"@/*": ["./src/*"]
}
"isolatedModules": true
},
"include": ["src/**/*"],
"include": ["./**/*.ts"],
"exclude": ["node_modules", "dist"]
}
Loading

0 comments on commit ae92b1a

Please sign in to comment.