diff --git a/.codeclimate.yml b/.codeclimate.yml index 608dc290..6fd16653 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -26,8 +26,11 @@ checks: plugins: eslint: enabled: true + channel: "eslint-7" config: - config: .eslintrc.js + config: ./.eslintrc.js + extensions: + - .ts exclude_patterns: - "**/dist/" - "**/node_modules/" diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 0497b910..a90a7585 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -70,6 +70,7 @@ jobs: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} with: coverageLocations: .coverage/lcov.info:lcov + debug: true release: if: ${{ github.ref == 'refs/heads/master' }} diff --git a/packages/capture/package.json b/packages/capture/package.json index 26ab4f65..87880021 100644 --- a/packages/capture/package.json +++ b/packages/capture/package.json @@ -32,7 +32,7 @@ "compile": "tsc -b tsconfig.build.json", "lint": "eslint --ignore-path ../../.eslintignore .", "format": "prettier --ignore-path ../../.prettierignore --check .", - "test": "NODE_ENV=test mocha tests/**/*.spec.ts", + "test": "cross-env NODE_ENV=test mocha tests/**/*.spec.ts", "coverage": "nyc npm t -- --reporter xunit --reporter-options output=.mocha/testspec.xunit.xml" }, "keywords": [ diff --git a/packages/oas/package.json b/packages/oas/package.json index 67a752fe..4b7abfbf 100644 --- a/packages/oas/package.json +++ b/packages/oas/package.json @@ -32,7 +32,7 @@ "compile": "tsc -b tsconfig.build.json", "lint": "eslint --ignore-path ../../.eslintignore .", "format": "prettier --ignore-path ../../.prettierignore --check .", - "test": "NODE_ENV=test mocha tests/**/*.spec.ts", + "test": "cross-env NODE_ENV=test mocha tests/**/*.spec.ts", "coverage": "nyc npm t -- --reporter xunit --reporter-options output=.mocha/testspec.xunit.xml" }, "keywords": [ diff --git a/packages/openapi-sampler/package.json b/packages/openapi-sampler/package.json index 76a63eb1..2d5b23b3 100644 --- a/packages/openapi-sampler/package.json +++ b/packages/openapi-sampler/package.json @@ -32,7 +32,7 @@ "compile": "tsc -b tsconfig.build.json", "lint": "eslint --ignore-path ../../.eslintignore .", "format": "prettier --ignore-path ../../.prettierignore --check .", - "test": "NODE_ENV=test mocha tests/**/*.spec.ts", + "test": "cross-env NODE_ENV=test mocha tests/**/*.spec.ts", "coverage": "nyc npm t -- --reporter xunit --reporter-options output=.mocha/testspec.xunit.xml" }, "keywords": [ diff --git a/packages/validator/package.json b/packages/validator/package.json index d6215524..a3cc92ce 100644 --- a/packages/validator/package.json +++ b/packages/validator/package.json @@ -32,7 +32,7 @@ "compile": "tsc -b tsconfig.build.json", "lint": "eslint --ignore-path ../../.eslintignore .", "format": "prettier --ignore-path ../../.prettierignore --check .", - "test": "NODE_ENV=test mocha tests/**/*.spec.ts", + "test": "cross-env NODE_ENV=test mocha tests/**/*.spec.ts", "coverage": "nyc npm t -- --reporter xunit --reporter-options output=.mocha/testspec.xunit.xml" }, "keywords": [ @@ -44,7 +44,7 @@ "json" ], "dependencies": { - "@har-sdk/types": "*", + "@har-sdk/types": "^1.0.0", "ajv": "^8.6.0", "ajv-formats": "^2.1.0", "semver": "^7.3.5", diff --git a/rollup.config.js b/rollup.config.js index b408673b..357336c7 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -15,7 +15,7 @@ export default { plugins: [ json(), resolve({ preferBuiltins: false }), - commonjs({ include: 'node_modules/**' }), + commonjs({ include: /node_modules/ }), typescript({ clean: true, tsconfig: 'tsconfig.build.json'