@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.
- package/lib/bin/git-hooks.d.mts +1 -0
- package/lib/bin/git-hooks.mjs +2 -2
- package/package.json +3 -2
package/lib/bin/git-hooks.d.mts
CHANGED
package/lib/bin/git-hooks.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{spawn as o}from"node:child_process";import{argv as e}from"node:process";import{ink as
|
|
2
|
-
`,
|
|
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.
|
|
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
|
-
|
|
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",
|