Skip to content

Commit

Permalink
chore: order package.json properties more sensibly
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Aug 28, 2024
1 parent bfcbf25 commit 66e4ffc
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 82 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fetch-mock-monorepo",
"version": "1.0.0",
"description": "Mock http requests made using fetch (or isomorphic-fetch)",
"version": "1.0.0",
"type": "module",
"repository": {
"type": "git",
Expand Down
56 changes: 28 additions & 28 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
{
"author": "Rhys Evans",
"bugs": {
"url": "https://github.com/wheresrhys/fetch-mock/issues"
},
"dependencies": {
"@types/glob-to-regexp": "^0.4.4",
"dequal": "^2.0.3",
"glob-to-regexp": "^0.4.1",
"is-subset-of": "^3.1.10",
"regexparam": "^3.0.0"
},
"name": "@fetch-mock/core",
"description": "Mock http requests made using fetch",
"engines": {
"node": ">=18.0.0"
},
"version": "0.6.1",
"exports": {
"browser": "./dist/esm/index.js",
"import": {
Expand All @@ -25,19 +13,20 @@
"types": "./dist/cjs/index.d.ts"
}
},
"homepage": "https://github.com/wheresrhys/fetch-mock#readme",
"keywords": [
"fetch",
"http",
"mock",
"testing",
"spy",
"stub"
],
"license": "MIT",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"name": "@fetch-mock/core",
"types": "./dist/esm/index.d.ts",
"type": "module",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@types/glob-to-regexp": "^0.4.4",
"dequal": "^2.0.3",
"glob-to-regexp": "^0.4.1",
"is-subset-of": "^3.1.10",
"regexparam": "^3.0.0"
},
"repository": {
"directory": "packages/core",
"type": "git",
Expand All @@ -46,7 +35,18 @@
"scripts": {
"build": "rm -rf dist && tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && node ../../scripts/declare-dist-type.js"
},
"type": "module",
"types": "./dist/esm/index.d.ts",
"version": "0.6.1"
"license": "MIT",
"author": "Rhys Evans",
"bugs": {
"url": "https://github.com/wheresrhys/fetch-mock/issues"
},
"homepage": "http://www.wheresrhys.co.uk/fetch-mock",
"keywords": [
"fetch",
"http",
"mock",
"testing",
"spy",
"stub"
]
}
56 changes: 28 additions & 28 deletions packages/fetch-mock/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
{
"author": "Rhys Evans",
"bugs": {
"url": "https://github.com/wheresrhys/fetch-mock/issues"
},
"dependencies": {
"@types/glob-to-regexp": "^0.4.4",
"dequal": "^2.0.3",
"glob-to-regexp": "^0.4.1",
"is-subset": "^0.1.1",
"regexparam": "^3.0.0"
},
"name": "fetch-mock",
"description": "Mock http requests made using fetch",
"engines": {
"node": ">=8.0.0"
},
"version": "11.1.2",
"exports": {
"browser": "./dist/esm/index.js",
"import": {
Expand All @@ -25,19 +13,20 @@
"types": "./dist/cjs/types/index.d.ts"
}
},
"homepage": "http://www.wheresrhys.co.uk/fetch-mock",
"keywords": [
"fetch",
"http",
"mock",
"testing",
"spy",
"stub"
],
"license": "MIT",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"name": "fetch-mock",
"types": "./dist/esm/types/index.d.ts",
"type": "module",
"engines": {
"node": ">=8.0.0"
},
"dependencies": {
"@types/glob-to-regexp": "^0.4.4",
"dequal": "^2.0.3",
"glob-to-regexp": "^0.4.1",
"is-subset": "^0.1.1",
"regexparam": "^3.0.0"
},
"peerDependenciesMeta": {
"node-fetch": {
"optional": true
Expand All @@ -52,7 +41,18 @@
"build": "rm -rf dist && rollup -c --environment FORMAT:cjs && rollup -c --environment FORMAT:esm",
"types:check": "tsd -t types/index.d.ts -f types/index.test-d.ts"
},
"type": "module",
"types": "./dist/esm/types/index.d.ts",
"version": "11.1.2"
"license": "MIT",
"author": "Rhys Evans",
"bugs": {
"url": "https://github.com/wheresrhys/fetch-mock/issues"
},
"homepage": "http://www.wheresrhys.co.uk/fetch-mock",
"keywords": [
"fetch",
"http",
"mock",
"testing",
"spy",
"stub"
]
}
50 changes: 25 additions & 25 deletions packages/vitest/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,23 @@
{
"author": "",
"bugs": {
"url": "https://github.com/wheresrhys/fetch-mock/issues"
},
"dependencies": {
"@fetch-mock/core": "^0.6.0"
},
"name": "@fetch-mock/vitest",
"description": "Vitest wrapper for fetch-mock",
"engines": {
"node": ">=18.0.0"
},
"version": "0.1.0",
"exports": {
"browser": "./src/index.js",
"import": "./src/index.js",
"require": "./dist/commonjs.js",
"types": "./types/index.d.ts"
},
"homepage": "http://www.wheresrhys.co.uk/fetch-mock",
"keywords": [
"fetch",
"http",
"mock",
"testing",
"spy",
"stub",
"vitest"
],
"license": "ISC",
"main": "./dist/commonjs.js",
"module": "./src/index.js",
"name": "@fetch-mock/vitest",
"types": "./types/index.d.ts",
"type": "module",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@fetch-mock/core": "^0.6.0"
},
"repository": {
"directory": "packages/vitest",
"type": "git",
Expand All @@ -38,7 +26,19 @@
"scripts": {
"build": "rm -rf dist && tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && node ../../scripts/declare-dist-type.js"
},
"type": "module",
"types": "./types/index.d.ts",
"version": "0.1.0"
"license": "MIT",
"author": "Rhys Evans",
"bugs": {
"url": "https://github.com/wheresrhys/fetch-mock/issues"
},
"homepage": "http://www.wheresrhys.co.uk/fetch-mock",
"keywords": [
"fetch",
"http",
"mock",
"testing",
"spy",
"stub",
"vitest"
]
}

0 comments on commit 66e4ffc

Please sign in to comment.