@moneko/core 3.42.1 → 3.42.2-beta.1
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/lib/process-env.mjs +1 -1
- 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/lib/process-env.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{platform as o}from"node:process";import
|
|
1
|
+
import{platform as o}from"node:process";import e from"./commom/has-pkg.mjs";import r from"./commom/is-ci-environment.mjs";import s from"./commom/require.mjs";export const IS_WINDOW="win32"===o;export const APPTYPE=process.env.APPTYPE;export const FRAMEWORK=process.env.FRAMEWORK;export const NODE_ENV=process.env.NODE_ENV;export const isLibrary="library"===APPTYPE;export const isMicro="micro"===APPTYPE;export const isMobile="mobile"===APPTYPE;export const isReact="react"===FRAMEWORK;export const isSolid="solid"===FRAMEWORK;export const SSR="true"===process.env.SSR;export const mainDirectory=isLibrary?"site":"src";export const jsxImportSource={react:"react",solid:"solid-js/h"}[FRAMEWORK];export const framework={react:"react",solid:"solid-js"}[FRAMEWORK];export const frameworkVersionStr=s([framework,"package.json"].filter(Boolean).join("/")).version;export const frameworkVersion=parseFloat(frameworkVersionStr);export const packageJson=s(`${process.cwd()}/package.json`);delete packageJson.scripts;export const PACKAGENAME=packageJson.name;export const coreName="@moneko/core";export const isDev="development"===NODE_ENV;export const refresh=!!(isDev&&(e("solid-refresh")||e("react-refresh")));export const isCI=r();
|
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.1",
|
|
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",
|