@moneko/core 3.55.2-beta.1 → 3.55.2-beta.2

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.
Files changed (134) hide show
  1. package/lib/loader/react-compiler.cjs +1 -1
  2. package/lib/loader/solid.cjs +1 -1
  3. package/lib/worker/react-compiler.mjs +1 -1
  4. package/package.json +1 -1
  5. package/lib/bin/build-app.d.mts +0 -16
  6. package/lib/bin/build.d.mts +0 -2
  7. package/lib/bin/changelog.d.mts +0 -1
  8. package/lib/bin/commit-lint.d.mts +0 -2
  9. package/lib/bin/eslint.d.mts +0 -1
  10. package/lib/bin/file.d.mts +0 -2
  11. package/lib/bin/git-hooks.d.mts +0 -1
  12. package/lib/bin/help.d.mts +0 -2
  13. package/lib/bin/index.d.mts +0 -2
  14. package/lib/bin/lessc.d.mts +0 -1
  15. package/lib/bin/pin.d.mts +0 -6
  16. package/lib/bin/pure-lint.d.mts +0 -2
  17. package/lib/bin/server.d.mts +0 -2
  18. package/lib/bin/setup.d.mts +0 -2
  19. package/lib/bin/start.d.mts +0 -2
  20. package/lib/bin/stylelint.d.mts +0 -2
  21. package/lib/bin/tsc.d.mts +0 -2
  22. package/lib/bin/utils/bundle-app.d.mts +0 -2
  23. package/lib/bin/utils/config.d.mts +0 -6
  24. package/lib/bin/utils/get-commit-files.d.mts +0 -2
  25. package/lib/bin/utils/setup-swcrc.d.mts +0 -2
  26. package/lib/build/common.d.mts +0 -3
  27. package/lib/build/server.d.mts +0 -3
  28. package/lib/build.d.mts +0 -1
  29. package/lib/commom/ca.d.mts +0 -8
  30. package/lib/commom/check-npm.d.mts +0 -4
  31. package/lib/commom/corepack.d.mts +0 -11
  32. package/lib/commom/diff-object.d.mts +0 -2
  33. package/lib/commom/esm.d.mts +0 -2
  34. package/lib/commom/has-pkg.d.mts +0 -2
  35. package/lib/commom/host.d.mts +0 -1
  36. package/lib/commom/is-ci-environment.d.mts +0 -6
  37. package/lib/commom/log.d.mts +0 -2
  38. package/lib/commom/match-path.d.mts +0 -22
  39. package/lib/commom/mime.d.mts +0 -2
  40. package/lib/commom/module-resolve.d.mts +0 -2
  41. package/lib/commom/net.d.mts +0 -2
  42. package/lib/commom/open.d.mts +0 -2
  43. package/lib/commom/parse-args.d.mts +0 -2
  44. package/lib/commom/parse-module-meta.d.mts +0 -9
  45. package/lib/commom/paths.d.mts +0 -52
  46. package/lib/commom/print-log.d.mts +0 -15
  47. package/lib/commom/reactive-object.d.mts +0 -10
  48. package/lib/commom/require.d.mts +0 -2
  49. package/lib/commom/rule.d.mts +0 -26
  50. package/lib/commom/setup-env.d.mts +0 -6
  51. package/lib/commom/sigint-exit.d.mts +0 -2
  52. package/lib/commom/timer.d.mts +0 -12
  53. package/lib/commom/transform-solid-js.d.mts +0 -18
  54. package/lib/common.d.mts +0 -3
  55. package/lib/config.d.mts +0 -4
  56. package/lib/dev/config.d.mts +0 -4
  57. package/lib/dev/generate-progress-html.d.mts +0 -6
  58. package/lib/dev/get-cert.d.mts +0 -8
  59. package/lib/dev/json-schema.d.mts +0 -70
  60. package/lib/dev/mock.d.mts +0 -67
  61. package/lib/dev/proxy.d.mts +0 -15
  62. package/lib/dev/server.d.mts +0 -26
  63. package/lib/dev.d.mts +0 -1
  64. package/lib/file-system.d.mts +0 -2
  65. package/lib/index.d.mts +0 -24
  66. package/lib/lint/eslint/base.d.mts +0 -2
  67. package/lib/lint/eslint/index.d.mts +0 -2
  68. package/lib/lint/eslint/react.d.mts +0 -2
  69. package/lib/lint/eslint/solid.d.mts +0 -2
  70. package/lib/lint/eslint/vue.d.mts +0 -2
  71. package/lib/lint/stylelint/config.d.mts +0 -2
  72. package/lib/lint/stylelint/index.d.mts +0 -1
  73. package/lib/loader/css-in-js-minify.d.cts +0 -14
  74. package/lib/loader/lightning-css/codegen.d.cts +0 -35
  75. package/lib/loader/lightning-css/loader.d.cts +0 -29
  76. package/lib/loader/lightning-css/runtime/api.d.cts +0 -1
  77. package/lib/loader/lightning-css/runtime/get-url.d.cts +0 -1
  78. package/lib/loader/lightning-css/utils.d.cts +0 -16
  79. package/lib/loader/mdx.d.cts +0 -3
  80. package/lib/loader/react-compiler.d.cts +0 -26
  81. package/lib/loader/solid.d.cts +0 -6
  82. package/lib/loader/ts-doc.d.cts +0 -7
  83. package/lib/module.config.d.mts +0 -3
  84. package/lib/options/css-extract.d.mts +0 -3
  85. package/lib/options/jsx-dom-expressions.d.mts +0 -10
  86. package/lib/options/md-to-html.d.mts +0 -2
  87. package/lib/options/modify-vars.d.mts +0 -2
  88. package/lib/options/reslove.d.mts +0 -9
  89. package/lib/options/split-chunk.d.mts +0 -4
  90. package/lib/options/swcrc.d.mts +0 -10
  91. package/lib/plugin/compression.d.mts +0 -15
  92. package/lib/plugin/copy.d.mts +0 -30
  93. package/lib/plugin/done.d.mts +0 -11
  94. package/lib/plugin/eslint.d.mts +0 -14
  95. package/lib/plugin/exposes-declararion.d.mts +0 -15
  96. package/lib/plugin/external-remotes.d.mts +0 -4
  97. package/lib/plugin/html-plugin.d.mts +0 -60
  98. package/lib/plugin/lightningcss-plugin.d.mts +0 -20
  99. package/lib/plugin/manifest.d.mts +0 -46
  100. package/lib/plugin/module-federation.d.mts +0 -3
  101. package/lib/plugin/override-resolve.d.mts +0 -25
  102. package/lib/plugin/stylelint.d.mts +0 -13
  103. package/lib/plugin/swc-minify-plugin.d.mts +0 -8
  104. package/lib/plugin/virtual-module.d.mts +0 -12
  105. package/lib/plugins.config.d.mts +0 -3
  106. package/lib/polyfills/polyfills.d.mts +0 -3
  107. package/lib/polyfills/replace-children.d.mts +0 -1
  108. package/lib/polyfills/targets.d.mts +0 -3
  109. package/lib/process-env.d.mts +0 -26
  110. package/lib/utils/compile-dts.d.mts +0 -23
  111. package/lib/utils/create-types.d.mts +0 -2
  112. package/lib/utils/dts.d.mts +0 -14
  113. package/lib/utils/fetch-module-federation-dts.d.mts +0 -2
  114. package/lib/utils/index.d.mts +0 -35
  115. package/lib/utils/run.d.mts +0 -2
  116. package/lib/utils/seo.d.mts +0 -2
  117. package/lib/utils/svg-to-data-uri.d.mts +0 -2
  118. package/lib/utils/vts.d.mts +0 -18
  119. package/lib/vm/coverage.d.mts +0 -2
  120. package/lib/vm/docs.d.mts +0 -7
  121. package/lib/vm/example.d.mts +0 -4
  122. package/lib/vm/generate-doc.d.mts +0 -1
  123. package/lib/vm/info.d.mts +0 -2
  124. package/lib/vm/locales.d.mts +0 -5
  125. package/lib/vm/modules.d.mts +0 -2
  126. package/lib/vm/render-app.d.mts +0 -2
  127. package/lib/vm/routes.d.mts +0 -8
  128. package/lib/vm/utils.d.mts +0 -1
  129. package/lib/worker/dts.d.mts +0 -1
  130. package/lib/worker/eslint.d.mts +0 -1
  131. package/lib/worker/react-compiler.d.mts +0 -1
  132. package/lib/worker/solid.d.mts +0 -1
  133. package/lib/worker/stylelint.d.mts +0 -1
  134. package/lib/worker/swc-minify.d.mts +0 -1
