@moneko/core 3.49.1 → 3.50.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/help.d.mts +82 -0
- package/lib/bin/help.mjs +7 -33
- package/lib/bin/index.mjs +1 -1
- package/lib/bin/setup.d.mts +5 -0
- package/lib/bin/setup.mjs +1 -0
- package/lib/commom/check-npm.d.mts +4 -0
- package/lib/commom/check-npm.mjs +1 -0
- package/lib/commom/corepack.d.mts +12 -0
- package/lib/commom/corepack.mjs +1 -0
- package/lib/config.mjs +1 -1
- package/lib/module.config.d.mts +1 -1
- package/package.json +3 -2
- package/typings/global.d.ts +4 -0
package/lib/bin/help.d.mts
CHANGED
|
@@ -1,3 +1,85 @@
|
|
|
1
1
|
import { ink, println } from '@moneko/utils';
|
|
2
|
+
declare const commands: readonly [{
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly description: string;
|
|
5
|
+
readonly args: string;
|
|
6
|
+
readonly arguments: readonly [{
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly description: string;
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly description: string;
|
|
12
|
+
}];
|
|
13
|
+
}, {
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly description: string;
|
|
16
|
+
readonly args: string;
|
|
17
|
+
readonly arguments: readonly [{
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly description: string;
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: string;
|
|
22
|
+
readonly description: string;
|
|
23
|
+
}];
|
|
24
|
+
}, {
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly description: string;
|
|
27
|
+
readonly args: string;
|
|
28
|
+
readonly arguments: readonly [{
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly description: string;
|
|
31
|
+
}];
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: string;
|
|
34
|
+
readonly description: string;
|
|
35
|
+
readonly args: string;
|
|
36
|
+
readonly arguments: readonly [{
|
|
37
|
+
readonly name: string;
|
|
38
|
+
readonly description: string;
|
|
39
|
+
}];
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: string;
|
|
42
|
+
readonly description: string;
|
|
43
|
+
readonly args: string;
|
|
44
|
+
readonly arguments: readonly [{
|
|
45
|
+
readonly name: string;
|
|
46
|
+
readonly description: string;
|
|
47
|
+
}];
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: string;
|
|
50
|
+
readonly description: string;
|
|
51
|
+
readonly args: string;
|
|
52
|
+
readonly arguments: readonly [{
|
|
53
|
+
readonly name: string;
|
|
54
|
+
readonly description: string;
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: string;
|
|
57
|
+
readonly description: string;
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: string;
|
|
60
|
+
readonly description: string;
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: string;
|
|
63
|
+
readonly description: string;
|
|
64
|
+
}];
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: string;
|
|
67
|
+
readonly description: string;
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: string;
|
|
70
|
+
readonly description: string;
|
|
71
|
+
readonly args: string;
|
|
72
|
+
readonly arguments: readonly [{
|
|
73
|
+
readonly name: string;
|
|
74
|
+
readonly description: string;
|
|
75
|
+
}];
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: string;
|
|
78
|
+
readonly description: string;
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: string;
|
|
81
|
+
readonly description: string;
|
|
82
|
+
}];
|
|
83
|
+
declare const examples: readonly [readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string], readonly [string, string, string, string]];
|
|
2
84
|
declare function printHelp();
|
|
3
85
|
export default printHelp;
|
package/lib/bin/help.mjs
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
|
-
import{ink as e,println as
|
|
2
|
-
${e("
|
|
3
|
-
|
|
4
|
-
${e("命令列表:","white")}
|
|
5
|
-
${e("start","green")} ${e("<type> <framework>","208")} 启动开发服务器
|
|
6
|
-
${e("type: ","245",{bold:!0})}${e(r,"245",{italic:!0})}
|
|
7
|
-
${e("framework: ","245",{bold:!0})}${e(l,"245",{italic:!0})}
|
|
8
|
-
|
|
9
|
-
${e("build","green")} ${e("<type> <framework>","208")} 构建生产环境应用
|
|
10
|
-
${e("type: ","245",{bold:!0})}${e(r,"245")}
|
|
11
|
-
${e("framework: ","245",{bold:!0})}${e(l,"245",{italic:!0})}
|
|
12
|
-
|
|
13
|
-
${e("eslint","green")} ${e("<source_path>","208")} 执行代码规范检查
|
|
14
|
-
${e("source_path: ","245",{bold:!0})}${e("要检查的文件或目录路径","245",{italic:!0})}
|
|
15
|
-
|
|
16
|
-
${e("stylelint","green")} ${e("<source_path>","208")} 执行样式规范检查
|
|
17
|
-
${e("source_path: ","245",{bold:!0})}${e("要检查的文件或目录路径","245",{italic:!0})}
|
|
18
|
-
|
|
19
|
-
${e("pin","green")} ${e("[-u]","208")} 检查过时依赖
|
|
20
|
-
${e("-u: ","245",{bold:!0})}${e("写入更新到 package.json 中","245",{italic:!0})}
|
|
21
|
-
|
|
22
|
-
${e("githooks","green")} 配置 Git 钩子以自动化工作流
|
|
23
|
-
|
|
24
|
-
${e("buildApp","green")} 将资产打包成App
|
|
25
|
-
|
|
26
|
-
${e("changelog","green")} ${e("<filename>","208")} 生成项目变更日志
|
|
27
|
-
${e("filename: ","245",{bold:!0})}${e("输出的文件名","245",{italic:!0})}
|
|
1
|
+
import{ink as e,println as t}from"@moneko/utils";let n=[{name:"start",description:"启动开发服务器",args:"<type> <framework>",arguments:[{name:"type",description:"backstage | library | site | micro | mobile"},{name:"framework",description:"react | solid | vue"}]},{name:"build",description:"构建生产环境应用",args:"<type> <framework>",arguments:[{name:"type",description:"backstage | library | site | micro | mobile"},{name:"framework",description:"react | solid | vue"}]},{name:"eslint",description:"执行代码规范检查",args:"<source_path>",arguments:[{name:"source_path",description:"要检查的文件或目录路径"}]},{name:"stylelint",description:"执行样式规范检查",args:"<source_path>",arguments:[{name:"source_path",description:"要检查的文件或目录路径"}]},{name:"changelog",description:"生成项目变更日志",args:"<filename>",arguments:[{name:"filename",description:"输出的文件名"}]},{name:"server",description:"启动静态资源服务器",args:"[port] [root_dir] [https] [host]",arguments:[{name:"port",description:"number"},{name:"root_dir",description:"string"},{name:"https",description:"boolean"},{name:"host",description:"string"}]},{name:"setup",description:"设置一些默认行为; 比如开启 corepack、支持npm执行pre、post脚本等"},{name:"pin",description:"检查过时依赖",args:"[-u]",arguments:[{name:"-u",description:"写入更新到 package.json 中"}]},{name:"githooks",description:"配置 Git 钩子以自动化工作流"},{name:"buildApp",description:"将资产打包成App"}],r=[["mo","start","library react","# 启动开发服务器"],["mo","build","library react","# 构建生产版本"],["mo","eslint","components --fix","# 检查并修复components目录下的代码"],["mo","stylelint","src","# 检查src目录下的样式文件"],["mo","changelog","CHANGELOG.md","# 生成变更日志,输出到 CHANGELOG.md"],["mo","server","port=8080 root_dir=./dist","# 启动静态资源服务器,端口8080,根目录为./dist"],["mo","setup","","# 设置默认行为"],["mo","pin","-u","# 检查过时依赖并更新 package.json"],["mo","githooks",'pre-commit="npm run lint:commit" commit-msg="commit-lint"',"# 配置 Git 钩子,如 pre-commit 和 commit-msg"],["mo","buildApp","","# 打包应用"]];export default function(){let i=n.reduce((e,t)=>Math.max(e,t.name.length),0)+4,o=n.reduce((e,t)=>Math.max(e,t.args?.length||0),0)+4,a=n.map(t=>[" ",e(t.name.padEnd(i),"green"),e(`${t.args||""}`.padEnd(o),"208"),t.description,...(t.arguments||[]).map(t=>`
|
|
2
|
+
${" ".repeat(2+i+o)}${e(`${t.name}: `,"245",{bold:!0})}${e(t.description,"245",{italic:!0})}`),"\n"].join("")).join("\n"),m=r.reduce((e,t)=>Math.max(e,t[0].length+t[1].length+t[2].length),0),s=r.map(t=>` ${e(t[0],"blue")} ${e(t[1],"green")} ${e(t[2],"208")}${" ".padEnd(m-t[0].length-t[1].length-t[2].length+4)} ${e(t[3]||"","245")}`).join("\n");t(`
|
|
3
|
+
使用方法: ${e("mo","blue")} ${e("<命令>","green")} ${e("<必选参数>","208")} ${e("[可选参数]","yellow")}
|
|
28
4
|
|
|
5
|
+
命令列表:
|
|
6
|
+
${a}
|
|
29
7
|
${e("选项:","white")}
|
|
30
8
|
${e("-v, --version","yellow")} 显示版本信息
|
|
31
9
|
${e("-h, --help","yellow")} 显示帮助信息
|
|
32
10
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
${e("mo","blue")} ${e("build","green")} ${e("library react","208")} ${e("# 构建生产版本","245")}
|
|
36
|
-
${e("mo","blue")} ${e("eslint","green")} ${e("components","208")} ${e("# 检查并修复代码","245")}
|
|
37
|
-
${e("mo","blue")} ${e("stylelint","green")} ${e("src","208")} ${e("# 检查样式文件","245")}
|
|
38
|
-
${e("mo","blue")} ${e("changelog","green")} ${e("CHANGELOG.md","208")} ${e("# 生成变更日志","245")}
|
|
11
|
+
示例:
|
|
12
|
+
${s}
|
|
39
13
|
`)}
|
package/lib/bin/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{argv as a,exit as e}from"node:process";import{ink as t,println as i}from"@moneko/utils";import s from"../commom/require.mjs";import r from"../commom/sigint-exit.mjs";import{corePkg as m}from"./utils/config.mjs";switch(a[2]){case"-v":case"--version":i(`${t(m,"blue")}: ${s(`${m}/package.json`).version}`,!0);break;case"start":(await import("./start.mjs")).default();break;case"build":(await import("./build.mjs")).default();break;case"eslint":(await import("./eslint.mjs")).default();break;case"stylelint":(await import("./stylelint.mjs")).default();break;case"githooks":(await import("./git-hooks.mjs")).default();break;case"buildApp":(await import("./build-app.mjs")).default();break;case"changelog":(await import("./changelog.mjs")).default();break;case"server":(await import("./server.mjs")).default();break;case"pin":(await import("./pin.mjs")).default();break;default:(await import("./help.mjs")).default()}r(()=>{e(0)});
|
|
2
|
+
import{argv as a,exit as e}from"node:process";import{ink as t,println as i}from"@moneko/utils";import s from"../commom/require.mjs";import r from"../commom/sigint-exit.mjs";import{corePkg as m}from"./utils/config.mjs";switch(a[2]){case"-v":case"--version":i(`${t(m,"blue")}: ${s(`${m}/package.json`).version}`,!0);break;case"start":(await import("./start.mjs")).default();break;case"build":(await import("./build.mjs")).default();break;case"eslint":(await import("./eslint.mjs")).default();break;case"stylelint":(await import("./stylelint.mjs")).default();break;case"githooks":(await import("./git-hooks.mjs")).default();break;case"buildApp":(await import("./build-app.mjs")).default();break;case"changelog":(await import("./changelog.mjs")).default();break;case"server":(await import("./server.mjs")).default();break;case"pin":(await import("./pin.mjs")).default();break;case"setup":(await import("./setup.mjs")).default();break;default:(await import("./help.mjs")).default()}r(()=>{e(0)});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import m from"../commom/check-npm.mjs";import{corepack as o}from"../commom/corepack.mjs";import{CONFIG as c}from"../config.mjs";export default function(){o(c.corepack),m()}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{spawn as t}from"node:child_process";export default function(){t("npm",["-v"],{stdio:"pipe",shell:!0}).stdout.on("data",e=>{e.toString().split(".")[0]<9&&t("npm",["config","get","enable-pre-post-scripts"],{stdio:"pipe",shell:!0}).stdout.on("data",e=>{"true"!==e.toString().trim()&&t("npm",["config","set","enable-pre-post-scripts","true","-L","project"],{stdio:"ignore",shell:!0})})})}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { spawn, type SpawnOptions } from 'node:child_process';
|
|
2
|
+
import { dirname, join } from 'node:path';
|
|
3
|
+
import { execPath, platform, versions } from 'node:process';
|
|
4
|
+
import { ink, loadFile, loadFileSync, println, saveFile } from '@moneko/utils';
|
|
5
|
+
import log from './log.mjs';
|
|
6
|
+
declare const packageJsonPath: string;
|
|
7
|
+
declare const packageJson: typeof import('package.json');
|
|
8
|
+
declare const shim: string;
|
|
9
|
+
declare const spawnOptions: SpawnOptions;
|
|
10
|
+
declare function getManagerVersion(): string;
|
|
11
|
+
declare function corepackInstalled(): Promise<boolean>;
|
|
12
|
+
export declare function corepack(enable?: boolean);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{spawn as e}from"node:child_process";import{dirname as r,join as n}from"node:path";import{execPath as o,platform as a,versions as p}from"node:process";import{ink as c,loadFile as t,loadFileSync as i,println as m,saveFile as s}from"@moneko/utils";import l from"./log.mjs";let g=`${process.cwd()}/package.json`,d=JSON.parse(i(g)),f=c("corepack","magenta"),k={stdio:"ignore",shell:!0};export function corepack(i){new Promise(p=>{if(d.packageManager){let c=e("corepack",["-v"],k);c.on("error",e=>{l(e),p(!1)}),c.on("exit",e=>{0!==e&&p(!1);let c=d.packageManager.split("@")[0],i="win32"===a?`${c}.cmd`:c;t(n(r(o),i)).then(e=>{p(e.includes("corepack"))}).catch(e=>{l(e),p(!1)})})}else p(!1)}).then(r=>{if(i){if(d.packageManager||(d.packageManager=function(){let e=Number(p.node.split(".")[0]);return e<16?"pnpm@7.33.7":e<18?"pnpm@8.15.9":"pnpm@10.14.0"}(),s(g,JSON.stringify(d,null,2))),r)return;e("corepack",["enable"],k);return}r?m(`${f} is ${c("enabled","green")} ${c(`(${d.name})`,"245")}`):m(`${f} is ${c("disabled","yellow")} ${c(`(${d.name})`,"245")}`)}).catch(e=>{l(e)})}
|
package/lib/config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{join as e,relative as o}from"node:path";import t from"node:process";import{fileExists as r}from"@moneko/utils";import{merge as n}from"webpack-merge";import s from"./commom/paths.mjs";import a from"./commom/require.mjs";import i from"./commom/setup-env.mjs";import l from"./options/jsx-dom-expressions.mjs";import m from"./options/split-chunk.mjs";import{isFunction as p,node_modules as c,resolveProgram as u}from"./utils/index.mjs";import{APPTYPE as d,FRAMEWORK as f,frameworkVersion as h,isCI as g,isDev as v,isLibrary as x,isMobile as P,isReact as j,jsxImportSource as C,mainDirectory as b,NODE_ENV as k,PACKAGENAME as w}from"./process-env.mjs";let O=["@app","@moneko","neko-ui",".cache/http/data","@element-plus","ant-design-vue","element-plus","element-ui","ng-zorro-antd","@mui","@du","@fontsource","@fortawesome","font-pingfang-sc","font-pingfang-tc","katex","react-markdown-editor-lite","react-photo-view","schema-design","monaco-editor"];export function getConfig(e){return delete a.cache[e],new Promise(o=>{if(r(e)){let r=a(e).default;return o(p(r)?r(t):r)}return o({})})}let y=await Promise.all([i(k,d,f,[]),getConfig(s.configPath),getConfig(s.customConfigPath)]),S=y[0],M=y[1],I=y[2],z={strict:!1,devtool:v?"eval-cheap-module-source-map":"cheap-module-source-map",seo:!1,mode:"csr",bundleAnalyzer:!1,polyfill:!1,entry:{},minifier:{},sourceMap:{filename:"[file].map",publicPath:"",namespace:w,moduleFilenameTemplate:"moneko://[namespace]/[resource-path]?[loaders]",fallbackModuleFilenameTemplate:"moneko://[namespace]/[resource-path]?[loaders]"},env:S,basename:"/",publicPath:"/",rem:{designSize:P?375:1920},fallbackCompPath:null,modifyVars:{},prefixCls:"n",alias:Object.assign({"@":u(b)},j&&h<18?{"react/package.json":c("react/package.json"),"react/jsx-runtime":c("react/jsx-runtime.js"),"react/jsx-dev-runtime":c("react/jsx-dev-runtime.js")}:{}),moduleRules:[],prefixJsLoader:[],cssModules:[],cssModuleDefinition:!0,importOnDemand:{},proxy:{},devServer:{host:"localhost",port:3e3,open:!0},htmlPluginOption:{title:w.toLocaleUpperCase(),favicon:o(s.programPath,`${s.corePath}/options/favicon.ico`)},copy:{},routerMode:"browser",fixBrowserRouter:!1,plugins:[],resolvePlugins:[],overrideResolve:!1,splitChunk:m,runtimeChunk:"single",moduleFederation:[],rulesInclude:{css:O,js:O,media:O,font:O,wasm:[]},mdx:{jsx:!1,development:v,jsxImportSource:C,providerImportSource:`@moneko/${f}/mdx`},jsxDomExpressions:l,bar:{name:"Client",nameColor:"68",msgColor:"242",barBgColor:"15",barColor:"69",quiet:g},normalizeCss:!0,externalsPresets:{},buildHttp:void 0,virtualModule:{},cssExtract:{},externals:["@swc/core"],lazyCompilation:!1,performance:!1,refresh:"solid"!==f,bundleId:"com.moneko.bid",bundles:[],stylelint:{},eslint:{lintDirtyModulesOnly:!1},minChunkSize:1e3,compression:v,manifest:{filename:"manifest.json"}};x&&(z.alias=Object.assign(z.alias,{"@pkg":s.componentsPath,[w]:s.componentsPath}));let F=z;(!1===(F=n(F,M,I)).devtool||!1===F.sourceMap)&&(F.sourceMap=!1,F.devtool=!1),F.htmlPluginOption&&(F.htmlPluginOption.tags||(F.htmlPluginOption.tags=[]),F.fixBrowserRouter&&F.htmlPluginOption.tags.push({textContent:"(function(l) {if (l.search[1] === '/' ) {var decoded = l.search.slice(1).split('&').map(function(s) {return s.replace(/~and~/g, '&')}).join('?');window.history.replaceState(null, null,l.pathname.slice(0, -1) + decoded + l.hash);}}(window.location))"}),F.manifest&&F.htmlPluginOption.tags.push({href:e("auto"===F.publicPath?"":F.publicPath,F.manifest.filename).replaceAll(/\\/g,"/"),tag:"link",rel:"manifest"})),"true"===t.env.CODESPACES&&(F.devServer.https=!1),!1===F.devServer.https&&"darwin"===t.platform&&(F.devServer.open=!1);export const CONFIG=F;export const PUBLICPATH="auto"===CONFIG.publicPath?"":CONFIG.publicPath;
|
|
1
|
+
import{join as e,relative as o}from"node:path";import t from"node:process";import{fileExists as r}from"@moneko/utils";import{merge as n}from"webpack-merge";import s from"./commom/paths.mjs";import a from"./commom/require.mjs";import i from"./commom/setup-env.mjs";import l from"./options/jsx-dom-expressions.mjs";import m from"./options/split-chunk.mjs";import{isFunction as p,node_modules as c,resolveProgram as u}from"./utils/index.mjs";import{APPTYPE as d,FRAMEWORK as f,frameworkVersion as h,isCI as g,isDev as v,isLibrary as x,isMobile as P,isReact as j,jsxImportSource as C,mainDirectory as b,NODE_ENV as k,PACKAGENAME as w}from"./process-env.mjs";let O=["@app","@moneko","neko-ui",".cache/http/data","@element-plus","ant-design-vue","element-plus","element-ui","ng-zorro-antd","@mui","@du","@fontsource","@fortawesome","font-pingfang-sc","font-pingfang-tc","katex","react-markdown-editor-lite","react-photo-view","schema-design","monaco-editor"];export function getConfig(e){return delete a.cache[e],new Promise(o=>{if(r(e)){let r=a(e).default;return o(p(r)?r(t):r)}return o({})})}let y=await Promise.all([i(k,d,f,[]),getConfig(s.configPath),getConfig(s.customConfigPath)]),S=y[0],M=y[1],I=y[2],z={strict:!1,devtool:v?"eval-cheap-module-source-map":"cheap-module-source-map",seo:!1,mode:"csr",bundleAnalyzer:!1,polyfill:!1,entry:{},minifier:{},sourceMap:{filename:"[file].map",publicPath:"",namespace:w,moduleFilenameTemplate:"moneko://[namespace]/[resource-path]?[loaders]",fallbackModuleFilenameTemplate:"moneko://[namespace]/[resource-path]?[loaders]"},env:S,basename:"/",publicPath:"/",rem:{designSize:P?375:1920},fallbackCompPath:null,modifyVars:{},prefixCls:"n",alias:Object.assign({"@":u(b)},j&&h<18?{"react/package.json":c("react/package.json"),"react/jsx-runtime":c("react/jsx-runtime.js"),"react/jsx-dev-runtime":c("react/jsx-dev-runtime.js")}:{}),moduleRules:[],prefixJsLoader:[],cssModules:[],cssModuleDefinition:!0,importOnDemand:{},proxy:{},devServer:{host:"localhost",port:3e3,open:!0},htmlPluginOption:{title:w.toLocaleUpperCase(),favicon:o(s.programPath,`${s.corePath}/options/favicon.ico`)},copy:{},routerMode:"browser",fixBrowserRouter:!1,plugins:[],resolvePlugins:[],overrideResolve:!1,splitChunk:m,runtimeChunk:"single",moduleFederation:[],rulesInclude:{css:O,js:O,media:O,font:O,wasm:[]},mdx:{jsx:!1,development:v,jsxImportSource:C,providerImportSource:`@moneko/${f}/mdx`},jsxDomExpressions:l,bar:{name:"Client",nameColor:"68",msgColor:"242",barBgColor:"15",barColor:"69",quiet:g},normalizeCss:!0,externalsPresets:{},buildHttp:void 0,virtualModule:{},cssExtract:{},externals:["@swc/core"],lazyCompilation:!1,performance:!1,refresh:"solid"!==f,bundleId:"com.moneko.bid",bundles:[],stylelint:{},eslint:{lintDirtyModulesOnly:!1},minChunkSize:1e3,compression:v,manifest:{filename:"manifest.json"},corepack:!0};x&&(z.alias=Object.assign(z.alias,{"@pkg":s.componentsPath,[w]:s.componentsPath}));let F=z;(!1===(F=n(F,M,I)).devtool||!1===F.sourceMap)&&(F.sourceMap=!1,F.devtool=!1),F.htmlPluginOption&&(F.htmlPluginOption.tags||(F.htmlPluginOption.tags=[]),F.fixBrowserRouter&&F.htmlPluginOption.tags.push({textContent:"(function(l) {if (l.search[1] === '/' ) {var decoded = l.search.slice(1).split('&').map(function(s) {return s.replace(/~and~/g, '&')}).join('?');window.history.replaceState(null, null,l.pathname.slice(0, -1) + decoded + l.hash);}}(window.location))"}),F.manifest&&F.htmlPluginOption.tags.push({href:e("auto"===F.publicPath?"":F.publicPath,F.manifest.filename).replaceAll(/\\/g,"/"),tag:"link",rel:"manifest"})),"true"===t.env.CODESPACES&&(F.devServer.https=!1),!1===F.devServer.https&&"darwin"===t.platform&&(F.devServer.open=!1);export const CONFIG=F;export const PUBLICPATH="auto"===CONFIG.publicPath?"":CONFIG.publicPath;
|
package/lib/module.config.d.mts
CHANGED
|
@@ -32,7 +32,7 @@ declare const includeJs: string[];
|
|
|
32
32
|
declare const includeMedia: string[];
|
|
33
33
|
declare const includeWasm: string[];
|
|
34
34
|
declare const includeFont: string[];
|
|
35
|
-
declare let sassLoader: RuleSetRule |
|
|
35
|
+
declare let sassLoader: RuleSetRule | void;
|
|
36
36
|
declare const docLoader: false | RuleSetRule;
|
|
37
37
|
declare const IS_UMD: boolean;
|
|
38
38
|
declare const commonOneOf: RuleSetRule[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.50.1",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -154,5 +154,6 @@
|
|
|
154
154
|
"files": [
|
|
155
155
|
"lib",
|
|
156
156
|
"typings"
|
|
157
|
-
]
|
|
157
|
+
],
|
|
158
|
+
"packageManager": "pnpm@10.14.0"
|
|
158
159
|
}
|
package/typings/global.d.ts
CHANGED