@10stars/config 15.0.2 → 15.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10stars/config",
3
- "version": "15.0.2",
3
+ "version": "15.0.4",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "config": "./src/index.ts"
package/src/index.ts CHANGED
@@ -23,8 +23,9 @@ const getConfig = async (): Promise<Config | null> =>
23
23
  const getOxlintCommonCmd = async () => {
24
24
  const isMonorepo = await checkIsMonorepo(cwd)
25
25
  const paths = [`src`, `scripts`, `.`].map((p) => (isMonorepo ? `*/${p}` : p)).join(` `)
26
+ const quiet = process.env.CI ? `--quiet` : `` // no logs for warnings https://oxc.rs/docs/guide/usage/linter/cli.html#handle-warnings
26
27
  // Use standard oxlint which picks up localized .oxlintrc.json if present, or defaults
27
- return `${paths} --ignore-pattern '**/node_modules/**' --ignore-pattern '**/dist/**'`
28
+ return `${paths} ${quiet} --ignore-pattern '**/node_modules/**' --ignore-pattern '**/dist/**'`
28
29
  }
29
30
 
30
31
  const typecheckAndWatch = () => exec(`tsc --project ./tsconfig.json --noEmit --watch`)
@@ -54,11 +55,11 @@ const actions = {
54
55
  action: typecheckAndWatch,
55
56
  },
56
57
  typecheck: {
57
- info: `Typecheck code (once)`,
58
+ info: `Typecheck code (no watch)`,
58
59
  action: () => exec(`tsc --project ./tsconfig.json --noEmit`),
59
60
  },
60
61
  lint: {
61
- info: `Lint code (once)`,
62
+ info: `Format & Lint code (no watch)`,
62
63
  action: async () => exec(`oxfmt && oxlint --fix --type-aware ${await getOxlintCommonCmd()}`),
63
64
  },
64
65
  precommit: {