@modern-js/app-tools 2.57.1-alpha.5 → 2.57.1-alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/plugins/deploy/platforms/netlify.js +2 -2
- package/dist/types/plugins/deploy/platforms/netlify-entry.d.cts +0 -1
- package/dist/types/plugins/deploy/platforms/netlify-entry.d.mts +1 -0
- package/package.json +5 -5
- /package/dist/types/plugins/deploy/platforms/{netlify-handler.d.ts → netlify-handler.d.cts} +0 -0
@@ -116,14 +116,14 @@ const createNetlifyPreset = (appContext, modernConfig, needModernServer) => {
|
|
116
116
|
const pluginsCode = `[${plugins.map((plugin, index) => {
|
117
117
|
return `plugin_${index}()`;
|
118
118
|
}).join(",")}]`;
|
119
|
-
let entryCode = (await import_utils.fs.readFile(import_node_path.default.join(__dirname, "./netlify-handler.
|
119
|
+
let entryCode = (await import_utils.fs.readFile(import_node_path.default.join(__dirname, "./netlify-handler.js"))).toString();
|
120
120
|
const serverAppContext = (0, import_utils2.serverAppContenxtTemplate)(appContext);
|
121
121
|
entryCode = entryCode.replace("p_genPluginImportsCode", pluginImportCode).replace("p_ROUTE_SPEC_FILE", `"${import_utils.ROUTE_SPEC_FILE}"`).replace("p_dynamicProdOptions", JSON.stringify(dynamicProdOptions)).replace("p_plugins", pluginsCode).replace("p_sharedDirectory", serverAppContext.sharedDirectory).replace("p_apiDirectory", serverAppContext.apiDirectory).replace("p_lambdaDirectory", serverAppContext.lambdaDirectory);
|
122
122
|
await import_utils.fs.writeFile(handlerFilePath, entryCode);
|
123
123
|
if (isEsmProject) {
|
124
124
|
await import_utils.fs.copy(import_node_path.default.join(__dirname, "./netlify-entry.mjs"), entryFilePath);
|
125
125
|
} else {
|
126
|
-
await import_utils.fs.copy(import_node_path.default.join(__dirname, "./netlify-entry.
|
126
|
+
await import_utils.fs.copy(import_node_path.default.join(__dirname, "./netlify-entry.js"), entryFilePath);
|
127
127
|
}
|
128
128
|
},
|
129
129
|
async end() {
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.57.1-alpha.
|
18
|
+
"version": "2.57.1-alpha.7",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -92,15 +92,15 @@
|
|
92
92
|
"@modern-js/plugin": "2.57.0",
|
93
93
|
"@modern-js/plugin-i18n": "2.57.0",
|
94
94
|
"@modern-js/plugin-lint": "2.57.0",
|
95
|
+
"@modern-js/prod-server": "2.57.0",
|
95
96
|
"@modern-js/rsbuild-plugin-esbuild": "2.57.0",
|
96
97
|
"@modern-js/server": "2.57.0",
|
97
|
-
"@modern-js/server-utils": "2.57.0",
|
98
|
-
"@modern-js/plugin-data-loader": "2.57.0",
|
99
98
|
"@modern-js/server-core": "2.57.0",
|
99
|
+
"@modern-js/server-utils": "2.57.0",
|
100
100
|
"@modern-js/uni-builder": "2.57.0",
|
101
|
+
"@modern-js/types": "2.57.0",
|
101
102
|
"@modern-js/utils": "2.57.0",
|
102
|
-
"@modern-js/
|
103
|
-
"@modern-js/types": "2.57.0"
|
103
|
+
"@modern-js/plugin-data-loader": "2.57.0"
|
104
104
|
},
|
105
105
|
"devDependencies": {
|
106
106
|
"@rsbuild/plugin-swc": "1.0.1-beta.3",
|
File without changes
|