From 85ad11ae63096e5e2a58babfd887594fd41eed14 Mon Sep 17 00:00:00 2001 From: wangxingkang <156148958@qq.com> Date: Fri, 29 Nov 2019 02:37:50 +0800 Subject: [PATCH] chore: test --- package.json | 2 +- packages/walrus-plugin-prettier/src/default-config.ts | 1 + packages/walrus-plugin-prettier/src/prettier.ts | 2 +- packages/walrus-shared-utils/src/logger.ts | 2 -- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e752661..5fd4ffa 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test": "node ./packages/walrus-cli/lib/cli.js test", "lint": "node ./packages/walrus-cli/lib/cli.js lint", "lint:style": "node ./packages/walrus-cli/lib/cli.js stylelint", - "prettier": "node ./packages/walrus-cli/lib/cli.js prettier --staged", + "prettier": "node ./packages/walrus-cli/lib/cli.js prettier", "commitlint": "node ./packages/walrus-cli/lib/cli.js commitlint --env HUSKY_GIT_PARAMS", "release": "node ./packages/walrus-cli/lib/cli.js release" }, diff --git a/packages/walrus-plugin-prettier/src/default-config.ts b/packages/walrus-plugin-prettier/src/default-config.ts index 7fe1a38..d04797d 100644 --- a/packages/walrus-plugin-prettier/src/default-config.ts +++ b/packages/walrus-plugin-prettier/src/default-config.ts @@ -2,6 +2,7 @@ import { PluginPrettierOptions } from '@walrus/types'; import { join } from 'path'; const defaultOptions: PluginPrettierOptions = { + staged: true, config: join(__dirname, 'prettier.config.js') }; diff --git a/packages/walrus-plugin-prettier/src/prettier.ts b/packages/walrus-plugin-prettier/src/prettier.ts index 868a585..4eece95 100644 --- a/packages/walrus-plugin-prettier/src/prettier.ts +++ b/packages/walrus-plugin-prettier/src/prettier.ts @@ -13,7 +13,7 @@ import processFiles from './process-files'; const prettier = (currentDirectory: string, options: PluginPrettierOptions = {}) => { const scm = scms(currentDirectory); const { - staged = true, + staged, branch, since, check, diff --git a/packages/walrus-shared-utils/src/logger.ts b/packages/walrus-shared-utils/src/logger.ts index 86f2496..c351d0a 100644 --- a/packages/walrus-shared-utils/src/logger.ts +++ b/packages/walrus-shared-utils/src/logger.ts @@ -64,6 +64,4 @@ class Logger { }; } -const test = 131313; - export default Logger;