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.
Files changed (2) hide show
  1. package/actions.js +2 -3
  2. 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 (option) => {
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
- option = option ?? config;
175
- switch (option.loader) {
174
+ switch (config.loader) {
176
175
  case "EMP":
177
176
  info("开始构建...");
178
177
  const buildResult = shell.exec("npm run build");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qdmp-cli",
3
- "version": "0.1.8-beta.0",
3
+ "version": "0.1.9",
4
4
  "description": "qdmp-cli",
5
5
  "main": "index.js",
6
6
  "type": "module",