build: 添加 yarn 锁文件忽略配置并指定包管理器
在 .gitignore 中添加忽略 npm 生成的 package-lock.json,同时在 package.json 中指定使用 yarn 作为包管理器,与配置的规则保持一致。
This commit is contained in:
1 parent
307e9cf1b9
commit
14bbab626f
3 files changed
+4
-7921
No files matched your search
@@ -1,6 +1,9 @@
|
||||
# Dependencies
|
||||
node_modules/
|
||||
|
||||
# 统一使用 yarn,禁止 npm 生成的锁文件(见 package.json packageManager)
|
||||
package-lock.json
|
||||
|
||||
# Build output
|
||||
dist/
|
||||
dist-ssr/
|
||||
|
||||
Generated
-7921
File diff suppressed because it is too large.
Load diff
@@ -3,6 +3,7 @@
|
||||
"version": "1.0.0",
|
||||
"description": "智能物联网设备后台管理系统后端",
|
||||
"private": true,
|
||||
"packageManager": "yarn@1.22.22",
|
||||
"scripts": {
|
||||
"dev": "midway-bin dev --ts",
|
||||
"dev:local": "cross-env MIDWAY_SERVER_ENV=local midway-bin dev --ts",
|
||||
|
||||
Reference in new issue
Block a user