Skip to content

Commit 310026e

Browse files
authored
chore: fix configuration of Prettier and test env variables (#12)
Related: #10
1 parent e75c8c4 commit 310026e

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

package-lock.json

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@
1919
"prepack": "npm run compile",
2020
"test": "npm run format:check && npm run compile && npm run test:redis-standalone && npm run test:redis-cluster && npm run test:ioredis-standalone && npm run test:ioredis-cluster",
2121
"test:redis-standalone": "nyc mocha --require ts-node/register test/**/*.ts",
22-
"test:redis-cluster": "REDIS_CLUSTER=1 mocha --require ts-node/register test/**/*.ts",
23-
"test:ioredis-standalone": "REDIS_LIB=ioredis mocha --require ts-node/register test/**/*.ts",
24-
"test:ioredis-cluster": "REDIS_LIB=ioredis REDIS_CLUSTER=1 mocha --require ts-node/register test/**/*.ts"
22+
"test:redis-cluster": "cross-env REDIS_CLUSTER=1 mocha --require ts-node/register test/**/*.ts",
23+
"test:ioredis-standalone": "cross-env REDIS_LIB=ioredis mocha --require ts-node/register test/**/*.ts",
24+
"test:ioredis-cluster": "cross-env REDIS_LIB=ioredis REDIS_CLUSTER=1 mocha --require ts-node/register test/**/*.ts"
25+
},
26+
"prettier": {
27+
"endOfLine": "auto"
2528
},
2629
"dependencies": {
2730
"@msgpack/msgpack": "~2.8.0",
@@ -34,6 +37,7 @@
3437
"@types/expect.js": "^0.3.29",
3538
"@types/mocha": "^8.2.1",
3639
"@types/node": "^18.15.11",
40+
"cross-env": "7.0.3",
3741
"expect.js": "0.3.1",
3842
"ioredis": "^5.3.2",
3943
"mocha": "^10.1.0",

0 commit comments

Comments
 (0)