From 66e4ffc5ff6f5ff2bba992c2dceb8150b282a5cf Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Wed, 28 Aug 2024 21:09:06 +0100 Subject: [PATCH] chore: order package.json properties more sensibly --- package.json | 2 +- packages/core/package.json | 56 ++++++++++++++++---------------- packages/fetch-mock/package.json | 56 ++++++++++++++++---------------- packages/vitest/package.json | 50 ++++++++++++++-------------- 4 files changed, 82 insertions(+), 82 deletions(-) diff --git a/package.json b/package.json index 4e2f7703..ca99dacc 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/core/package.json b/packages/core/package.json index e3b6827c..c7a48fe1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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": { @@ -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", @@ -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" + ] } diff --git a/packages/fetch-mock/package.json b/packages/fetch-mock/package.json index 15aec0f6..0ea993e8 100644 --- a/packages/fetch-mock/package.json +++ b/packages/fetch-mock/package.json @@ -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": { @@ -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 @@ -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" + ] } diff --git a/packages/vitest/package.json b/packages/vitest/package.json index e7cc21e6..b4247437 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -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", @@ -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" + ] }