mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 08:18:07 +00:00
Updated .npmignore to include sensitive files such as .env and key files, ensuring they are excluded from npm packages. Introduced a new script, check-pack.ts, to validate that no sensitive files are included in the npm tarball before publishing. Updated package.json to include the new script in the prepublish process and expanded the files whitelist for packaging.
12 lines
243 B
Plaintext
12 lines
243 B
Plaintext
docs/
|
||
.claude/
|
||
.cursor/
|
||
|
||
# 密钥文件:package.json 的 files 白名单之外的第二道防线。
|
||
# 注意 .npmignore 一旦存在就会完全接管 .gitignore,.gitignore 里的规则不再生效。
|
||
.env
|
||
.env.*
|
||
!.env.example
|
||
*.pem
|
||
*.key
|