Skip to content

Commit 103946d

Browse files
Move all config file to root
Most tools expect config files to be in the root by default. With that we avoid unnecesary configuration. Also IDEs `run test` buttons (like on Goland) works by default without additional configuration, which is more convenient for developers.
1 parent 58af2c4 commit 103946d

File tree

7 files changed

+63
-92
lines changed

7 files changed

+63
-92
lines changed
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const jestConfig = {
77
* https://jestjs.io/docs/configuration#modulefileextensions-arraystring
88
*/
99
moduleFileExtensions: ["ts", "js", "json"],
10-
rootDir: "../src/",
10+
rootDir: "./src/",
1111
testEnvironment: "node",
1212
testRegex: "(/__tests__/.*|(\\.|/)test)\\.ts",
1313
transform: {

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"type": "module",
77
"scripts": {
88
"build": "ncc build ./src/index.ts",
9-
"format": "prettier --ignore-path ./config/.prettierignore",
9+
"format": "prettier",
1010
"format:check": "npm run format -- --check ./",
1111
"format:write": "npm run format -- --write ./",
1212
"lint": "eslint ./",
1313
"lint:fix": "npm run lint -- --fix",
14-
"prepare": "husky install ./config/.husky",
15-
"test": "jest --config=./config/jest.config.js",
14+
"prepare": "husky install",
15+
"test": "jest",
1616
"test:clearcache": "jest --clearCache",
1717
"test:coverage": "npm run test -- --coverage",
1818
"test:watch": "npm run test -- --watch",

0 commit comments

Comments
 (0)