@embeddable.com/sdk-core 4.1.6-next.2 → 4.1.7-next.0
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/defineConfig.d.ts +1 -0
- package/lib/index.esm.js +6 -2
- package/lib/index.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/cleanup.ts +1 -0
- package/src/defineConfig.ts +1 -0
- package/src/dev.test.ts +1 -1
- package/src/dev.ts +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embeddable.com/sdk-core",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.7-next.0",
|
|
4
4
|
"description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"embeddable",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@embeddable.com/core": "2.13.
|
|
44
|
-
"@embeddable.com/sdk-utils": "0.8.
|
|
43
|
+
"@embeddable.com/core": "2.13.4-next.0",
|
|
44
|
+
"@embeddable.com/sdk-utils": "0.8.3-next.0",
|
|
45
45
|
"@inquirer/prompts": "^7.2.1",
|
|
46
46
|
"@stencil/core": "^4.23.0",
|
|
47
47
|
"@swc-node/register": "^1.10.9",
|
package/src/cleanup.ts
CHANGED
package/src/defineConfig.ts
CHANGED
|
@@ -67,6 +67,7 @@ export type ResolvedEmbeddableConfig = {
|
|
|
67
67
|
archiveFile: string;
|
|
68
68
|
errorFallbackComponent?: string;
|
|
69
69
|
bundleHash?: string;
|
|
70
|
+
componentsWithPreview?: string[];
|
|
70
71
|
customizationFile: string;
|
|
71
72
|
lifecycleHooksFile: string;
|
|
72
73
|
componentLibraries: string[] | ComponentLibraryConfig[];
|
package/src/dev.test.ts
CHANGED
|
@@ -249,8 +249,8 @@ describe("dev command", () => {
|
|
|
249
249
|
|
|
250
250
|
// Call the listen callback to simulate the server being set up
|
|
251
251
|
listenMock.mock.calls[0][1]();
|
|
252
|
-
expect(createManifest).toHaveBeenCalled();
|
|
253
252
|
|
|
253
|
+
await expect.poll(() => createManifest).toHaveBeenCalled();
|
|
254
254
|
await expect.poll(() => chokidar.watch).toBeCalledTimes(2);
|
|
255
255
|
});
|
|
256
256
|
|
package/src/dev.ts
CHANGED
|
@@ -248,6 +248,12 @@ export default async () => {
|
|
|
248
248
|
);
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
// Build plugins first to populate componentsWithPreview
|
|
252
|
+
if (config.pushComponents) {
|
|
253
|
+
breadcrumbs.push("build plugins with coordination");
|
|
254
|
+
await executePluginBuilds(config, watchers);
|
|
255
|
+
}
|
|
256
|
+
|
|
251
257
|
breadcrumbs.push("create manifest");
|
|
252
258
|
await createManifest({
|
|
253
259
|
ctx: {
|
|
@@ -266,9 +272,6 @@ export default async () => {
|
|
|
266
272
|
await sendBuildChanges(config);
|
|
267
273
|
|
|
268
274
|
if (config.pushComponents) {
|
|
269
|
-
breadcrumbs.push("build plugins with coordination");
|
|
270
|
-
await executePluginBuilds(config, watchers);
|
|
271
|
-
|
|
272
275
|
const customCanvasCssWatch = globalCustomCanvasWatcher(config);
|
|
273
276
|
watchers.push(customCanvasCssWatch);
|
|
274
277
|
|