qdmp-cli 0.1.8-beta.0 → 0.1.9
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/actions.js +2 -3
- package/package.json +1 -1
package/actions.js
CHANGED
|
@@ -163,7 +163,7 @@ export const initConfigAction = async (option) => {
|
|
|
163
163
|
error(e.message);
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
export const buildAction = async (
|
|
166
|
+
export const buildAction = async () => {
|
|
167
167
|
try {
|
|
168
168
|
const qdmpJsonPath = `${process.cwd()}/qdmp.json`;
|
|
169
169
|
if (!fs.existsSync(qdmpJsonPath)) {
|
|
@@ -171,8 +171,7 @@ export const buildAction = async (option) => {
|
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
const config = JSON.parse(fs.readFileSync(qdmpJsonPath, "utf8"));
|
|
174
|
-
|
|
175
|
-
switch (option.loader) {
|
|
174
|
+
switch (config.loader) {
|
|
176
175
|
case "EMP":
|
|
177
176
|
info("开始构建...");
|
|
178
177
|
const buildResult = shell.exec("npm run build");
|