@moneko/core 3.26.10 → 3.26.11
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.
- package/lib/bin/stylelint.mjs +1 -1
- package/package.json +1 -1
package/lib/bin/stylelint.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{relative as
|
|
1
|
+
import{relative as e}from"node:path";import{argv as s}from"node:process";import{ink as t,print as r}from"@moneko/utils";import o from"stylelint";import{cachePath as i,cwd as c,parseBraced as l}from"./utils/config.mjs";export default async function n(){let n=t("stylelint","cyan");r(`${n}: ${t("Runing...","yellow")}`,!0);let a=s[3],f=s.slice(4),m=f.includes("--fix"),p=await o.lint({files:l(a).map(s=>e(c,`${s}/**/*.{css,scss,sass,less,ts,tsx,js,jsx}`).replace(/\\/g,"/")),fix:m,cache:!f.includes("--cache=false"),cacheLocation:`${i}/.stylelintcache`,formatter:"string"}),u=p.errored;p.report&&process.stdout.write(p.report),r(`${n}: ${t(`✨ ${u?"Error":"Successfully"}!
|
|
2
2
|
`,u?"red":"green")}`,!0),u&&process.exit(1)}
|