Skip to content

Commit 077b4ba

Browse files
Copilotmikeharder
andauthored
[openapi-validator-rulesets] Reduce package size by 88% (6.3MB → 745KB) (#817)
* Initial plan * Add files field to package.json to exclude unnecessary files Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Bump version to 2.2.2 and update CHANGELOG Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Simplify files field to use dist/** pattern Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Remove CHANGELOG.md from files array (included by default) Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
1 parent b812e6c commit 077b4ba

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

packages/rulesets/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log - @microsoft.azure/openapi-validator-rulesets
22

3+
## 2.2.2
4+
5+
### Patches
6+
7+
- Reduce package size by 88% (6.3MB → 745KB unpacked) by excluding test files and source TypeScript files
8+
- Upgrade minimum required Node.js version from 18 to 20
9+
310
## 2.2.1
411

512
### Patches

packages/rulesets/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"name": "@microsoft.azure/openapi-validator-rulesets",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "Azure OpenAPI Validator",
55
"main": "dist/index.js",
6+
"files": [
7+
"dist/**",
8+
"!dist/**/tests/**",
9+
"!dist/**/test/**"
10+
],
611
"scripts": {
712
"build": "tsc && npm run build-esm && npm run rollup-spectral",
813
"build-esm": "tsc -p ./tsconfig.spectral.esm.json",
@@ -14,7 +19,7 @@
1419
"lint": "eslint ./src --ext .ts --max-warnings=0"
1520
},
1621
"engines": {
17-
"node": ">=18"
22+
"node": ">=20"
1823
},
1924
"repository": {
2025
"type": "git",

0 commit comments

Comments
 (0)