Skip to content

Commit

Permalink
fix(*): include dist folder into the package (#4)
Browse files Browse the repository at this point in the history
fixes #2
  • Loading branch information
derevnjuk authored May 19, 2021
1 parent d173a50 commit f818e23
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
${{ runner.os }}-npm-
- run: npm ci -q --ignore-scripts && npm run bootstrap
- run: npm run build:changed
- run: npm run build
- run: npm run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
6 changes: 6 additions & 0 deletions packages/capture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
"format": "prettier --ignore-path ../../.prettierignore --check **/*.ts",
"test": "cross-env TS_NODE_PROJECT=tests/tsconfig.json mocha -r ts-node/register -r tsconfig-paths/register tests/**/*.spec.ts"
},
"keywords": [
"capture",
"har",
"request",
"generator"
],
"dependencies": {
"content-type": "^1.0.4",
"querystring": "^0.2.1",
Expand Down
6 changes: 4 additions & 2 deletions packages/capture/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DefaultHarBuilder, Har, Options } from './builder';
import { DefaultParser } from './parser';
import { DefaultCapture } from './capture/DefaultCapture';
import pkg from '../package.json';
import { DefaultCapture } from './capture';
import Request from 'request';

const buildRequestConfig = (
Expand All @@ -27,6 +26,9 @@ export const captureHar = async (
builder.buildHarConfig(harConfig)
);

// eslint-disable-next-line @typescript-eslint/no-var-requires
const pkg = require('../package.json');

return {
log: {
entries,
Expand Down
8 changes: 8 additions & 0 deletions packages/oas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
"format": "prettier --ignore-path ../../.prettierignore --check **/*.ts",
"test": "cross-env TS_NODE_PROJECT=tests/tsconfig.json mocha -r ts-node/register -r tsconfig-paths/register tests/**/*.spec.ts"
},
"keywords": [
"swagger",
"oas",
"yml",
"yaml",
"har",
"json"
],
"dependencies": {
"@har-sdk/openapi-sampler": "*",
"ajv": "^6.12.6",
Expand Down
7 changes: 7 additions & 0 deletions packages/openapi-sampler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"format": "prettier --ignore-path ../../.prettierignore --check **/*.ts",
"test": "cross-env TS_NODE_PROJECT=tests/tsconfig.json mocha -r ts-node/register -r tsconfig-paths/register tests/**/*.spec.ts"
},
"keywords": [
"oas",
"swagger",
"instantiator",
"sampler",
"faker"
],
"dependencies": {
"faker": "^5.5.3",
"json-pointer": "^0.6.1",
Expand Down
7 changes: 7 additions & 0 deletions packages/postman/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
"dist/**",
"schemas/**"
],
"keywords": [
"postman",
"har",
"api",
"har",
"json"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"homepage": "https://github.com/NeuraLegion/har-sdk#readme",
Expand Down

0 comments on commit f818e23

Please sign in to comment.