@moneko/core 4.8.6 → 4.8.7

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.
@@ -1,2 +1,2 @@
1
- import{spawn as o}from"node:child_process";import{argv as e,exit as l}from"node:process";import{ink as n,print as i}from"@moneko/utils";import t from"husky";export default function s(){let s=n("Git init","cyan"),r=o=>n(`✨ ${o?"Error":"Successfully"}!
2
- `,o?"red":"green");i(`${s}: ${n("Runing...","yellow")}`,!0),o("git init && git config core.ignorecase false",{stdio:[null],shell:!0}).on("close",function(c){i(`${s}: ${r(0!==c)}`,!0);let u=n("Git hooks","cyan");i(`${u}: ${n("Runing...","yellow")}`,!0);let $="node_modules/.husky";t($);let f=e.slice(3).map(o=>{let e=o.split("=");return`echo ${e[1]} > ${$}/${e[0]}`}).join(" && ");o(`${f}`,{stdio:[null],shell:!0}).on("close",function(o){i(`${u}: ${r(0!==o)}`,!0),l(o)})})}
1
+ import{spawn as e}from"node:child_process";import{argv as o,exit as l}from"node:process";import{ink as n,print as i,saveFileSync as t}from"@moneko/utils";import r from"husky";export default function s(){let s=n("Git init","cyan"),c=e=>n(`✨ ${e?"Error":"Successfully"}!
2
+ `,e?"red":"green");i(`${s}: ${n("Runing...","yellow")}`,!0),e("git init && git config core.ignorecase false",{stdio:[null],shell:!0}).on("close",function(e){i(`${s}: ${c(0!==e)}`,!0);let u=n("Git hooks","cyan");i(`${u}: ${n("Runing...","yellow")}`,!0);let m="node_modules/.husky";r(m);let $=o.slice(3).map(e=>{let o=e.split("=");return t(`${m}/${o[0]}`,o[1].replace(/\\n/g,"\n"))}).every(e=>!!e);i(`${u}: ${c(!$)}`,!0),l(+!$)})}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "4.8.6",
3
+ "version": "4.8.7",
4
4
  "description": "@moneko/core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",
@@ -139,7 +139,7 @@
139
139
  "@moneko/stylelint": "1.8.3",
140
140
  "@moneko/transform-imports": "1.5.0",
141
141
  "@moneko/utils": "0.3.3",
142
- "@swc/core": "1.15.30",
142
+ "@swc/core": "1.15.33",
143
143
  "browserslist": "4.28.2",
144
144
  "core-js": "3.49.0",
145
145
  "core-js-compat": "3.49.0",