@embeddable.com/sdk-core 3.9.13 → 3.9.14
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/lib/index.esm.js +2 -11
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -11
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/generate.ts +1 -10
package/package.json
CHANGED
package/src/generate.ts
CHANGED
|
@@ -135,16 +135,7 @@ async function runStencil(ctx: any): Promise<void> {
|
|
|
135
135
|
const compiler = await createCompiler(validated.config);
|
|
136
136
|
const buildResults = await compiler.build();
|
|
137
137
|
|
|
138
|
-
if (devMode) {
|
|
139
|
-
// Handle process exit to clean up resources
|
|
140
|
-
const cleanUp = async () => {
|
|
141
|
-
await compiler.destroy();
|
|
142
|
-
process.exit(0);
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
process.on("SIGINT", cleanUp);
|
|
146
|
-
process.on("SIGTERM", cleanUp);
|
|
147
|
-
} else {
|
|
138
|
+
if (!devMode) {
|
|
148
139
|
if (buildResults.hasError) {
|
|
149
140
|
console.error("Stencil build error:", buildResults.diagnostics);
|
|
150
141
|
throw new Error("Stencil build error");
|