@evjs/cli 0.0.25 → 0.0.26
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/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -94,7 +94,7 @@ export async function dev(userConfig, options) {
|
|
|
94
94
|
const cwd = options?.cwd ?? process.cwd();
|
|
95
95
|
process.env.NODE_ENV ??= "development";
|
|
96
96
|
// Collect plugin hooks
|
|
97
|
-
const pluginCtx = { mode: "development", config };
|
|
97
|
+
const pluginCtx = { mode: "development", cwd, config };
|
|
98
98
|
const hooks = await collectPluginHooks(config.plugins, pluginCtx);
|
|
99
99
|
// Run buildStart hooks
|
|
100
100
|
await runBuildStartHooks(hooks);
|
|
@@ -192,7 +192,7 @@ export async function build(userConfig, options) {
|
|
|
192
192
|
const cwd = options?.cwd ?? process.cwd();
|
|
193
193
|
process.env.NODE_ENV ??= "production";
|
|
194
194
|
// Collect plugin hooks
|
|
195
|
-
const pluginCtx = { mode: "production", config };
|
|
195
|
+
const pluginCtx = { mode: "production", cwd, config };
|
|
196
196
|
const hooks = await collectPluginHooks(config.plugins, pluginCtx);
|
|
197
197
|
// Run buildStart hooks
|
|
198
198
|
await runBuildStartHooks(hooks);
|