From 21c2d12bcc1102024f496c8a3a4ec88bde3ac8d7 Mon Sep 17 00:00:00 2001 From: Kevin Goslar Date: Tue, 6 Oct 2020 15:36:03 -0500 Subject: [PATCH] fix: Add ory-prettier-styles to main repo (#744) --- package-lock.json | 6 ++++++ package.json | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 3bed804c263e..3b83a8ca9ef9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2020,6 +2020,12 @@ "integrity": "sha512-Xk3hsB0PzB4dzr/r/FdmK+VfQbZH7lQQ2iipMS1/1eoz1wUvh5R7rmOakYvw0bQJJE6PYrOLx8UHsYmzgTr+YQ==", "dev": true }, + "ory-prettier-styles": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ory-prettier-styles/-/ory-prettier-styles-1.0.1.tgz", + "integrity": "sha512-YIJMrd5K2LzxoC01n3sNgsNa1u4IRBdWpE5bTlKqFy+kTtQy8pCv0JKw8wXwpdHfkOIeXt4wcVM3zYGRlmPGbQ==", + "dev": true + }, "os-locale": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", diff --git a/package.json b/package.json index 2d405c8ad2f3..7e64f32c7100 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,12 @@ { "private": true, + "prettier": "ory-prettier-styles", + "consts": { + "prettierTarget": "test/e2e/cypress/**/*.js" + }, "scripts": { - "format": "prettier --no-semi --single-quote --trailing-comma es5 --write \"test/e2e/cypress/**/*.js\"", + "format": "prettier --write ${npm_package_consts_prettierTarget}", + "format:check": "prettier --check ${npm_package_consts_prettierTarget}", "test": "cypress run", "test:watch": "cypress open", "wait-on": "wait-on" @@ -9,6 +14,7 @@ "devDependencies": { "cypress": "4.5.0", "openapi-generator": "^0.1.36", + "ory-prettier-styles": "^1.0.1", "prettier": "2.0.4", "wait-on": "4.0.2" }