@embeddable.com/sdk-react 0.0.12 → 0.0.13
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/scripts/build.js +5 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
> @embeddable.com/sdk-react@0.0.
|
|
2
|
+
> @embeddable.com/sdk-react@0.0.13 build
|
|
3
3
|
> rollup -c
|
|
4
4
|
|
|
5
|
-
(node:
|
|
5
|
+
(node:1876) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
|
|
6
6
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
7
|
-
(node:
|
|
7
|
+
(node:1876) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mlib/index.umd.js[22m...[39m
|
|
10
|
-
[32mcreated [1mlib/index.umd.js[22m in [1m2.
|
|
10
|
+
[32mcreated [1mlib/index.umd.js[22m in [1m2.8s[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./src/index.ts[22m → [1mlib/index.cjs.js, lib/index.esm.js[22m...[39m
|
|
13
|
-
[32mcreated [1mlib/index.cjs.js, lib/index.esm.js[22m in [1m1.
|
|
13
|
+
[32mcreated [1mlib/index.cjs.js, lib/index.esm.js[22m in [1m1.7s[22m[39m
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/scripts/build.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const path = require("path");
|
|
2
2
|
const { fork } = require('child_process');
|
|
3
|
+
const oraP = import('ora');
|
|
3
4
|
|
|
4
5
|
const {createContext} = require("./createContext");
|
|
5
6
|
const {prepare} = require("./prepare");
|
|
@@ -12,9 +13,9 @@ const generateFork = fork(
|
|
|
12
13
|
);
|
|
13
14
|
|
|
14
15
|
async function build() {
|
|
15
|
-
const ora = await
|
|
16
|
+
const ora = (await oraP).default;
|
|
16
17
|
|
|
17
|
-
const spinnerPrepare = ora
|
|
18
|
+
const spinnerPrepare = ora("preparing...").start();
|
|
18
19
|
|
|
19
20
|
const ctx = createContext(path.resolve(__dirname, '..'), process.cwd());
|
|
20
21
|
|
|
@@ -22,7 +23,7 @@ async function build() {
|
|
|
22
23
|
await prepare(ctx);
|
|
23
24
|
spinnerPrepare.succeed("preparation competed");
|
|
24
25
|
|
|
25
|
-
const spinnerBuild = ora
|
|
26
|
+
const spinnerBuild = ora("building...").start();
|
|
26
27
|
|
|
27
28
|
generateFork.send({ ctx });
|
|
28
29
|
|
|
@@ -37,7 +38,7 @@ module.exports = { build };
|
|
|
37
38
|
|
|
38
39
|
// TODO: later we will validate configs e.g. yaml files with this function.
|
|
39
40
|
function validationEmulation() {
|
|
40
|
-
return new Promise((res,
|
|
41
|
+
return new Promise((res, _rej) => {
|
|
41
42
|
setTimeout(res, 4000);
|
|
42
43
|
})
|
|
43
44
|
}
|