Skip to content

Commit fabdbd4

Browse files
committed
fix(publish): 防止 .env 泄漏并修正 package.json 字段
- .npmignore 增加 **/.env 等深度通配,防止 skill/.env 等被打包 - package.json bin 路径去掉 ./ 前缀避免 npm 警告 - repository.url 加 git+ 前缀和 .git 后缀符合 npm 规范
1 parent 4e8efb5 commit fabdbd4

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.npmignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ tests/
99
output/
1010
*.log
1111

12-
# 环境变量
12+
# 环境变量(用 ** 确保任意深度都被排除,含 skill/.env 等)
13+
**/.env
14+
**/.env.local
15+
**/.env.example
1316
.env
1417
.env.local
1518
.env.example

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Claude Code 万能生图 Skill:Mermaid / PlantUML / AI 生图,一键安装",
55
"type": "module",
66
"bin": {
7-
"universal-image-skill": "./bin/cli.mjs"
7+
"universal-image-skill": "bin/cli.mjs"
88
},
99
"files": [
1010
"bin/",
@@ -23,7 +23,7 @@
2323
},
2424
"repository": {
2525
"type": "git",
26-
"url": "https://github.com/openx123/universal-image-skill"
26+
"url": "git+https://github.com/openx123/universal-image-skill.git"
2727
},
2828
"keywords": [
2929
"claude-code",

0 commit comments

Comments
 (0)