Skip to content

Commit 3d760b6

Browse files
author
王锦辉
authored
chore: 添加windows环境下开发配置和cross-env依赖 (#1347)
代码更新需要重新install一次
1 parent ad2684b commit 3d760b6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"trailingComma": "es5",
55
"bracketSpacing": true,
66
"printWidth": 120,
7-
"arrowParens": "always"
7+
"arrowParens": "always",
8+
"endOfLine": "auto"
89
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"lint": "eslint --ext .ts ./src ./__tests__",
3535
"lint-staged": "lint-staged",
3636
"test": "jest",
37-
"test-live": "DEBUG_MODE=1 jest --watch ./__tests__",
37+
"test-live": "cross-env DEBUG_MODE=1 jest --watch ./__tests__",
3838
"coverage": "jest --coverage",
3939
"ci": "run-s lint build coverage",
4040
"changelog": "conventional-changelog -i CHANGELOG.md -a -s",
@@ -63,6 +63,7 @@
6363
"@typescript-eslint/parser": "^2.0.0",
6464
"babel-loader": "^8.1.0",
6565
"conventional-changelog-cli": "^2.0.28",
66+
"cross-env": "^7.0.2",
6667
"dumi": "^1.0.33",
6768
"eslint": "^6.1.0",
6869
"eslint-config-prettier": "^6.0.0",

0 commit comments

Comments
 (0)