Skip to content

Commit b01c40d

Browse files
authored
chore: upgrade TypeScript to 6.0.2 (#34)
1 parent 9a0ebf4 commit b01c40d

File tree

3 files changed

+87
-87
lines changed

3 files changed

+87
-87
lines changed

package.json

Lines changed: 63 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,66 @@
11
{
2-
"name": "rsbuild-plugin-html-minifier-terser",
3-
"version": "1.1.3",
4-
"repository": "https://github.com/rstackjs/rsbuild-plugin-html-minifier-terser",
5-
"license": "MIT",
6-
"type": "module",
7-
"exports": {
8-
".": {
9-
"types": "./dist/index.d.ts",
10-
"import": "./dist/index.js",
11-
"require": "./dist/index.cjs"
12-
}
13-
},
14-
"main": "./dist/index.js",
15-
"module": "./dist/index.mjs",
16-
"types": "./dist/index.d.ts",
17-
"files": ["dist"],
18-
"scripts": {
19-
"build": "rslib",
20-
"dev": "rslib -w",
21-
"lint": "biome check .",
22-
"lint:write": "biome check . --write",
23-
"prepare": "simple-git-hooks && npm run build",
24-
"test": "playwright test",
2+
"name": "rsbuild-plugin-html-minifier-terser",
3+
"version": "1.1.3",
4+
"repository": "https://github.com/rstackjs/rsbuild-plugin-html-minifier-terser",
5+
"license": "MIT",
6+
"type": "module",
7+
"exports": {
8+
".": {
9+
"types": "./dist/index.d.ts",
10+
"import": "./dist/index.js",
11+
"require": "./dist/index.cjs"
12+
}
13+
},
14+
"main": "./dist/index.js",
15+
"module": "./dist/index.mjs",
16+
"types": "./dist/index.d.ts",
17+
"files": [
18+
"dist"
19+
],
20+
"scripts": {
21+
"build": "rslib",
22+
"dev": "rslib -w",
23+
"lint": "biome check .",
24+
"lint:write": "biome check . --write",
25+
"prepare": "simple-git-hooks && npm run build",
26+
"test": "playwright test",
2527
"bump": "npx bumpp"
26-
},
27-
"simple-git-hooks": {
28-
"pre-commit": "npx nano-staged"
29-
},
30-
"nano-staged": {
31-
"*.{js,jsx,ts,tsx,mjs,cjs}": [
32-
"biome check --write --no-errors-on-unmatched"
33-
]
34-
},
35-
"dependencies": {
36-
"@types/html-minifier-terser": "^7.0.2",
37-
"html-minifier-terser": "^7.2.0"
38-
},
39-
"devDependencies": {
40-
"@biomejs/biome": "^1.9.4",
41-
"@playwright/test": "^1.58.2",
42-
"@rsbuild/core": "1.7.3",
43-
"@rslib/core": "^0.20.0",
44-
"@types/node": "^24.12.0",
45-
"nano-staged": "^0.9.0",
46-
"playwright": "^1.58.2",
47-
"simple-git-hooks": "^2.13.1",
48-
"terser": "^5.46.1",
49-
"typescript": "^5.9.3"
50-
},
51-
"peerDependencies": {
52-
"@rsbuild/core": "^1.0.0 || ^2.0.0-0"
53-
},
54-
"peerDependenciesMeta": {
55-
"@rsbuild/core": {
56-
"optional": true
57-
}
58-
},
59-
"packageManager": "pnpm@10.32.1",
60-
"publishConfig": {
61-
"access": "public",
62-
"registry": "https://registry.npmjs.org/"
63-
}
28+
},
29+
"simple-git-hooks": {
30+
"pre-commit": "npx nano-staged"
31+
},
32+
"nano-staged": {
33+
"*.{js,jsx,ts,tsx,mjs,cjs}": [
34+
"biome check --write --no-errors-on-unmatched"
35+
]
36+
},
37+
"dependencies": {
38+
"@types/html-minifier-terser": "^7.0.2",
39+
"html-minifier-terser": "^7.2.0"
40+
},
41+
"devDependencies": {
42+
"@biomejs/biome": "^1.9.4",
43+
"@playwright/test": "^1.58.2",
44+
"@rsbuild/core": "1.7.3",
45+
"@rslib/core": "^0.20.0",
46+
"@types/node": "^24.12.0",
47+
"nano-staged": "^0.9.0",
48+
"playwright": "^1.58.2",
49+
"simple-git-hooks": "^2.13.1",
50+
"terser": "^5.46.1",
51+
"typescript": "6.0.2"
52+
},
53+
"peerDependencies": {
54+
"@rsbuild/core": "^1.0.0 || ^2.0.0-0"
55+
},
56+
"peerDependenciesMeta": {
57+
"@rsbuild/core": {
58+
"optional": true
59+
}
60+
},
61+
"packageManager": "pnpm@10.32.1",
62+
"publishConfig": {
63+
"access": "public",
64+
"registry": "https://registry.npmjs.org/"
65+
}
6466
}

pnpm-lock.yaml

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

tsconfig.json

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
2-
"compilerOptions": {
3-
"outDir": "./dist",
4-
"baseUrl": "./",
5-
"target": "ES2020",
6-
"lib": ["DOM", "ESNext"],
7-
"module": "Node16",
8-
"strict": true,
9-
"declaration": true,
10-
"isolatedModules": true,
11-
"esModuleInterop": true,
12-
"skipLibCheck": true,
13-
"resolveJsonModule": true,
14-
"moduleResolution": "Node16"
15-
},
16-
"include": ["src"]
2+
"compilerOptions": {
3+
"rootDir": "./src",
4+
"outDir": "./dist",
5+
"target": "ES2023",
6+
"types": ["node"],
7+
"lib": ["DOM", "ESNext"],
8+
"declaration": true,
9+
"isolatedModules": true,
10+
"skipLibCheck": true,
11+
"module": "nodenext",
12+
"moduleResolution": "nodenext"
13+
},
14+
"include": ["src"]
1715
}

0 commit comments

Comments
 (0)