@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.
- package/README.md +1 -1
- package/bin/unbuild.js +1614 -191
- package/bin/unbuild.mjs +1620 -201
- package/dist/build.js +10 -10
- package/dist/build.mjs +1 -1
- package/dist/chunk-2Q67L63A.js +2456 -0
- package/dist/chunk-4WKFVYTI.js +18 -0
- package/dist/{chunk-XEAFTDQ7.js → chunk-6KE6SIPQ.js} +5 -5
- package/dist/{chunk-DFIGNXGY.js → chunk-B2WY6JG2.js} +1035 -1035
- package/dist/{chunk-WPOEGALQ.js → chunk-BMAXMHJB.js} +5 -5
- package/dist/{chunk-3OJD7CO4.js → chunk-E73BVQF5.js} +5 -5
- package/dist/chunk-J5YBLOB7.js +27 -0
- package/dist/{chunk-RCEWRXM5.js → chunk-RUNO4F6F.js} +2 -2
- package/dist/chunk-SGIQJ2OU.mjs +2455 -0
- package/dist/{chunk-OQPSH7GE.js → chunk-UUI4UWA4.js} +37 -37
- package/dist/clean.d.mts +12 -2
- package/dist/clean.d.ts +12 -2
- package/dist/clean.js +4 -4
- package/dist/config.js +8 -8
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +1 -1
- package/dist/types.js +1 -0
- package/package.json +1 -1
- package/dist/chunk-2345XTVS.js +0 -1036
- package/dist/chunk-3GQAWCBQ.js +0 -13
- package/dist/chunk-AYRYNROK.js +0 -27
- package/dist/chunk-WGFWMGCJ.mjs +0 -1036
- package/dist/clean-DDbna8D4.d.mts +0 -1194
- package/dist/clean-DDbna8D4.d.ts +0 -1194
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUUI4UWA4js = require('./chunk-UUI4UWA4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4WKFVYTIjs = require('./chunk-4WKFVYTI.js');
|
|
7
7
|
|
|
8
8
|
// src/plugins/on-error.ts
|
|
9
|
-
var onErrorPlugin = /* @__PURE__ */
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
4
|
+
var _chunkUUI4UWA4js = require('./chunk-UUI4UWA4.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
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
|
-
|
|
13
|
-
const stopwatch =
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
34
|
+
_chunk4WKFVYTIjs.__name.call(void 0, typeDefinitions, "typeDefinitions");
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|