@akanjs/devkit 0.0.117 → 0.0.119
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/cjs/src/builder.js
CHANGED
|
@@ -57,11 +57,6 @@ class Builder {
|
|
|
57
57
|
platform: this.#pkgJson.esbuild?.platform,
|
|
58
58
|
format,
|
|
59
59
|
outdir: `${this.#distExecutor.cwdPath}/${format}`,
|
|
60
|
-
// outdir: this.#distExecutor.cwdPath,
|
|
61
|
-
// outExtension: { ".js": format === "cjs" ? ".js" : ".esm.js" },
|
|
62
|
-
// format === "cjs"
|
|
63
|
-
// ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" }
|
|
64
|
-
// : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
|
|
65
60
|
logLevel: "error"
|
|
66
61
|
};
|
|
67
62
|
}
|
|
@@ -102,8 +97,6 @@ class Builder {
|
|
|
102
97
|
require: "./cjs/index.js",
|
|
103
98
|
import: "./esm/index.js",
|
|
104
99
|
types: "./index.d.ts"
|
|
105
|
-
// require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
|
|
106
|
-
// import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
|
|
107
100
|
}
|
|
108
101
|
}
|
|
109
102
|
};
|
|
@@ -177,6 +177,7 @@ const runCommands = async (...commands) => {
|
|
|
177
177
|
} catch (e) {
|
|
178
178
|
const errMsg = e instanceof Error ? e.message : typeof e === "string" ? e : JSON.stringify(e);
|
|
179
179
|
import_common.Logger.error(`Command Error: ${import_chalk.default.red(errMsg)}`);
|
|
180
|
+
console.error(e);
|
|
180
181
|
}
|
|
181
182
|
});
|
|
182
183
|
}
|
package/esm/src/builder.js
CHANGED
|
@@ -25,11 +25,6 @@ class Builder {
|
|
|
25
25
|
platform: this.#pkgJson.esbuild?.platform,
|
|
26
26
|
format,
|
|
27
27
|
outdir: `${this.#distExecutor.cwdPath}/${format}`,
|
|
28
|
-
// outdir: this.#distExecutor.cwdPath,
|
|
29
|
-
// outExtension: { ".js": format === "cjs" ? ".js" : ".esm.js" },
|
|
30
|
-
// format === "cjs"
|
|
31
|
-
// ? { ".js": this.#pkgJson.type === "module" ? ".cjs" : ".js" }
|
|
32
|
-
// : { ".js": this.#pkgJson.type === "module" ? ".js" : ".mjs" },
|
|
33
28
|
logLevel: "error"
|
|
34
29
|
};
|
|
35
30
|
}
|
|
@@ -70,8 +65,6 @@ class Builder {
|
|
|
70
65
|
require: "./cjs/index.js",
|
|
71
66
|
import: "./esm/index.js",
|
|
72
67
|
types: "./index.d.ts"
|
|
73
|
-
// require: this.#pkgJson.type === "module" ? "./index.cjs" : "./index.js",
|
|
74
|
-
// import: this.#pkgJson.type === "module" ? "./index.js" : "./index.mjs",
|
|
75
68
|
}
|
|
76
69
|
}
|
|
77
70
|
};
|
|
@@ -145,6 +145,7 @@ const runCommands = async (...commands) => {
|
|
|
145
145
|
} catch (e) {
|
|
146
146
|
const errMsg = e instanceof Error ? e.message : typeof e === "string" ? e : JSON.stringify(e);
|
|
147
147
|
Logger.error(`Command Error: ${chalk.red(errMsg)}`);
|
|
148
|
+
console.error(e);
|
|
148
149
|
}
|
|
149
150
|
});
|
|
150
151
|
}
|
package/package.json
CHANGED
package/src/executors.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare class WorkspaceExecutor extends Executor {
|
|
|
52
52
|
getBaseDevEnv(): {
|
|
53
53
|
repoName: string;
|
|
54
54
|
serveDomain: string;
|
|
55
|
-
env: "
|
|
55
|
+
env: "testing" | "local" | "debug" | "develop" | "main";
|
|
56
56
|
name?: string | undefined;
|
|
57
57
|
};
|
|
58
58
|
scan(): Promise<WorkspaceScanResult>;
|