Skip to content

Commit 191557c

Browse files
authored
Merge pull request #219 from z0ffy/feature/upgrade-to-vite7
chore: update package.json, upgrade Vite version to 7.0.0
2 parents dcac9e3 + 6432648 commit 191557c

File tree

4 files changed

+265
-52
lines changed

4 files changed

+265
-52
lines changed

commitlint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const Configuration: UserConfig = {
44
extends: ['@commitlint/config-conventional'],
55
rules: {
66
'body-max-line-length': [0],
7+
'header-max-length': [0],
78
},
89
};
910

package.json

Lines changed: 39 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,56 @@
11
{
22
"name": "vite-plugin-bundle-obfuscator",
33
"version": "1.6.0",
4-
"homepage": "https://github.com/z0ffy/vite-plugin-bundle-obfuscator",
54
"description": "JavaScript obfuscator plugin for Vite environments",
6-
"types": "dist/index.d.ts",
7-
"scripts": {
8-
"build": "tsup",
9-
"start": "npm run build -- --watch",
10-
"test": "vitest",
11-
"coverage": "vitest run --coverage",
12-
"lint": "eslint",
13-
"lint:fix": "eslint --fix",
14-
"prepare": "husky",
15-
"lint:lint-staged": "lint-staged",
16-
"commitlint": "commitlint --edit",
17-
"version": "auto-changelog"
18-
},
195
"keywords": [
206
"vite",
7+
"vite-rolldown",
218
"obfuscator",
229
"vite-plugin-obfuscator",
2310
"vite-bundle-obfuscator",
11+
"vite-javascript-obfuscator",
2412
"javascript",
2513
"javascript-obfuscator"
2614
],
2715
"author": "zoffy",
28-
"files": [
29-
"/dist"
30-
],
3116
"license": "MIT",
17+
"homepage": "https://github.com/z0ffy/vite-plugin-bundle-obfuscator",
3218
"repository": {
3319
"type": "git",
3420
"url": "https://github.com/z0ffy/vite-plugin-bundle-obfuscator.git"
3521
},
3622
"bugs": {
3723
"url": "https://github.com/z0ffy/vite-plugin-bundle-obfuscator/issues"
3824
},
39-
"engines": {
40-
"node": ">=14.0.0"
25+
"types": "dist/index.d.ts",
26+
"files": [
27+
"/dist"
28+
],
29+
"exports": {
30+
"require": {
31+
"types": "./dist/index.d.ts",
32+
"default": "./dist/index.js"
33+
},
34+
"import": {
35+
"types": "./dist/index.d.ts",
36+
"default": "./dist/index.mjs"
37+
}
38+
},
39+
"sideEffects": false,
40+
"scripts": {
41+
"build": "tsup",
42+
"commitlint": "commitlint --edit",
43+
"coverage": "vitest run --coverage",
44+
"lint": "eslint",
45+
"lint:fix": "eslint --fix",
46+
"lint:lint-staged": "lint-staged",
47+
"prepare": "husky",
48+
"start": "npm run build -- --watch",
49+
"test": "vitest",
50+
"version": "auto-changelog"
51+
},
52+
"dependencies": {
53+
"javascript-obfuscator": "^4.1.1"
4154
},
4255
"devDependencies": {
4356
"@commitlint/cli": "^19.8.1",
@@ -57,18 +70,17 @@
5770
"tsup": "^8.5.0",
5871
"typescript": "^5.8.3",
5972
"typescript-eslint": "^8.34.1",
60-
"vite": "^6.3.5",
73+
"vite": "^7.0.0",
6174
"vitest": "^3.2.3"
6275
},
63-
"dependencies": {
64-
"javascript-obfuscator": "^4.1.1"
76+
"peerDependencies": {
77+
"vite": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
6578
},
66-
"exports": {
67-
"require": "./dist/index.js",
68-
"import": "./dist/index.mjs"
79+
"engines": {
80+
"node": ">=14.0.0"
6981
},
7082
"lint-staged": {
71-
"*.{ts}": [
83+
"*.ts": [
7284
"eslint --fix"
7385
]
7486
},
@@ -77,4 +89,4 @@
7789
"esbuild"
7890
]
7991
}
80-
}
92+
}

0 commit comments

Comments
 (0)