Skip to content

Commit

Permalink
chore: prepare for the release (#36)
Browse files Browse the repository at this point in the history
* chore: update to [email protected]

* chore: update description in package.json

* chore: upgrade to node v20.11

* chore: update email in package.json

* test: fix "headersAfterMsw" utility

* chore: split ts configs
  • Loading branch information
kettanaito authored May 8, 2024
1 parent d995669 commit 11a9ad6
Show file tree
Hide file tree
Showing 34 changed files with 2,243 additions and 1,791 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- uses: pnpm/action-setup@v2
with:
version: 7.12
version: 8.15

- name: Install dependencies
run: pnpm install
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.14.2
v20.11.0
39 changes: 19 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mswjs/source",
"version": "0.0.0",
"description": "Generate request handlers for Mock Service Worker from various sources.",
"description": "Generate MSW request handlers from OpenAPI specs, HAR archives, and other sources.",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"types": "./lib/index.d.ts",
Expand All @@ -11,22 +11,21 @@
"import": "./lib/index.mjs"
}
},
"files": [
"lib"
],
"repository": "[email protected]:mswjs/source.git",
"author": "Artem Zakharchenko <kettanaito@gmail.com>",
"author": "Artem Zakharchenko <me@kettanaito.com>",
"scripts": {
"start": "pnpm build --watch",
"lint": "eslint ./{src,test}/**/*.ts",
"har:fixture": "ts-node ./test/traffic/fixtures/requests/command.ts",
"prepare": "pnpm simple-git-hooks init",
"prebuild": "pnpm lint",
"build": "tsup src/index.ts --format cjs,esm --out-dir lib --dts --clean",
"test": "vitest run",
"build": "tsup",
"test": "vitest",
"prepublishOnly": "pnpm test && pnpm build"
},
"files": [
"lib",
"README.md"
],
"lint-staged": {
"*.ts": [
"prettier --write",
Expand All @@ -38,8 +37,9 @@
"commit-msg": "pnpm commitlint --edit $1"
},
"engines": {
"node": ">=18"
"node": ">=20.11"
},
"packageManager": "[email protected]",
"peerDependencies": {
"msw": "^1.2.1"
},
Expand All @@ -49,32 +49,31 @@
"@open-draft/test-server": "^0.5.1",
"@types/compression": "^1.7.1",
"@types/node": "18",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"compression": "^1.7.4",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jsdom": "^22.1.0",
"lint-staged": "^10.5.3",
"msw": "^1.2.1",
"playwright": "^1.34.3",
"prettier": "^2.8.8",
"rimraf": "^3.0.2",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"simple-git-hooks": "^2.8.1",
"ts-node": "^10.9.1",
"tslib": "^2.3.1",
"tsup": "^5.11.13",
"typescript": "^5.1.3",
"vitest": "^0.32.0"
"tsup": "^8.0.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.0.2",
"@types/faker": "^5.5.9",
"@types/har-format": "^1.2.7",
"@types/set-cookie-parser": "^2.4.2",
"faker": "5.x",
"headers-utils": "^3.0.2",
"openapi-types": "^7.2.3",
"outvariant": "^1.2.1",
"randexp": "^0.5.3",
Expand Down
Loading

0 comments on commit 11a9ad6

Please sign in to comment.