@modern-js/app-tools 2.49.3-alpha.0 → 2.49.3
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/cjs/index.js +2 -4
- package/dist/cjs/locale/en.js +1 -2
- package/dist/cjs/locale/zh.js +1 -2
- package/dist/esm/index.js +2 -4
- package/dist/esm/locale/en.js +1 -2
- package/dist/esm/locale/zh.js +1 -2
- package/dist/esm-node/index.js +2 -4
- package/dist/esm-node/locale/en.js +1 -2
- package/dist/esm-node/locale/zh.js +1 -2
- package/dist/types/locale/en.d.ts +0 -1
- package/dist/types/locale/index.d.ts +0 -2
- package/dist/types/locale/zh.d.ts +0 -1
- package/dist/types/utils/types.d.ts +0 -1
- package/package.json +22 -26
- package/dist/cjs/plugins/deploy/dependencies.js +0 -256
- package/dist/cjs/plugins/deploy/entrys/netlify.js +0 -95
- package/dist/cjs/plugins/deploy/entrys/node.js +0 -88
- package/dist/cjs/plugins/deploy/entrys/vercel.js +0 -94
- package/dist/cjs/plugins/deploy/index.js +0 -186
- package/dist/cjs/plugins/deploy/utils.js +0 -150
- package/dist/esm/plugins/deploy/dependencies.js +0 -725
- package/dist/esm/plugins/deploy/entrys/netlify.js +0 -41
- package/dist/esm/plugins/deploy/entrys/node.js +0 -39
- package/dist/esm/plugins/deploy/entrys/vercel.js +0 -40
- package/dist/esm/plugins/deploy/index.js +0 -297
- package/dist/esm/plugins/deploy/utils.js +0 -244
- package/dist/esm-node/plugins/deploy/dependencies.js +0 -222
- package/dist/esm-node/plugins/deploy/entrys/netlify.js +0 -71
- package/dist/esm-node/plugins/deploy/entrys/node.js +0 -64
- package/dist/esm-node/plugins/deploy/entrys/vercel.js +0 -70
- package/dist/esm-node/plugins/deploy/index.js +0 -156
- package/dist/esm-node/plugins/deploy/utils.js +0 -109
- package/dist/types/plugins/deploy/dependencies.d.ts +0 -1
- package/dist/types/plugins/deploy/entrys/netlify.d.ts +0 -5
- package/dist/types/plugins/deploy/entrys/node.d.ts +0 -5
- package/dist/types/plugins/deploy/entrys/vercel.d.ts +0 -5
- package/dist/types/plugins/deploy/index.d.ts +0 -4
- package/dist/types/plugins/deploy/utils.d.ts +0 -27
@@ -1,27 +0,0 @@
|
|
1
|
-
import type { PackageJson } from 'pkg-types';
|
2
|
-
export type ServerAppContext = {
|
3
|
-
sharedDirectory: string;
|
4
|
-
apiDirectory: string;
|
5
|
-
lambdaDirectory: string;
|
6
|
-
metaName: string;
|
7
|
-
};
|
8
|
-
export declare const severAppContextTemplate: (serverAppContext: ServerAppContext) => string;
|
9
|
-
export declare const getPluginsCode: (plugins: string[]) => string;
|
10
|
-
export declare const genPluginImportsCode: (plugins: string[]) => string;
|
11
|
-
export declare const getProjectUsage: (appDirectory: string, distDirectory: string) => {
|
12
|
-
useSSR: boolean;
|
13
|
-
useAPI: boolean;
|
14
|
-
useWebServer: boolean;
|
15
|
-
};
|
16
|
-
export declare function applyProductionCondition(exports: PackageJson['exports']): void;
|
17
|
-
export declare function applyPublicCondition(pkg: PackageJson): void;
|
18
|
-
export type TracedPackage = {
|
19
|
-
name: string;
|
20
|
-
versions: Record<string, {
|
21
|
-
pkgJSON: PackageJson;
|
22
|
-
path: string;
|
23
|
-
files: string[];
|
24
|
-
}>;
|
25
|
-
};
|
26
|
-
export declare const writePackage: (pkg: TracedPackage, version: string, projectDir: string, _pkgPath?: string) => Promise<void>;
|
27
|
-
export declare const linkPackage: (from: string, to: string, projectRootDir: string) => Promise<void>;
|