Skip to content

Commit ed3d970

Browse files
committed
feat: upgrade typescript@6 and some deps
1 parent fcab024 commit ed3d970

9 files changed

Lines changed: 460 additions & 482 deletions

File tree

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,30 @@
5454
"package.json": "prettier --write"
5555
},
5656
"dependencies": {
57-
"@clack/prompts": "^1.1.0",
57+
"@clack/prompts": "^1.2.0",
5858
"commander": "^11.1.0",
5959
"conventional-changelog": "^5.1.0",
60-
"rslog": "^2.0.1",
61-
"semver": "^7.5.4",
62-
"tinyexec": "^1.0.4"
60+
"rslog": "^2.1.1",
61+
"semver": "^7.7.4",
62+
"tinyexec": "^1.1.1"
6363
},
6464
"devDependencies": {
6565
"@configurajs/eslint": "^0.1.2",
6666
"@configurajs/prettier": "^0.1.4",
6767
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
6868
"@types/conventional-changelog": "^3.1.5",
6969
"@types/node": "^22.14.0",
70-
"@types/semver": "^7.5.5",
71-
"@vitest/coverage-v8": "^4.1.0",
70+
"@types/semver": "^7.7.1",
71+
"@vitest/coverage-v8": "^4.1.3",
7272
"eslint": "^9.39.2",
7373
"lint-staged": "^16.2.7",
7474
"prettier": "^3.8.1",
7575
"prettier-plugin-packagejson": "^3.0.0",
7676
"prettier-plugin-tailwindcss": "^0.7.2",
7777
"simple-git-hooks": "^2.13.1",
78-
"tsdown": "^0.21.4",
79-
"typescript": "^5.9.3",
80-
"vitest": "^4.1.0"
78+
"tsdown": "^0.21.7",
79+
"typescript": "^6.0.2",
80+
"vitest": "^4.1.3"
8181
},
8282
"packageManager": "pnpm@10.28.2",
8383
"engines": {

pnpm-lock.yaml

Lines changed: 429 additions & 460 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/changelog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createWriteStream } from 'node:fs'
22
import { resolve as resolvePath } from 'node:path'
33
import { spinner } from '@clack/prompts'
44
import conventionalChangelog from 'conventional-changelog'
5-
import { COMMIT_HEADER_RE } from './commitLint'
5+
import { COMMIT_HEADER_RE } from './commitLint.ts'
66

77
const COMMIT_TYPE_MAP: Record<string, string> = {
88
feat: 'Features',

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22
import { Command } from 'commander'
33
import pkg from '../package.json' with { type: 'json' }
4-
import { changelog, commitLint, publish, release } from './index'
4+
import { changelog, commitLint, publish, release } from './index.ts'
55

66
const program = new Command()
77

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from './release'
2-
export * from './changelog'
3-
export * from './commitLint'
1+
export * from './release.ts'
2+
export * from './changelog.ts'
3+
export * from './commitLint.ts'

src/release.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { cancel, confirm, isCancel, select, spinner } from '@clack/prompts'
55
import { logger } from 'rslog'
66
import semver, { type ReleaseType } from 'semver'
77
import { x as exec } from 'tinyexec'
8-
import { changelog } from './changelog'
9-
import { readJSONSync } from './utils'
8+
import { changelog } from './changelog.ts'
9+
import { readJSONSync } from './utils.ts'
1010

1111
const cwd = () => process.cwd()
1212

tsconfig.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
"target": "esnext",
44
"strict": true,
55
"declaration": true,
6+
"noEmit": true,
67
"skipLibCheck": true,
78
"esModuleInterop": true,
8-
"downlevelIteration": true,
99
"resolveJsonModule": true,
10-
"jsx": "preserve",
11-
"lib": ["esnext", "dom"],
12-
"module": "esnext",
13-
"moduleResolution": "node",
10+
"lib": ["esnext"],
11+
"types": ["node"],
12+
"module": "nodenext",
13+
"moduleResolution": "nodenext",
1414
"outDir": "./lib",
15-
"isolatedDeclarations": true
15+
"isolatedDeclarations": true,
16+
"allowImportingTsExtensions": true
1617
},
1718
"include": ["src"],
1819
"exclude": ["node_modules"]

tsdown.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ export default defineConfig({
55
format: 'esm',
66
outDir: 'dist',
77
fixedExtension: false,
8+
dts: {
9+
entry: ['src/index.ts'],
10+
},
811
})

vitest.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ export default defineConfig({
1010
exclude: ['src/changelog.ts', 'dist/**', 'node_modules/**', 'test/**'],
1111
},
1212
},
13+
server: {
14+
watch: {
15+
ignored: ['**/package.json'],
16+
},
17+
},
1318
})

0 commit comments

Comments
 (0)