@embeddable.com/sdk-core 3.2.0-next.3 → 3.2.0-next.5
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 +6 -6
- package/lib/index.esm.js +8 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +9 -4
- package/lib/index.js.map +1 -1
- package/loader/custom-esm-loader.mjs +1 -2
- package/package.json +1 -1
- package/src/defineConfig.ts +3 -3
- package/src/provideConfig.ts +1 -1
- package/src/push.ts +6 -3
package/lib/defineConfig.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type EmbeddableConfig = {
|
|
2
2
|
plugins: (() => {
|
|
3
3
|
pluginName: string;
|
|
4
|
-
build: (config: EmbeddableConfig) => Promise<
|
|
5
|
-
cleanup: (config: EmbeddableConfig) => Promise<
|
|
6
|
-
validate: (config: EmbeddableConfig) => Promise<
|
|
4
|
+
build: (config: EmbeddableConfig) => Promise<unknown>;
|
|
5
|
+
cleanup: (config: EmbeddableConfig) => Promise<unknown>;
|
|
6
|
+
validate: (config: EmbeddableConfig) => Promise<unknown>;
|
|
7
7
|
})[];
|
|
8
8
|
pushBaseUrl?: string;
|
|
9
9
|
audienceUrl?: string;
|
|
@@ -42,9 +42,9 @@ declare const _default: ({ plugins, pushBaseUrl, audienceUrl, authDomain, authCl
|
|
|
42
42
|
rollbarAccessToken: string;
|
|
43
43
|
plugins: (() => {
|
|
44
44
|
pluginName: string;
|
|
45
|
-
build: (config: EmbeddableConfig) => Promise<
|
|
46
|
-
cleanup: (config: EmbeddableConfig) => Promise<
|
|
47
|
-
validate: (config: EmbeddableConfig) => Promise<
|
|
45
|
+
build: (config: EmbeddableConfig) => Promise<unknown>;
|
|
46
|
+
cleanup: (config: EmbeddableConfig) => Promise<unknown>;
|
|
47
|
+
validate: (config: EmbeddableConfig) => Promise<unknown>;
|
|
48
48
|
})[];
|
|
49
49
|
};
|
|
50
50
|
export default _default;
|
package/lib/index.esm.js
CHANGED
|
@@ -8,6 +8,7 @@ import * as fs$2 from 'node:fs';
|
|
|
8
8
|
import { createNodeLogger, createNodeSys } from '@stencil/core/sys/node';
|
|
9
9
|
import { loadConfig, createCompiler } from '@stencil/core/compiler';
|
|
10
10
|
import * as YAML from 'yaml';
|
|
11
|
+
import * as url$2 from 'node:url';
|
|
11
12
|
import * as path$2 from 'path';
|
|
12
13
|
import path__default, { basename } from 'path';
|
|
13
14
|
import require$$4$1 from 'util';
|
|
@@ -4633,7 +4634,7 @@ var provideConfig = async () => {
|
|
|
4633
4634
|
const configPath = fs$2.existsSync(tsConfigFilePath)
|
|
4634
4635
|
? tsConfigFilePath
|
|
4635
4636
|
: configFilePath;
|
|
4636
|
-
return (await import(configPath)).default;
|
|
4637
|
+
return (await import(url$2.pathToFileURL(configPath).href)).default;
|
|
4637
4638
|
};
|
|
4638
4639
|
|
|
4639
4640
|
function getDefaultExportFromCjs (x) {
|
|
@@ -20082,6 +20083,8 @@ const inquirerSelect = import('@inquirer/select');
|
|
|
20082
20083
|
const YAML_OR_JS_FILES = /^(.*)\.(cube|sc)\.(ya?ml|js)$/;
|
|
20083
20084
|
let ora$1;
|
|
20084
20085
|
var push = async () => {
|
|
20086
|
+
var _a;
|
|
20087
|
+
let spinnerPushing;
|
|
20085
20088
|
try {
|
|
20086
20089
|
checkNodeVersion();
|
|
20087
20090
|
ora$1 = (await oraP$1).default;
|
|
@@ -20092,14 +20095,15 @@ var push = async () => {
|
|
|
20092
20095
|
const filesList = await findFiles(config.client.srcDir, YAML_OR_JS_FILES);
|
|
20093
20096
|
await archive(config, filesList);
|
|
20094
20097
|
spinnerArchive.succeed("Bundling completed");
|
|
20095
|
-
|
|
20098
|
+
spinnerPushing = ora$1(`Publishing to ${workspaceName} using ${config.pushBaseUrl}...`).start();
|
|
20096
20099
|
await sendBuild(config, { workspaceId, token });
|
|
20097
20100
|
spinnerPushing.succeed(`Published to ${workspaceName} using ${config.pushBaseUrl}`);
|
|
20098
20101
|
}
|
|
20099
20102
|
catch (error) {
|
|
20100
|
-
|
|
20103
|
+
spinnerPushing === null || spinnerPushing === void 0 ? void 0 : spinnerPushing.fail("Publishing failed");
|
|
20104
|
+
console.error(((_a = error.response) === null || _a === void 0 ? void 0 : _a.data) || (error === null || error === void 0 ? void 0 : error.message) || error);
|
|
20101
20105
|
await reportErrorToRollbar(error);
|
|
20102
|
-
|
|
20106
|
+
process.exit(1);
|
|
20103
20107
|
}
|
|
20104
20108
|
};
|
|
20105
20109
|
async function selectWorkspace(ctx, token) {
|