Skip to content

Commit

Permalink
Update GitHub build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal Nagar committed Nov 7, 2020
1 parent 4fa3335 commit 55bee39
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ jobs:
run: npm run lint
- name: Create npm build
run: npm run build
- name: Create npm tarball (dry-run)
run: npm pack
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
node_modules

# tsc
build
dist

# jest
coverage

# test zips
*.tgz
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@kunalnagarco/healthie
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "@kunalnagarco/healthie",
"version": "1.0.0-beta.0",
"description": "A health check middleware for Express.js applications",
"main": "index.js",
"files": [
"dist/*"
],
"scripts": {
"build": "tsc",
"test": "jest --watch --coverage",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { handleHealthCheck } from './middleware';
2 changes: 1 addition & 1 deletion test/middleware.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Router } from 'express';

import { handleHealthCheck } from '../src/middleware';
import { handleHealthCheck } from '../src';

jest.mock('express', () => ({
Router: jest.fn(() => ({
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"outDir": "./build",
"outDir": "./dist",
"inlineSourceMap": true,
"resolveJsonModule": true,
"experimentalDecorators": true,
Expand Down

0 comments on commit 55bee39

Please sign in to comment.