diff --git a/package-lock.json b/package-lock.json index f023a2d9..6de7fc55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,6 @@ "packages": { "": { "version": "11.7.0", - "hasInstallScript": true, "license": "MIT", "dependencies": { "@commitlint/cli": "^12.0.0", @@ -15,7 +14,6 @@ "husky": "^5.1.1", "lint-staged": "^10.4.0", "npm-run-all": "^4.1.5", - "pinst": "^2.1.6", "prettier": "^2.1.2", "remark-cli": "^9.0.0", "remark-lint-no-heading-punctuation": "^2.0.1", @@ -5973,11 +5971,6 @@ "node": ">=0.10.0" } }, - "node_modules/fromentries": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz", - "integrity": "sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==" - }, "node_modules/fs-access": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz", @@ -11395,20 +11388,6 @@ "node": ">=0.10.0" } }, - "node_modules/pinst": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/pinst/-/pinst-2.1.6.tgz", - "integrity": "sha512-B4dYmf6nEXg1NpDSB+orYWvKa5Kfmz5KzWC29U59dpVM4S/+xp0ak/JMEsw04UQTNNKps7klu0BUalr343Gt9g==", - "dependencies": { - "fromentries": "^1.3.2" - }, - "bin": { - "pinst": "bin.js" - }, - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/pirates": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz", @@ -19503,11 +19482,6 @@ "map-cache": "^0.2.2" } }, - "fromentries": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz", - "integrity": "sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==" - }, "fs-access": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz", @@ -23759,14 +23733,6 @@ "pinkie": "^2.0.0" } }, - "pinst": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/pinst/-/pinst-2.1.6.tgz", - "integrity": "sha512-B4dYmf6nEXg1NpDSB+orYWvKa5Kfmz5KzWC29U59dpVM4S/+xp0ak/JMEsw04UQTNNKps7klu0BUalr343Gt9g==", - "requires": { - "fromentries": "^1.3.2" - } - }, "pirates": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz", diff --git a/package.json b/package.json index 04cdd106..923d713b 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "husky": "^5.1.1", "lint-staged": "^10.4.0", "npm-run-all": "^4.1.5", - "pinst": "^2.1.6", "prettier": "^2.1.2", "remark-cli": "^9.0.0", "remark-lint-no-heading-punctuation": "^2.0.1", @@ -73,13 +72,11 @@ "prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean", "release": "standard-version", "release:dry-run": "standard-version --dry-run", - "postinstall": "husky install", - "prepublishOnly": "pinst --disable", - "postpublish": "pinst --enable" + "prepare": "husky install" }, "lint-staged": { "*.{js,jsx,mjs,ts,tsx}": "eslint --fix", - "!(*.snap|.husky/**)": "prettier --write", + "!(*.snap)": "prettier --write", "!(CHANGELOG).md": "remark --frail" }, "standard-version": { diff --git a/test/__snapshots__/init.test.js.snap b/test/__snapshots__/init.test.js.snap index 4c012928..3718ae1f 100644 --- a/test/__snapshots__/init.test.js.snap +++ b/test/__snapshots__/init.test.js.snap @@ -21,7 +21,7 @@ Object { "root": true, }, "lint-staged": Object { - "!(*.snap|.husky/**)": "prettier --write", + "!(*.snap)": "prettier --write", "!(CHANGELOG).md": "remark --frail", "*.css": "xyz", "*.{js,jsx,mjs,ts,tsx}": "eslint --fix", @@ -50,9 +50,7 @@ Object { "lint:md": "remark . --frail", "lint:md:fix": "remark . --output", "lint:types": "tsc --noEmit", - "postinstall": "husky install", - "postpublish": "pinst --enable", - "prepublishOnly": "pinst --disable", + "prepare": "husky install", "prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean", "prettier": "prettier --ignore-path .gitignore .", "prettier:check": "npm run prettier -- --check", @@ -93,7 +91,7 @@ Object { "root": true, }, "lint-staged": Object { - "!(*.snap|.husky/**)": "prettier --write", + "!(*.snap)": "prettier --write", "!(CHANGELOG).md": "remark --frail", "*.{js,jsx,mjs,ts,tsx}": "eslint --fix", }, @@ -121,9 +119,7 @@ Object { "lint:md": "remark . --frail", "lint:md:fix": "remark . --output", "lint:types": "tsc --noEmit", - "postinstall": "husky install", - "postpublish": "pinst --enable", - "prepublishOnly": "pinst --disable", + "prepare": "husky install", "prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean", "prettier": "prettier --ignore-path .gitignore .", "prettier:check": "npm run prettier -- --check",