@bleedingdev/modern-js-app-tools 3.2.0-ultramodern.0 → 3.2.0-ultramodern.10

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,2 +1,2 @@
1
1
  import type { BuilderOptions } from '../shared';
2
- export declare function createRspackBuilderForModern(options: BuilderOptions): Promise<import("@rsbuild/core").RsbuildInstance>;
2
+ export declare function createRspackBuilderForModern(options: BuilderOptions): Promise<any>;
@@ -5,4 +5,4 @@ import type { BuilderOptions } from '../shared';
5
5
  * @param bundlerType BundlerType
6
6
  * @returns BuilderInstance
7
7
  */
8
- export declare function generateBuilder(options: BuilderOptions, bundlerType: BundlerType): Promise<import("@rsbuild/core").RsbuildInstance>;
8
+ export declare function generateBuilder(options: BuilderOptions, bundlerType: BundlerType): Promise<any>;
@@ -4,5 +4,5 @@ export declare function createCopyInfo(appContext: AppToolsContext, config: AppN
4
4
  configDir: string;
5
5
  uploadDir: string;
6
6
  publicDir: string;
7
- customPublicDirs: string[];
7
+ customPublicDirs: any;
8
8
  };
@@ -1,4 +1,4 @@
1
1
  import type { CLIPluginAPI } from '@modern-js/plugin';
2
2
  import type { AppTools } from '../types';
3
3
  import type { InspectOptions } from '../utils/types';
