@agility/plenum-ui 2.1.16 → 2.1.17
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/build.js +10 -12
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/build.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const { execSync } = require("child_process")
|
|
2
|
-
const esbuild = require("esbuild")
|
|
3
|
-
const path = require("path")
|
|
4
|
-
const { Generator } = require(
|
|
1
|
+
const { execSync } = require("child_process");
|
|
2
|
+
const esbuild = require("esbuild");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const { Generator } = require("npm-dts");
|
|
5
5
|
|
|
6
6
|
new Generator({
|
|
7
7
|
entry: path.resolve(__dirname, "stories/index.ts"),
|
|
8
|
-
output: path.resolve(__dirname,
|
|
8
|
+
output: path.resolve(__dirname, "dist/index.d.ts"),
|
|
9
9
|
tsc: "--emitDeclarationOnly --project tsconfig.lib.json"
|
|
10
10
|
}).generate();
|
|
11
11
|
|
|
12
12
|
// Run TypeScript to generate type declarations using the new tsconfig.lib.json
|
|
13
|
-
execSync("tsc --emitDeclarationOnly --project tsconfig.lib.json", { stdio: "inherit" })
|
|
13
|
+
execSync("tsc --emitDeclarationOnly --project tsconfig.lib.json", { stdio: "inherit" });
|
|
14
14
|
|
|
15
15
|
const context = {
|
|
16
16
|
logLevel: "info",
|
|
@@ -21,8 +21,8 @@ const context = {
|
|
|
21
21
|
target: ["esnext"],
|
|
22
22
|
minify: true,
|
|
23
23
|
pure: ["React.createElement"],
|
|
24
|
-
jsx:
|
|
25
|
-
loader: {
|
|
24
|
+
jsx: "automatic",
|
|
25
|
+
loader: { ".js": "jsx" },
|
|
26
26
|
outdir: path.resolve(__dirname, "dist"),
|
|
27
27
|
sourcemap: true,
|
|
28
28
|
external: [
|
|
@@ -38,9 +38,7 @@ const context = {
|
|
|
38
38
|
"react-icons"
|
|
39
39
|
],
|
|
40
40
|
format: "esm"
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
42
|
|
|
43
43
|
// Build script using esbuild
|
|
44
|
-
esbuild
|
|
45
|
-
.build(context)
|
|
46
|
-
.catch(() => process.exit(1))
|
|
44
|
+
esbuild.build(context).catch(() => process.exit(1));
|