@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.
- package/dist/types/builder/builder-rspack/index.d.ts +1 -1
- package/dist/types/builder/generator/index.d.ts +1 -1
- package/dist/types/builder/shared/createCopyInfo.d.ts +1 -1
- package/dist/types/commands/inspect.d.ts +1 -1
- package/dist/types/esm/register-esm.d.mts +2 -8
- package/dist/types/esm/ts-paths-loader.d.mts +2 -2
- package/dist/types/locale/en.d.ts +1 -1
- package/dist/types/locale/index.d.ts +2 -89
- package/dist/types/locale/zh.d.ts +1 -1
- package/dist/types/plugins/analyze/getFileSystemEntry.d.ts +2 -2
- package/dist/types/plugins/analyze/utils.d.ts +1 -1
- package/dist/types/plugins/deploy/platforms/templates/netlify-entry.d.cts +2 -2
- package/dist/types/plugins/deploy/platforms/templates/netlify-entry.d.mts +1 -1
- package/dist/types/plugins/deploy/platforms/templates/vercel-entry.d.cts +1 -1
- package/dist/types/plugins/deploy/platforms/templates/vercel-entry.d.mts +1 -1
- package/dist/types/plugins/deploy/utils/generator.d.ts +2 -2
- package/dist/types/plugins/deploy/utils/index.d.ts +1 -1
- package/dist/types/rsbuild.d.ts +1 -1
- package/dist/types/run/index.d.ts +1 -1
- package/dist/types/ultramodern/designSystem.d.ts +2 -2
- package/dist/types/utils/createServer.d.ts +1 -1
- package/dist/types/utils/getConfigFile.d.ts +1 -1
- package/dist/types/utils/initAppContext.d.ts +2 -2
- package/dist/types/utils/loadPlugins.d.ts +2 -2
- package/dist/types/utils/register.d.ts +3 -3
- package/package.json +11 -11
- package/dist/types/esm/ts-node-loader.d.mts +0 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { BuilderOptions } from '../shared';
|
|
2
|
-
export declare function createRspackBuilderForModern(options: BuilderOptions): Promise<
|
|
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<
|
|
8
|
+
export declare function generateBuilder(options: BuilderOptions, bundlerType: BundlerType): Promise<any>;
|
|
@@ -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<
|
|
4
|
+
export declare const inspect: (api: CLIPluginAPI<AppTools>, options: InspectOptions) => Promise<any>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const registerPathsLoader: ({ appDir, baseUrl, paths }: {
|
|
2
2
|
appDir: any;
|
|
3
|
-
distDir: any;
|
|
4
3
|
baseUrl: any;
|
|
5
4
|
paths: any;
|
|
6
|
-
})
|
|
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;
|
|
@@ -1,90 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const
|
|
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 };
|
|
@@ -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) =>
|
|
6
|
-
export declare const hasServerEntry: (dir: string) =>
|
|
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) =>
|
|
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
|
-
|
|
2
|
-
|
|
1
|
+
declare const handler: (request: any, context: any) => Promise<any>;
|
|
2
|
+
export { handler as default };
|
|
@@ -5,8 +5,8 @@ export declare const serverAppContextTemplate: (appContext: AppToolsContext) =>
|
|
|
5
5
|
sharedDirectory: string;
|
|
6
6
|
apiDirectory: string;
|
|
7
7
|
lambdaDirectory: string;
|
|
8
|
-
metaName:
|
|
9
|
-
bffRuntimeFramework:
|
|
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<
|
|
15
|
+
export declare const readTemplate: (file: string) => Promise<any>;
|
|
16
16
|
export declare const resolveESMDependency: (entry: string) => Promise<string | undefined>;
|
package/dist/types/rsbuild.d.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
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 [
|
|
2
|
-
export declare const DESIGN_SYSTEM_OVERRIDE_LAYERS: readonly [
|
|
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: () =>
|
|
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) =>
|
|
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?:
|
|
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: "
|
|
30
|
+
bffRuntimeFramework: "effect" | "hono";
|
|
31
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CLIPluginAPI
|
|
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<
|
|
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 = '
|
|
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: (
|
|
13
|
+
export declare const resolveTsRuntimeRegisterMode: () => TsRuntimeRegisterMode;
|
|
14
14
|
/**
|
|
15
15
|
* Setup TypeScript runtime support.
|
|
16
|
-
* Register
|
|
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.
|
|
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.
|
|
102
|
-
"@modern-js/
|
|
103
|
-
"@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.2.0-ultramodern.
|
|
104
|
-
"@modern-js/
|
|
105
|
-
"@modern-js/
|
|
106
|
-
"@modern-js/
|
|
107
|
-
"@modern-js/server
|
|
108
|
-
"@modern-js/server-utils": "npm:@bleedingdev/modern-js-server-utils@3.2.0-ultramodern.
|
|
109
|
-
"@modern-js/
|
|
110
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.2.0-ultramodern.
|
|
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",
|