Skip to content

Commit

Permalink
Update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jankuss committed Sep 30, 2021
1 parent 122f65d commit 283a25a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version: 14
- run: npm ci
- run: npm test

- run: npm build
publish-npm:
needs: build
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/**
!dist/**/**
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
},
"scripts": {
"start": "ts-node src/cli.ts",
"build": "tsc",
"test": "jest"
"build": "yarn clean && tsc",
"test": "jest",
"prepare": "yarn build",
"clean": "rm -rf dist"
},
"bin": {
"oxpress": "dist/cli.js"
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { Generator } from "./generator/Generator";
export { Generator, OpenAPIDocument } from "./generator/Generator";
export { GeneratorConfig, Route } from "./generator/types";
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"module": "commonjs",
"target": "es5",
"moduleResolution": "Node",
"sourceMap": true,
"sourceMap": false,
"strict": true,
"lib": [],
"outDir": "dist",
Expand Down

0 comments on commit 283a25a

Please sign in to comment.