diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0ca4b4c..774b37b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,5 +31,4 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm ci - - run: npm run build - run: npm run lint diff --git a/.prettierignore b/.prettierignore index 86354bbe..1b763b1b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1 @@ -packages/**/coverage/ -packages/**/dist/ CHANGELOG.md diff --git a/package.json b/package.json index 64825008..b4244998 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "prettier": "prettier --check .", "prettier:write": "prettier --check --write .", "publish": "npx lerna publish", + "prelint": "npm run build", "pretest": "npm run build", "test": "npx lerna run test --stream" }, diff --git a/packages/oas-extensions/.eslintignore b/packages/oas-extensions/.eslintignore deleted file mode 100644 index d64c4ca2..00000000 --- a/packages/oas-extensions/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -coverage/ -dist/ diff --git a/packages/oas-extensions/.npmignore b/packages/oas-extensions/.npmignore deleted file mode 100644 index 051e9d53..00000000 --- a/packages/oas-extensions/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -coverage/ -test/ -.eslint* diff --git a/packages/oas-extensions/package.json b/packages/oas-extensions/package.json index 4e662116..b2895610 100644 --- a/packages/oas-extensions/package.json +++ b/packages/oas-extensions/package.json @@ -33,7 +33,7 @@ "attw": "attw --pack --format table-flipped", "build": "tsup", "lint": "npm run lint:types && npm run lint:js", - "lint:js": "eslint . --ext .js,.ts", + "lint:js": "eslint . --ext .js,.ts --ignore-path ../../.gitignore", "lint:types": "tsc --noEmit", "prebuild": "rm -rf dist/", "prepack": "npm run build", diff --git a/packages/oas-normalize/.eslintignore b/packages/oas-normalize/.eslintignore deleted file mode 100644 index d64c4ca2..00000000 --- a/packages/oas-normalize/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -coverage/ -dist/ diff --git a/packages/oas-normalize/.npmignore b/packages/oas-normalize/.npmignore deleted file mode 100644 index 051e9d53..00000000 --- a/packages/oas-normalize/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -coverage/ -test/ -.eslint* diff --git a/packages/oas-normalize/package.json b/packages/oas-normalize/package.json index c154d05c..29d3e6b8 100644 --- a/packages/oas-normalize/package.json +++ b/packages/oas-normalize/package.json @@ -55,7 +55,7 @@ "attw": "attw --pack --format table-flipped", "build": "tsup", "lint": "npm run lint:types && npm run lint:js", - "lint:js": "eslint . --ext .js,.ts", + "lint:js": "eslint . --ext .js,.ts --ignore-path ../../.gitignore", "lint:types": "tsc --noEmit", "prebuild": "rm -rf dist/", "prepack": "npm run build", diff --git a/packages/oas-to-har/.eslintignore b/packages/oas-to-har/.eslintignore deleted file mode 100644 index d64c4ca2..00000000 --- a/packages/oas-to-har/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -coverage/ -dist/ diff --git a/packages/oas-to-har/.npmignore b/packages/oas-to-har/.npmignore deleted file mode 100644 index 051e9d53..00000000 --- a/packages/oas-to-har/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -coverage/ -test/ -.eslint* diff --git a/packages/oas-to-har/package.json b/packages/oas-to-har/package.json index 23bd751b..5dbc2228 100644 --- a/packages/oas-to-har/package.json +++ b/packages/oas-to-har/package.json @@ -42,7 +42,7 @@ "attw": "attw --pack --format table-flipped", "build": "tsup", "lint": "npm run lint:types && npm run lint:js", - "lint:js": "eslint . --ext .js,.ts", + "lint:js": "eslint . --ext .js,.ts --ignore-path ../../.gitignore", "lint:types": "tsc --noEmit", "prebuild": "rm -rf dist/", "prepack": "npm run build", diff --git a/packages/oas/.eslintignore b/packages/oas/.eslintignore deleted file mode 100644 index d64c4ca2..00000000 --- a/packages/oas/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -coverage/ -dist/ diff --git a/packages/oas/.npmignore b/packages/oas/.npmignore deleted file mode 100644 index 051e9d53..00000000 --- a/packages/oas/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -coverage/ -test/ -.eslint* diff --git a/packages/oas/package.json b/packages/oas/package.json index d83a6dda..63853eff 100644 --- a/packages/oas/package.json +++ b/packages/oas/package.json @@ -72,7 +72,7 @@ "attw": "attw --pack --format table-flipped", "build": "tsup", "lint": "npm run lint:types && npm run lint:js", - "lint:js": "eslint . --ext .js,.ts", + "lint:js": "eslint . --ext .js,.ts --ignore-path ../../.gitignore", "lint:types": "tsc --noEmit", "prebuild": "rm -rf dist/", "prepack": "npm run build",