@storm-software/unbuild 0.20.1 → 0.22.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.
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOQPSH7GEjs = require('./chunk-OQPSH7GE.js');
3
+ var _chunkUUI4UWA4js = require('./chunk-UUI4UWA4.js');
4
4
 
5
5
 
6
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
6
+ var _chunk4WKFVYTIjs = require('./chunk-4WKFVYTI.js');
7
7
 
8
8
  // src/plugins/on-error.ts
9
- var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => ({
9
+ var onErrorPlugin = /* @__PURE__ */ _chunk4WKFVYTIjs.__name.call(void 0, (options, resolvedOptions) => ({
10
10
  name: "storm:on-error",
11
11
  buildEnd(error) {
12
12
  if (error) {
13
- _chunkOQPSH7GEjs.writeError.call(void 0, `The following errors occurred during the build:
13
+ _chunkUUI4UWA4js.writeError.call(void 0, `The following errors occurred during the build:
14
14
  ${error ? error.message : "Unknown build error"}
15
15
 
16
16
  `, resolvedOptions.config);
@@ -18,7 +18,7 @@ ${error ? error.message : "Unknown build error"}
18
18
  }
19
19
  },
20
20
  renderError(error) {
21
- _chunkOQPSH7GEjs.writeError.call(void 0, `The following errors occurred during the build:
21
+ _chunkUUI4UWA4js.writeError.call(void 0, `The following errors occurred during the build:
22
22
  ${error ? error.message : "Unknown build error"}
23
23
 
24
24
  `, resolvedOptions.config);
@@ -1,23 +1,23 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOQPSH7GEjs = require('./chunk-OQPSH7GE.js');
4
+ var _chunkUUI4UWA4js = require('./chunk-UUI4UWA4.js');
5
5
 
6
6
 
7
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
7
+ var _chunk4WKFVYTIjs = require('./chunk-4WKFVYTI.js');
8
8
 
9
9
  // src/clean.ts
10
10
  var _promises = require('fs/promises');
11
11
  async function clean(name = "Unbuild", directory, config) {
12
- _chunkOQPSH7GEjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
- const stopwatch = _chunkOQPSH7GEjs.getStopwatch.call(void 0, `${name} output clean`);
12
+ _chunkUUI4UWA4js.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
13
+ const stopwatch = _chunkUUI4UWA4js.getStopwatch.call(void 0, `${name} output clean`);
14
14
  await _promises.rm.call(void 0, directory, {
15
15
  recursive: true,
16
16
  force: true
17
17
  });
18
18
  stopwatch();
19
19
  }
20
- _chunk3GQAWCBQjs.__name.call(void 0, clean, "clean");
20
+ _chunk4WKFVYTIjs.__name.call(void 0, clean, "clean");
21
21
 
22
22
 
23
23
 
@@ -0,0 +1,27 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkB2WY6JG2js = require('./chunk-B2WY6JG2.js');
4
+
5
+
6
+ var _chunkRUNO4F6Fjs = require('./chunk-RUNO4F6F.js');
7
+
8
+
9
+ var _chunk6KE6SIPQjs = require('./chunk-6KE6SIPQ.js');
10
+
11
+
12
+ var _chunkBMAXMHJBjs = require('./chunk-BMAXMHJB.js');
13
+
14
+
15
+ var _chunk4WKFVYTIjs = require('./chunk-4WKFVYTI.js');
16
+
17
+ // src/config.ts
18
+ var getDefaultBuildPlugins = /* @__PURE__ */ _chunk4WKFVYTIjs.__name.call(void 0, async (options, resolvedOptions) => Promise.all([
19
+ _chunk6KE6SIPQjs.analyzePlugin.call(void 0, options, resolvedOptions),
20
+ _chunkRUNO4F6Fjs.typeDefinitions.call(void 0, resolvedOptions.projectRoot),
21
+ _chunkB2WY6JG2js.tscPlugin.call(void 0, options, resolvedOptions),
22
+ _chunkBMAXMHJBjs.onErrorPlugin.call(void 0, options, resolvedOptions)
23
+ ].map((plugin) => Promise.resolve(plugin))), "getDefaultBuildPlugins");
24
+
25
+
26
+
27
+ exports.getDefaultBuildPlugins = getDefaultBuildPlugins;
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
3
+ var _chunk4WKFVYTIjs = require('./chunk-4WKFVYTI.js');
4
4
 
5
5
  // src/plugins/type-definitions.ts
6
6
  var _path = require('path');
@@ -31,7 +31,7 @@ export { default } from ${relativeSourceDtsName};
31
31
  }
32
32
  };
33
33
  }
34
- _chunk3GQAWCBQjs.__name.call(void 0, typeDefinitions, "typeDefinitions");
34
+ _chunk4WKFVYTIjs.__name.call(void 0, typeDefinitions, "typeDefinitions");
35
35
 
36
36
 
37
37