Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Commit ca69cc3

Browse files
committed
Adjust some tooling configuration
1 parent c5a395b commit ca69cc3

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ jobs:
77
- uses: actions/checkout@v2
88
- uses: actions/setup-node@v1
99
- run: "yarn"
10+
- run: "yarn lint && yarn typecheck"
1011
- run: "yarn test"

jest.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2-
preset: 'ts-jest',
3-
testEnvironment: 'node',
4-
};
2+
preset: "ts-jest",
3+
testEnvironment: "node",
4+
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
5+
};

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"middleware",
99
"typescript"
1010
],
11-
"main": "dist/index.js",
12-
"types": "dist/index.d.ts",
11+
"main": "dist/src/index.js",
12+
"types": "dist/src/index.d.ts",
1313
"files": [
14-
"dist/index.js",
15-
"dist/index.d.ts"
14+
"dist/src/index.js",
15+
"dist/src/index.d.ts"
1616
],
1717
"author": {
1818
"email": "sergio@codecoolture.com",
@@ -49,10 +49,12 @@
4949
"typescript": "^3.9.7"
5050
},
5151
"scripts": {
52+
"lint": "eslint . --ext .ts",
5253
"prepublish": "yarn test && tsc",
5354
"preversion": "yarn test && tsc",
5455
"postversion": "git push --tags && yarn publish . --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\"",
55-
"test": "jest"
56+
"test": "jest",
57+
"typecheck": "tsc --noEmit"
5658
},
5759
"husky": {
5860
"hooks": {

tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,5 @@
6565
/* Advanced Options */
6666
"skipLibCheck": true /* Skip type checking of declaration files. */,
6767
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
68-
},
69-
"exclude": ["./tests/**/*.ts"],
70-
"include": ["./src/**/*.ts"]
68+
}
7169
}

0 commit comments

Comments
 (0)