4
- export declare const inspect: (api: CLIPluginAPI<AppTools>, options: InspectOptions) => Promise<import("@rsbuild/core").InspectConfigResult>;
4
+ export declare const inspect: (api: CLIPluginAPI<AppTools>, options: InspectOptions) => Promise<any>;
@@ -1,11 +1,5 @@
1
- export function registerModuleHooks({ appDir, distDir, baseUrl, paths, }: {
1
+ export declare const registerPathsLoader: ({ appDir, baseUrl, paths }: {
2
2
  appDir: any;
3
- distDir: any;
4
3
  baseUrl: any;
5
4
  paths: any;
6
- }): Promise<void>;
7
- export function registerPathsLoader({ appDir, baseUrl, paths }: {
8
- appDir: any;
9
- baseUrl: any;
10
- paths: any;
11
- }): Promise<void>;
5
+ }) => Promise<void>;
@@ -1,6 +1,6 @@
1
- export function initialize({ appDir: currentAppDir, baseUrl, paths }: {
1
+ export declare function initialize({ appDir: currentAppDir, baseUrl, paths }: {
2
2
  appDir: any;
3
3
  baseUrl: any;
4
4
  paths: any;
5
5
  }): Promise<void>;
6
- export function resolve(specifier: any, context: any, defaultResolve: any): any;
6
+ export declare function resolve(specifier: any, context: any, defaultResolve: any): any;
@@ -24,7 +24,7 @@ export declare const EN_LOCALE: {
24
24
  deploy: {
25
25
  describe: string;
26
26
  };
27
- new: {
27
+ "new": {
28
28
  describe: string;
29
29
  debug: string;
30
30
  config: string;
@@ -1,90 +1,3 @@
1
- import { I18n } from '@modern-js/i18n-utils';
2
- declare const i18n: I18n;
3
- declare const localeKeys: {
4
- command: {
5
- shared: {
6
- analyze: string;
7
- config: string;
8
- skipBuild: string;
9
- noNeedInstall: string;
10
- };
11
- dev: {
12
- describe: string;
13
- entry: string;
14
- apiOnly: string;
15
- webOnly: string;
16
- selectEntry: string;
17
- requireEntry: string;
18
- };
19
- build: {
20
- describe: string;
21
- watch: string;
22
- };
23
- serve: {
24
- describe: string;
25
- };
26
- deploy: {
27
- describe: string;
28
- };
29
- new: {
30
- describe: string;
31
- debug: string;
32
- config: string;
33
- distTag: string;
34
- registry: string;
35
- lang: string;
36
- };
37
- inspect: {
38
- env: string;
39
- output: string;
40
- verbose: string;
41
- };
42
- info: {
43
- describe: string;
44
- };
45
- };
46
- } | {
47
- command: {
48
- shared: {
49
- analyze: string;
50
- config: string;
51
- skipBuild: string;
52
- noNeedInstall: string;
53
- };
54
- dev: {
55
- describe: string;
56
- entry: string;
57
- apiOnly: string;
58
- webOnly: string;
59
- selectEntry: string;
60
- requireEntry: string;
61
- };
62
- build: {
63
- describe: string;
64
- watch: string;
65
- };
66
- serve: {
67
- describe: string;
68
- };
69
- deploy: {
70
- describe: string;
71
- };
72
- new: {
73
- describe: string;
74
- debug: string;
75
- config: string;
76
- distTag: string;
77
- registry: string;
78
- lang: string;
79
- };
80
- inspect: {
81
- env: string;
82
- output: string;
83
- verbose: string;
84
- };
85
- info: {
86
- describe: string;
87
- };
88
- };
89
- };
1
+ declare const i18n: any;
2
+ declare const localeKeys: any;
90
3
  export { i18n, localeKeys };
@@ -24,7 +24,7 @@ export declare const ZH_LOCALE: {
24
24
  deploy: {
25
25
  describe: string;
26
26
  };
27
- new: {
27
+ "new": {
28
28
  describe: string;
29
29
  debug: string;
30
30
  config: string;
@@ -2,6 +2,6 @@ import type { Entrypoint } from '@modern-js/types';
2
2
  import type { AppNormalizedConfig } from '../../types';
3
3
  import type { AppToolsContext, AppToolsHooks } from '../../types/plugin';
4
4
  export type { Entrypoint };
5
- export declare const hasEntry: (dir: string) => string | false;
6
- export declare const hasServerEntry: (dir: string) => string | false;
5
+ export declare const hasEntry: (dir: string) => any;
6
+ export declare const hasServerEntry: (dir: string) => any;
7
7
  export declare const getFileSystemEntry: (hooks: AppToolsHooks, appContext: AppToolsContext, config: AppNormalizedConfig) => Promise<Entrypoint[]>;
@@ -1,5 +1,5 @@
1
1
  export declare const walkDirectory: (dir: string) => string[];
2
- export declare const replaceWithAlias: (base: string, filePath: string, alias: string) => string;
2
+ export declare const replaceWithAlias: (base: string, filePath: string, alias: string) => any;
3
3
  export declare const parseModule: ({ source, filename, }: {
4
4
  source: string;
5
5
  filename: string;
@@ -1,2 +1,2 @@
1
- export default handler;
2
- declare function handler(request: any, context: any): Promise<any>;
1
+ declare const handler: (request: any, context: any) => Promise<any>;
2
+ export { handler as default };
@@ -1,2 +1,2 @@
1
+ declare const handler: (request: any, context: any) => Promise<any>;
1
2
  export default handler;
2
- declare function handler(request: any, context: any): Promise<any>;
@@ -1,2 +1,2 @@
1
+ declare const handler: (req: any, res: any) => Promise<any>;
1
2
  export = handler;
2
- declare function handler(req: any, res: any): Promise<any>;
@@ -1,2 +1,2 @@
1
+ declare const handler: (req: any, res: any) => Promise<any>;
1
2
  export default handler;
2
- declare function handler(req: any, res: any): Promise<any>;
@@ -5,8 +5,8 @@ export declare const serverAppContextTemplate: (appContext: AppToolsContext) =>
5
5
  sharedDirectory: string;
6
6
  apiDirectory: string;
7
7
  lambdaDirectory: string;
8
- metaName: string;
9
- bffRuntimeFramework: "hono" | "effect";
8
+ metaName: any;
9
+ bffRuntimeFramework: any;
10
10
  };
11
11
  export type PluginItem = [string, Record<string, any> | undefined];
12
12
  export declare const genPluginImportsCode: (plugins: PluginItem[], isESM?: boolean) => string;
@@ -12,5 +12,5 @@ export declare const getProjectUsage: (appDirectory: string, distDirectory: stri
12
12
  useWebServer: boolean;
13
13
  };
14
14
  export declare const getTemplatePath: (file: string) => string;
15
- export declare const readTemplate: (file: string) => Promise<string>;
15
+ export declare const readTemplate: (file: string) => Promise<any>;
16
16
  export declare const resolveESMDependency: (entry: string) => Promise<string | undefined>;
@@ -7,6 +7,6 @@ type ResolveModernRsbuildConfigOptions = {
7
7
  modifyModernConfig?: (config: AppUserConfig) => AppUserConfig | Promise<AppUserConfig>;
8
8
  };
9
9
  export declare function resolveModernRsbuildConfig(options: ResolveModernRsbuildConfigOptions): Promise<{
10
- rsbuildConfig: import("@modern-js/builder").RsbuildConfig;
10
+ rsbuildConfig: any;
11
11
  }>;
12
12
  export type { ResolveModernRsbuildConfigOptions };
@@ -14,7 +14,7 @@ export declare function createRunOptions({ cwd, initialLog, metaName, version, i
14
14
  initialLog: string;
15
15
  configFile: string;
16
16
  metaName: string;
17
- internalPlugins: import("@modern-js/plugin").Plugin[];
17
+ internalPlugins: any;
18
18
  handleSetupResult: typeof handleSetupResult;
19
19
  }>;
20
20
  export declare function run(options: RunOptions): Promise<void>;
@@ -1,5 +1,5 @@
1
- export declare const DESIGN_SYSTEM_MODES: readonly ["off", "tokens", "components", "strict"];
2
- export declare const DESIGN_SYSTEM_OVERRIDE_LAYERS: readonly ["brand", "vertical", "application"];
1
+ export declare const DESIGN_SYSTEM_MODES: readonly ['off', 'tokens', 'components', 'strict'];
2
+ export declare const DESIGN_SYSTEM_OVERRIDE_LAYERS: readonly ['brand', 'vertical', 'application'];
3
3
  export type DesignSystemMode = (typeof DESIGN_SYSTEM_MODES)[number];
4
4
  export type DesignSystemOverrideLayer = (typeof DESIGN_SYSTEM_OVERRIDE_LAYERS)[number];
5
5
  export type DesignSystemTokenValue = string | number;
@@ -1,5 +1,5 @@
1
1
  import type { Server } from 'node:http';
2
2
  import type { Http2SecureServer } from 'node:http2';
3
- export declare const getServer: () => Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse> | Http2SecureServer<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse, typeof import("node:http2").Http2ServerRequest, typeof import("node:http2").Http2ServerResponse> | null;
3
+ export declare const getServer: () => Http2SecureServer<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse, typeof import("node:http2").Http2ServerRequest, typeof import("node:http2").Http2ServerResponse> | Server<typeof import("node:http").IncomingMessage, typeof import("node:http").ServerResponse> | null;
4
4
  export declare const setServer: (newServer: Server | Http2SecureServer) => void;
5
5
  export declare const closeServer: () => Promise<void>;
@@ -1 +1 @@
1
- export declare const getConfigFile: (configFile?: string, cwd?: string) => string | false;
1
+ export declare const getConfigFile: (configFile?: string, cwd?: string) => any;
@@ -7,7 +7,7 @@ export declare const initAppContext: ({ metaName, appDirectory, runtimeConfigFil
7
7
  apiDir?: string;
8
8
  distDir?: string;
9
9
  sharedDir?: string;
10
- bffRuntimeFramework?: "hono" | "effect";
10
+ bffRuntimeFramework?: 'hono' | 'effect';
11
11
  };
12
12
  tempDir?: string;
13
13
  }) => {
@@ -27,5 +27,5 @@ export declare const initAppContext: ({ metaName, appDirectory, runtimeConfigFil
27
27
  apiOnly: boolean;
28
28
  internalDirAlias: string;
29
29
  internalSrcAlias: string;
30
- bffRuntimeFramework: "hono" | "effect";
30
+ bffRuntimeFramework: "effect" | "hono";
31
31
  };
@@ -1,4 +1,4 @@
1
- import type { CLIPluginAPI, Plugin } from '@modern-js/plugin';
1
+ import type { CLIPluginAPI } from '@modern-js/plugin';
2
2
  import type { ServerPlugin as ServerPluginInstance } from '@modern-js/server-core';
3
3
  import type { InternalPlugins, ServerPlugin } from '@modern-js/types';
4
4
  import type { AppTools } from '../types';
@@ -10,4 +10,4 @@ export declare function loadServerPlugins(api: CLIPluginAPI<AppTools>, appDirect
10
10
  * @param internalPlugins - Internal plugins.
11
11
  * @returns Plugin Objects has been required.
12
12
  */
13
- export declare const loadInternalPlugins: (appDirectory: string, internalPlugins?: InternalPlugins) => Promise<Plugin[]>;
13
+ export declare const loadInternalPlugins: (appDirectory: string, internalPlugins?: InternalPlugins) => Promise<any>;
@@ -1,6 +1,6 @@
1
1
  import { type Alias } from '@modern-js/utils';
2
2
  import type { ConfigChain } from '@rsbuild/core';
3
- type TsRuntimeRegisterMode = 'ts-node' | 'node-loader' | 'unsupported';
3
+ type TsRuntimeRegisterMode = 'node-loader' | 'unsupported';
4
4
  interface TsRuntimeSetupOptions {
5
5
  moduleType?: string;
6
6
  /**
@@ -10,10 +10,10 @@ interface TsRuntimeSetupOptions {
10
10
  */
11
11
  tsconfigPath?: string;
12
12
  }
13
- export declare const resolveTsRuntimeRegisterMode: (hasTsNode: boolean) => TsRuntimeRegisterMode;
13
+ export declare const resolveTsRuntimeRegisterMode: () => TsRuntimeRegisterMode;
14
14
  /**
15
15
  * Setup TypeScript runtime support.
16
- * Register ts-node for compilation and tsconfig-paths for path alias resolution.
16
+ * Register Node-native TypeScript path alias resolution.
17
17
  */
18
18
  export declare const setupTsRuntime: (appDir: string, distDir: string, alias?: ConfigChain<Alias>, options?: TsRuntimeSetupOptions) => Promise<void>;
19
19
  export {};
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.2.0-ultramodern.0",
20
+ "version": "3.2.0-ultramodern.10",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "exports": {
@@ -98,16 +98,16 @@
98
98
  "ndepe": "^0.1.13",
99
99
  "pkg-types": "^2.3.1",
100
100
  "std-env": "4.1.0",
101
- "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.0",
102
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.0",
103
- "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.0",
104
- "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.0",
105
- "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.2.0-ultramodern.0",
106
- "@modern-js/server": "npm:@bleedingdev/modern-js-server@3.2.0-ultramodern.0",
107
- "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.2.0-ultramodern.0",
108
- "@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.2.0-ultramodern.0",
109
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.0",
110
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.0"
101
+ "@modern-js/builder": "npm:@bleedingdev/modern-js-builder@3.2.0-ultramodern.10",
102
+ "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.10",
103
+ "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.2.0-ultramodern.10",
104
+ "@modern-js/server": "npm:@bleedingdev/modern-js-server@3.2.0-ultramodern.10",
105
+ "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.2.0-ultramodern.10",
106
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.10",
107
+ "@modern-js/prod-server": "npm:@bleedingdev/modern-js-prod-server@3.2.0-ultramodern.10",
108
+ "@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.2.0-ultramodern.10",
109
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.10",
110
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.10"
111
111
  },
112
112
  "devDependencies": {
113
113
  "@rslib/core": "0.21.5",
@@ -1,6 +0,0 @@
1
- export function initialize({ baseUrl, paths }: {
2
- baseUrl: any;
3
- paths: any;
4
- }): Promise<void>;
5
- export function resolve(specifier: any, context: any, defaultResolve: any): any;
6
- export function load(url: any, context: any, defaultLoad: any): any;