From 280dc9c8644488723dedc72377558572b08438d8 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Wed, 15 Dec 2021 00:05:14 +0900 Subject: [PATCH] feat(init): rename prettier scripts BREAKING CHANGE: `npm run prettier:*` scripts are no longer supported. --- package.json | 8 ++++---- test/__snapshots__/init.test.js.snap | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 1efcaee6..8b675fd3 100644 --- a/package.json +++ b/package.json @@ -65,11 +65,11 @@ "lint:md:fix": "remark . --output", "lint:types": "tsc --noEmit", "lint:types:watch": "npm run lint:types -- --watch", - "lint": "npm-run-all --print-label --parallel lint:* prettier:check", + "lint": "npm-run-all --print-label --parallel lint:*", "prettier": "prettier --ignore-path .gitignore .", - "prettier:check": "npm run prettier -- --check", - "prettier:write": "npm run prettier -- --write", - "format": "npm-run-all --print-label --parallel lint:*:fix prettier:write", + "lint:styles": "npm run prettier -- --check", + "lint:styles:fix": "npm run prettier -- --write", + "format": "npm-run-all --print-label --parallel lint:*:fix", "clean": "git clean -dx --force --exclude=node_modules --exclude=.husky", "prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean", "release": "standard-version", diff --git a/test/__snapshots__/init.test.js.snap b/test/__snapshots__/init.test.js.snap index 76d17507..f5381b3d 100644 --- a/test/__snapshots__/init.test.js.snap +++ b/test/__snapshots__/init.test.js.snap @@ -39,19 +39,19 @@ Object { }, "scripts": Object { "clean": "git clean -dx --force --exclude=node_modules --exclude=.husky", - "format": "npm-run-all --print-label --parallel lint:*:fix prettier:write", - "lint": "npm-run-all --print-label --parallel lint:* prettier:check", + "format": "npm-run-all --print-label --parallel lint:*:fix", + "lint": "npm-run-all --print-label --parallel lint:*", "lint:js": "eslint --cache --ext=js,jsx,cjs,mjs,ts,tsx .", "lint:js:fix": "npm run lint:js -- --fix", "lint:md": "remark . --frail", "lint:md:fix": "remark . --output", + "lint:styles": "npm run prettier -- --check", + "lint:styles:fix": "npm run prettier -- --write", "lint:types": "tsc --noEmit", "lint:types:watch": "npm run lint:types -- --watch", "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", - "prettier:write": "npm run prettier -- --write", "release": "standard-version", "release:dry-run": "standard-version --dry-run", "test": "abc", @@ -105,19 +105,19 @@ Object { }, "scripts": Object { "clean": "git clean -dx --force --exclude=node_modules --exclude=.husky", - "format": "npm-run-all --print-label --parallel lint:*:fix prettier:write", - "lint": "npm-run-all --print-label --parallel lint:* prettier:check", + "format": "npm-run-all --print-label --parallel lint:*:fix", + "lint": "npm-run-all --print-label --parallel lint:*", "lint:js": "eslint --cache --ext=js,jsx,cjs,mjs,ts,tsx .", "lint:js:fix": "npm run lint:js -- --fix", "lint:md": "remark . --frail", "lint:md:fix": "remark . --output", + "lint:styles": "npm run prettier -- --check", + "lint:styles:fix": "npm run prettier -- --write", "lint:types": "tsc --noEmit", "lint:types:watch": "npm run lint:types -- --watch", "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", - "prettier:write": "npm run prettier -- --write", "release": "standard-version", "release:dry-run": "standard-version --dry-run", "test": "test",