@@ -1,14 +0,0 @@
1
- /**
2
- * 根据ts内容生成声明类型
3
- * @param {String} source 源码内容
4
- * @param {String} filename 文件名
5
- * @returns {String} declaration
6
- */
7
- export declare function generateDeclaration(source: string, filename: string): string;
8
- /**
9
- * 获取ts内容导出的key (优化版本)
10
- * @param {String} source 源码内容
11
- * @param {String} filename 文件名
12
- * @returns {Array<String>} tokens
13
- */
14
- export declare function getExportKeys(source: string, filename: string): string[];
@@ -1,2 +0,0 @@
1
- declare function fetchModuleFederationDts(host: string, name: string): Promise<void>;
2
- export default fetchModuleFederationDts;
@@ -1,35 +0,0 @@
1
- /**
2
- * 将字符串转换为小驼峰命名
3
- * @param {string} str 需要转换的字符串
4
- * @returns {string} 转换后的小驼峰命名字符串
5
- * @example
6
- * toCamelCase('hello-world') // 'helloWorld'
7
- * toCamelCase('foo-bar') // 'fooBar'
8
- */
9
- export declare function toCamelCase(str: string): string;
10
- /**
11
- * 将字符串转换为驼峰命名
12
- * @param {string} name 需要转换的字符串
13
- * @returns {string} 转换后的驼峰命名字符串
14
- * @example
15
- * convertToCamelCase('hello-world') // 'HelloWorld'
16
- * convertToCamelCase('foo-bar-ui') // 'FooBarUI'
17
- */
18
- export declare function convertToCamelCase(name: string): string;
19
- type ProgramPath<T extends string> = `${T extends string ? T : string}`;
20
- /** 位于项目根目录下的位置
21
- * @param {string} src 路径
22
- * @returns {string} 位于项目根目录下的位置
23
- */
24
- export declare function resolveProgram<T extends string>(src: T): ProgramPath<T>;
25
- /** 位于项目根目录node_modules下的位置
26
- * @param {string} name 路径
27
- * @returns {string} 位于项目根目录node_modules下的位置
28
- */
29
- export declare function node_modules<T extends string>(name: T): `node_modules/${T}`;
30
- export declare function isObject(target: unknown): target is object;
31
- type AnyFunction = (...a: any[]) => any;
32
- export declare function isFunction<T>(target: T): target is T & AnyFunction;
33
- export declare function transformModule(obj: object | string): string;
34
- export declare function empty(): void;
35
- export {};
@@ -1,2 +0,0 @@
1
- declare function run(fileContent: string, filePath: string): any;
2
- export default run;
@@ -1,2 +0,0 @@
1
- declare const seo: () => void;
2
- export default seo;
@@ -1,2 +0,0 @@
1
- declare function svgToDataUri(svgString: string): string;
2
- export default svgToDataUri;
@@ -1,18 +0,0 @@
1
- interface VfsOptions {
2
- namedExport?: boolean;
3
- modules: Record<string, any>;
4
- }
5
- /**
6
- * 运行 ts 代码
7
- * @param {String} filepath 文件名
8
- * @returns {String} declaration
9
- * @example
10
- * // a.ts
11
- * export default { user: 'admin' } as { user: 'admin' };
12
- * // b.js
13
- * const a = vts('fullpath/a.ts');
14
- *
15
- * console.log(a); // { user: 'admin' }
16
- */
17
- export declare function vts<T>(filepath: string, options?: VfsOptions): T;
18
- export {};
@@ -1,2 +0,0 @@
1
- declare function getCoverage(coveragePath: string): string;
2
- export default getCoverage;
package/lib/vm/docs.d.mts DELETED
@@ -1,7 +0,0 @@
1
- import ReactiveObject from '../commom/reactive-object.mjs';
2
- export declare const docsModuleName: string;
3
- export declare const docsModulePkgJson: string;
4
- export declare const docsModuleMeta: string;
5
- export declare const docs: ReactiveObject<Record<string, string>>;
6
- export declare const comment: ReactiveObject<Record<string, string>>;
7
- export declare const getCommentPath: (file: string) => string;
@@ -1,4 +0,0 @@
1
- import ReactiveObject from '../commom/reactive-object.mjs';
2
- export declare const exampleModuleName = "@app/example";
3
- export declare const examples: ReactiveObject<Record<string, string>>;
4
- export declare function generatorExample(): void;
@@ -1 +0,0 @@
1
- export default function generateDoc(content: string, path: string): string;
package/lib/vm/info.d.mts DELETED
@@ -1,2 +0,0 @@
1
- declare const app: Record<string, unknown>;
2
- export default app;
@@ -1,5 +0,0 @@
1
- import ReactiveObject from '../commom/reactive-object.mjs';
2
- export declare const localesModuleName: string;
3
- export declare const locales: ReactiveObject<{
4
- [x: string]: string;
5
- }>;
@@ -1,2 +0,0 @@
1
- declare const normalModules: Record<string, string | object>;
2
- export default normalModules;
@@ -1,2 +0,0 @@
1
- declare const renderApp: string;
2
- export default renderApp;
@@ -1,8 +0,0 @@
1
- import ReactiveObject from '../commom/reactive-object.mjs';
2
- export declare const routesModuleName: string;
3
- export declare const routesModulePkgJson: string;
4
- export declare const routesModuleMeta: string;
5
- export declare const route: ReactiveObject<{
6
- [x: string]: string;
7
- }>;
8
- export declare function generatorRouter(): void;
@@ -1 +0,0 @@
1
- export declare function watchFiles(root: string, ignored?: RegExp, call?: VoidFunction): void;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export type ESLintWorkerMessage = [warnings: string, errors: string];
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export type StylelintWorkerMessage = [warnings: string, errors: string];
@@ -1 +0,0 @@
1
- export {};