@moneko/core 3.42.1 → 3.42.2-beta.0

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,4 +1,5 @@
1
1
  import { spawn } from 'node:child_process';
2
2
  import { argv } from 'node:process';
3
3
  import { ink, print } from '@moneko/utils';
4
+ import husky from 'husky';
4
5
  export default function githooks();
@@ -1,2 +1,2 @@
1
- import{spawn as o}from"node:child_process";import{argv as e}from"node:process";import{ink as i,print as l}from"@moneko/utils";export default function s(){let s=i("githooks","cyan");l(`${s}: ${i("Runing...","yellow")}`,!0);let t="node_modules/.husky",n=e.slice(3).map(o=>{let e=o.split("=");return`echo ${e[1]} > ${t}/${e[0]}`}).join(" && ");o(`git init && git config core.ignorecase false && husky ${t} && ${n}`,{stdio:[null],shell:!0}).on("close",function(o){let e=0!==o;l(`${s}: ${i(`✨ ${e?"Error":"Successfully"}!
2
- `,e?"red":"green")}`,!0),process.exit(o)})}
1
+ import{spawn as o}from"node:child_process";import{argv as e}from"node:process";import{ink as l,print as i}from"@moneko/utils";import n from"husky";export default function t(){let t=l("Git init","cyan"),s=o=>l(`✨ ${o?"Error":"Successfully"}!
2
+ `,o?"red":"green");i(`${t}: ${l("Runing...","yellow")}`,!0),o("git init && git config core.ignorecase false",{stdio:[null],shell:!0}).on("close",function(r){i(`${t}: ${s(0!==r)}`,!0);let c=l("Git hooks","cyan");i(`${c}: ${l("Runing...","yellow")}`,!0);let u="node_modules/.husky";n(u);let $=e.slice(3).map(o=>{let e=o.split("=");return`echo ${e[1]} > ${u}/${e[0]}`}).join(" && ");o(`${$}`,{stdio:[null],shell:!0}).on("close",function(o){i(`${c}: ${s(0!==o)}`,!0),process.exit(o)})})}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "3.42.1",
3
+ "version": "3.42.2-beta.0",
4
4
  "description": "core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",
@@ -93,7 +93,7 @@
93
93
  "default": "./lib/lint/stylelint/config.mjs"
94
94
  }
95
95
  },
96
- "./package.json": "./package.json"
96
+ "./package.json": "./package.json"
97
97
  },
98
98
  "keywords": [
99
99
  "moneko",
@@ -120,6 +120,7 @@
120
120
  "core-js": "3.41.0",
121
121
  "core-js-compat": "3.41.0",
122
122
  "fastify": "4.29.0",
123
+ "husky": "9.1.7",
123
124
  "less": "4.3.0",
124
125
  "less-loader": "12.2.0",
125
126
  "lightningcss": "1.29.3",