@agility/plenum-ui 2.0.0-rc1 → 2.0.0-rc3

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 CHANGED
@@ -1,6 +1,13 @@
1
1
  const { execSync } = require("child_process")
2
2
  const esbuild = require("esbuild")
3
3
  const path = require("path")
4
+ const { Generator } = require('npm-dts');
5
+
6
+ new Generator({
7
+ entry: path.resolve(__dirname, "stories/index.ts"),
8
+ output: path.resolve(__dirname, 'dist/index.d.ts'),
9
+ tsc: "--emitDeclarationOnly --project tsconfig.lib.json"
10
+ }).generate();
4
11
 
5
12
  // Run TypeScript to generate type declarations using the new tsconfig.lib.json
6
13
  execSync("tsc --emitDeclarationOnly --project tsconfig.lib.json", { stdio: "inherit" })
@@ -12,6 +19,7 @@ esbuild
12
19
  bundle: true,
13
20
  platform: "browser",
14
21
  target: ["es6"],
22
+ //HACK outfile: "dist/index.js,"
15
23
  outdir: path.resolve(__dirname, "dist"),
16
24
  sourcemap: true,
17
25
  external: [