diff --git a/package.json b/package.json index 176b15d6..31260b8f 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,6 @@ "cross-spawn": "^7.0.3", "find-yarn-workspace-root": "^2.0.0", "fs-extra": "^10.0.0", - "json-stable-stringify": "^1.0.2", "klaw-sync": "^6.0.0", "minimist": "^1.2.6", "open": "^7.4.2", diff --git a/src/stateFile.ts b/src/stateFile.ts index 7aea576d..75479ae6 100644 --- a/src/stateFile.ts +++ b/src/stateFile.ts @@ -1,7 +1,6 @@ import { existsSync, readFileSync, unlinkSync, writeFileSync } from "fs" import { join } from "path" import { PackageDetails } from "./PackageDetails" -import stringify from "json-stable-stringify" import { hashFile } from "./hash" import chalk from "chalk" export interface PatchState { @@ -59,7 +58,7 @@ export function savePatchApplicationState({ isRebasing, } - writeFileSync(fileName, stringify(state, { space: 4 }), "utf8") + writeFileSync(fileName, JSON.stringify(state, null, 4), "utf8") } export function clearPatchApplicationState(packageDetails: PackageDetails) { diff --git a/yarn.lock b/yarn.lock index fa92afe3..02c33c7b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2468,13 +2468,6 @@ json-schema@0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" -json-stable-stringify@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.2.tgz#e06f23128e0bbe342dc996ed5a19e28b57b580e0" - integrity sha512-eunSSaEnxV12z+Z73y/j5N37/In40GK4GmsSy+tEHJMxknvqnA7/djeYtAgW0GsWHUfg+847WJjKaEylk2y09g== - dependencies: - jsonify "^0.0.1" - json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" @@ -2495,11 +2488,6 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" -jsonify@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.1.tgz#2aa3111dae3d34a0f151c63f3a45d995d9420978" - integrity sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg== - jsprim@^1.2.2: version "1.4.0" resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918"