@ixon-cdk/static-builder 1.2.0 → 1.3.0-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.
Files changed (2) hide show
  1. package/browser.js +3 -3
  2. package/package.json +2 -2
package/browser.js CHANGED
@@ -40,13 +40,13 @@ async function _build(inputFile, outputFile, tag, assets, production, watch) {
40
40
  };
41
41
 
42
42
  // build
43
- process.on('uncaughtException', (e) => {
43
+ process.on('uncaughtException', e => {
44
44
  console.error(e);
45
45
  });
46
46
 
47
47
  if (!watch) {
48
48
  try {
49
- await build(config);
49
+ await build(config).catch(() => process.exit(1));
50
50
  copyAssets(assets, inputDir, outputDir);
51
51
  } catch (e) {
52
52
  console.error(e);
@@ -56,7 +56,7 @@ async function _build(inputFile, outputFile, tag, assets, production, watch) {
56
56
  // watch source files
57
57
  if (watch) {
58
58
  watchAssets(assets, inputDir, outputDir);
59
- await watchInputDir(inputDir, (isAsset) => {
59
+ await watchInputDir(inputDir, isAsset => {
60
60
  if (isAsset) {
61
61
  // do nothing
62
62
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/static-builder",
3
- "version": "1.2.0",
3
+ "version": "1.3.0-next.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "",
@@ -10,6 +10,6 @@
10
10
  "vite": "4.1.5"
11
11
  },
12
12
  "peerDependencies": {
13
- "@ixon-cdk/core": "^1.2.0"
13
+ "@ixon-cdk/core": "^1.3.0-next.0"
14
14
  }
15
15
  }