Skip to content

Commit a1fb5f4

Browse files
committed
feat(plugin): add option to completely disable version injection
Added support for `log: false` to prevent both <meta> tag and console logs from being
1 parent 2e6a7b1 commit a1fb5f4

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

package.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
22
"name": "unplugin-version-injector",
3-
"version": "1.0.0",
4-
"author": {
5-
"name": "nianyi778",
6-
"email": "[email protected]"
7-
},
3+
"version": "1.0.3",
4+
"author": "Nian Yi <[email protected]>",
5+
"license": "MIT",
86
"description": "A universal plugin to inject version and build time into HTML (supports Webpack, Vite, Rollup)",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/nianyi778/unplugin-version-injector.git"
10+
},
11+
"keywords": ["unplugin", "version", "injector", "webpack", "vite", "rollup"],
912
"main": "./dist/cjs/index.js",
1013
"module": "./dist/esm/index.js",
1114
"exports": {
@@ -19,7 +22,7 @@
1922
"build:esm": "tsc --module ESNext --outDir dist/esm",
2023
"build:cjs": "tsc --module CommonJS --outDir dist/cjs",
2124
"build": "npm run clean && npm run build:esm && npm run build:cjs",
22-
"publish": "npm run build && npm publish"
25+
"prepublishOnly": "npm run build"
2326
},
2427
"dependencies": {
2528
"unplugin": "^1.0.0"
@@ -30,5 +33,9 @@
3033
"vite": "^4",
3134
"rollup": "^3"
3235
},
36+
"publishConfig": {
37+
"access": "public"
38+
},
39+
"files": ["dist","README.md","README.zh-CN.md"],
3340
"packageManager": "[email protected]+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b"
3441
}

0 commit comments

Comments
 (0)