Skip to content

Commit 3a93bc2

Browse files
committed
change on npm package ignore and jest config to publish to npm
1 parent 3503c00 commit 3a93bc2

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.npmignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
src
2-
*.ts
1+
src/
2+
tests/
3+
.github/
4+
.vscode/
5+
.gitignore
6+
tsconfig.json
7+
jest.config.js
8+
*.log

jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
testMatch: ['**/tests/**/*.test.ts'],
5+
collectCoverage: true,
6+
coverageDirectory: 'coverage',
7+
collectCoverageFrom: ['src/**/*.ts', '!src/**/*.d.ts']
8+
};

0 commit comments

Comments
 (0)