powerlines 0.1.1 → 0.2.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/dist/astro.cjs +7 -7
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +4 -4
- package/dist/{chunk-PLDWM2ZP.cjs → chunk-36UI6MGH.cjs} +27 -161
- package/dist/{chunk-MR4NWMNG.js → chunk-4G5JM2U7.js} +3 -3
- package/dist/chunk-5MV45EKI.cjs +12 -0
- package/dist/chunk-6ELWESMS.cjs +12 -0
- package/dist/chunk-7BAZMY7X.js +31 -0
- package/dist/chunk-7DR4SM5Q.cjs +12 -0
- package/dist/{chunk-LDMZLIYU.js → chunk-7PPPAQVG.js} +3 -3
- package/dist/{chunk-LTUNZ7DZ.cjs → chunk-7WC6BZUB.cjs} +8 -8
- package/dist/{chunk-2PFQYMJA.js → chunk-AW2A2HBF.js} +3 -3
- package/dist/{chunk-PZIEMKMR.cjs → chunk-CP4GED73.cjs} +4 -4
- package/dist/{chunk-X7YAUPWT.js → chunk-DO777NNH.js} +3 -3
- package/dist/{chunk-AQ3OSJIC.js → chunk-DWOQUF4C.js} +3 -3
- package/dist/{chunk-PRQH6ES4.cjs → chunk-F7IAPUXH.cjs} +4 -4
- package/dist/{chunk-Y4RC2VTI.cjs → chunk-LCN3Q3ZL.cjs} +4 -4
- package/dist/{chunk-KMU74QDP.js → chunk-LSIDWATS.js} +3 -3
- package/dist/{chunk-EHDYKULX.js → chunk-NR3IOPF2.js} +3 -3
- package/dist/chunk-OXO5B3EZ.cjs +34 -0
- package/dist/{chunk-OBXNXCQZ.js → chunk-PUCXHPI3.js} +3 -3
- package/dist/chunk-SVQ5LTOR.cjs +24 -0
- package/dist/{chunk-ROK5VG4A.js → chunk-U6WZV6FF.js} +3 -3
- package/dist/{chunk-M57MJAYC.js → chunk-VH57PPTD.js} +3 -3
- package/dist/{chunk-ZPC4I3DN.js → chunk-WQELBYZJ.js} +27 -161
- package/dist/chunk-WXIHWZ6S.cjs +12 -0
- package/dist/{chunk-WXMIUOWM.cjs → chunk-YSK45CUS.cjs} +4 -4
- package/dist/{chunk-HV6KOSDO.cjs → chunk-YZPVSWJC.cjs} +4 -4
- package/dist/chunk-ZCYO3IQZ.cjs +12 -0
- package/dist/{chunk-CWOTITQ5.js → chunk-ZDRPM5J4.js} +4 -4
- package/dist/{chunk-YUN6BFQD.js → chunk-ZLZMLLHP.js} +3 -3
- package/dist/define-config.d.cts +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +2 -2
- package/dist/index.cjs +17 -17
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -15
- package/dist/internal/api.cjs +2 -2
- package/dist/internal/api.d.cts +1 -1
- package/dist/internal/api.d.ts +1 -1
- package/dist/internal/api.js +1 -1
- package/dist/lib/{chunk-LLNF24PR.cjs → chunk-FGKEOMUJ.cjs} +18 -32
- package/dist/lib/chunk-FGKEOMUJ.cjs.map +1 -0
- package/dist/lib/{chunk-BWYIFI3V.js → chunk-PEFHZMZD.js} +19 -33
- package/dist/lib/chunk-PEFHZMZD.js.map +1 -0
- package/dist/lib/{config-C3R3Xbo2.d.cts → config-BuOWpULa.d.cts} +25 -9
- package/dist/lib/{config-CtEiDMTQ.d.ts → config-Ckb93CH-.d.ts} +25 -9
- package/dist/lib/config-file.d.cts +1 -1
- package/dist/lib/config-file.d.ts +1 -1
- package/dist/lib/deepkit/index.d.cts +1 -1
- package/dist/lib/deepkit/index.d.ts +1 -1
- package/dist/lib/deepkit/reflect-type.d.cts +1 -1
- package/dist/lib/deepkit/reflect-type.d.ts +1 -1
- package/dist/lib/deepkit/resolve-reflections.d.cts +1 -1
- package/dist/lib/deepkit/resolve-reflections.d.ts +1 -1
- package/dist/lib/deepkit/transformer.d.cts +1 -1
- package/dist/lib/deepkit/transformer.d.ts +1 -1
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/index.cjs +54 -76
- package/dist/lib/index.d.cts +1 -6
- package/dist/lib/index.d.ts +1 -6
- package/dist/lib/index.js +10 -16
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/compiler-host.cjs +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +1 -1
- package/dist/lib/typescript/compiler-host.d.ts +1 -1
- package/dist/lib/typescript/compiler-host.js +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.cjs +28 -28
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/index.js +2 -2
- package/dist/lib/typescript/program.d.cts +1 -1
- package/dist/lib/typescript/program.d.ts +1 -1
- package/dist/lib/typescript/transpile.d.cts +1 -1
- package/dist/lib/typescript/transpile.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +6 -7
- package/dist/lib/unplugin/factory.d.cts +1 -1
- package/dist/lib/unplugin/factory.d.ts +1 -1
- package/dist/lib/unplugin/factory.js +5 -6
- package/dist/lib/unplugin/index.cjs +7 -8
- package/dist/lib/unplugin/index.d.cts +1 -1
- package/dist/lib/unplugin/index.d.ts +1 -1
- package/dist/lib/unplugin/index.js +6 -7
- package/dist/lib/unplugin/plugin.d.cts +1 -1
- package/dist/lib/unplugin/plugin.d.ts +1 -1
- package/dist/lib/unplugin/resolve-id.d.cts +1 -1
- package/dist/lib/unplugin/resolve-id.d.ts +1 -1
- package/dist/lib/utilities/index.cjs +28 -28
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/index.js +4 -4
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/plugin-helpers.d.cts +1 -1
- package/dist/lib/utilities/plugin-helpers.d.ts +1 -1
- package/dist/lib/utilities/resolve-path.d.cts +1 -1
- package/dist/lib/utilities/resolve-path.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +7 -7
- package/dist/next.js +4 -4
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.js +5 -5
- package/dist/{resolved-DzrwqBEk.d.cts → resolved-B9ZEtSlF.d.cts} +25 -9
- package/dist/{resolved-hmEJSBeO.d.ts → resolved-EWT3-VMR.d.ts} +25 -9
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.ts +1 -1
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +6 -6
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +3 -3
- package/dist/rspack.cjs +6 -6
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +3 -3
- package/dist/tsup.cjs +7 -7
- package/dist/tsup.js +4 -4
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/compiler.d.cts +1 -1
- package/dist/types/compiler.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +1 -1
- package/dist/types/unplugin.d.ts +1 -1
- package/dist/unloader.cjs +6 -6
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.ts +1 -1
- package/dist/unloader.js +3 -3
- package/dist/unplugin.cjs +17 -17
- package/dist/unplugin.d.cts +1 -1
- package/dist/unplugin.d.ts +1 -1
- package/dist/unplugin.js +14 -14
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +3 -3
- package/package.json +3 -49
- package/dist/chunk-4PQ2IVJD.cjs +0 -12
- package/dist/chunk-GH7UDO5U.js +0 -31
- package/dist/chunk-I7NSMKRL.cjs +0 -12
- package/dist/chunk-JIQTIZIB.cjs +0 -12
- package/dist/chunk-L2YLZOLZ.cjs +0 -12
- package/dist/chunk-QNPN2TBM.cjs +0 -12
- package/dist/chunk-RBNB63XQ.cjs +0 -24
- package/dist/chunk-ZERYZ554.cjs +0 -34
- package/dist/lib/chunk-2POAFUYW.cjs +0 -4
- package/dist/lib/chunk-2POAFUYW.cjs.map +0 -1
- package/dist/lib/chunk-3QWPRNOJ.js +0 -3
- package/dist/lib/chunk-3QWPRNOJ.js.map +0 -1
- package/dist/lib/chunk-6YX3AIYU.js +0 -47
- package/dist/lib/chunk-6YX3AIYU.js.map +0 -1
- package/dist/lib/chunk-BWYIFI3V.js.map +0 -1
- package/dist/lib/chunk-D65TQIQK.cjs +0 -99
- package/dist/lib/chunk-D65TQIQK.cjs.map +0 -1
- package/dist/lib/chunk-GAOL534U.js +0 -43
- package/dist/lib/chunk-GAOL534U.js.map +0 -1
- package/dist/lib/chunk-K6OUCANN.js +0 -75
- package/dist/lib/chunk-K6OUCANN.js.map +0 -1
- package/dist/lib/chunk-LLNF24PR.cjs.map +0 -1
- package/dist/lib/chunk-NS4SXIWY.cjs +0 -49
- package/dist/lib/chunk-NS4SXIWY.cjs.map +0 -1
- package/dist/lib/chunk-P4G2H56N.cjs +0 -4
- package/dist/lib/chunk-P4G2H56N.cjs.map +0 -1
- package/dist/lib/chunk-PEARXSNM.js +0 -3
- package/dist/lib/chunk-PEARXSNM.js.map +0 -1
- package/dist/lib/chunk-W4KT67KR.cjs +0 -134
- package/dist/lib/chunk-W4KT67KR.cjs.map +0 -1
- package/dist/lib/chunk-WX4FTMAA.js +0 -131
- package/dist/lib/chunk-WX4FTMAA.js.map +0 -1
- package/dist/lib/chunk-XBWFWDNB.cjs +0 -69
- package/dist/lib/chunk-XBWFWDNB.cjs.map +0 -1
- package/dist/lib/typedoc/helpers/comment.cjs +0 -12
- package/dist/lib/typedoc/helpers/comment.cjs.map +0 -1
- package/dist/lib/typedoc/helpers/comment.d.cts +0 -3
- package/dist/lib/typedoc/helpers/comment.d.ts +0 -3
- package/dist/lib/typedoc/helpers/comment.js +0 -4
- package/dist/lib/typedoc/helpers/comment.js.map +0 -1
- package/dist/lib/typedoc/helpers/index.cjs +0 -24
- package/dist/lib/typedoc/helpers/index.cjs.map +0 -1
- package/dist/lib/typedoc/helpers/index.d.cts +0 -4
- package/dist/lib/typedoc/helpers/index.d.ts +0 -4
- package/dist/lib/typedoc/helpers/index.js +0 -7
- package/dist/lib/typedoc/helpers/index.js.map +0 -1
- package/dist/lib/typedoc/helpers/markdown-theme.cjs +0 -13
- package/dist/lib/typedoc/helpers/markdown-theme.cjs.map +0 -1
- package/dist/lib/typedoc/helpers/markdown-theme.d.cts +0 -21
- package/dist/lib/typedoc/helpers/markdown-theme.d.ts +0 -21
- package/dist/lib/typedoc/helpers/markdown-theme.js +0 -4
- package/dist/lib/typedoc/helpers/markdown-theme.js.map +0 -1
- package/dist/lib/typedoc/helpers/toc.cjs +0 -23
- package/dist/lib/typedoc/helpers/toc.cjs.map +0 -1
- package/dist/lib/typedoc/helpers/toc.d.cts +0 -9
- package/dist/lib/typedoc/helpers/toc.d.ts +0 -9
- package/dist/lib/typedoc/helpers/toc.js +0 -4
- package/dist/lib/typedoc/helpers/toc.js.map +0 -1
- package/dist/lib/typedoc/index.cjs +0 -30
- package/dist/lib/typedoc/index.cjs.map +0 -1
- package/dist/lib/typedoc/index.d.cts +0 -40
- package/dist/lib/typedoc/index.d.ts +0 -40
- package/dist/lib/typedoc/index.js +0 -9
- package/dist/lib/typedoc/index.js.map +0 -1
- package/dist/lib/typedoc/init.cjs +0 -19
- package/dist/lib/typedoc/init.cjs.map +0 -1
- package/dist/lib/typedoc/init.d.cts +0 -68
- package/dist/lib/typedoc/init.d.ts +0 -68
- package/dist/lib/typedoc/init.js +0 -4
- package/dist/lib/typedoc/init.js.map +0 -1
- package/dist/lib/typedoc/plugin.cjs +0 -14
- package/dist/lib/typedoc/plugin.cjs.map +0 -1
- package/dist/lib/typedoc/plugin.d.cts +0 -8
- package/dist/lib/typedoc/plugin.d.ts +0 -8
- package/dist/lib/typedoc/plugin.js +0 -12
- package/dist/lib/typedoc/plugin.js.map +0 -1
package/dist/astro.cjs
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkYSK45CUS_cjs = require('./chunk-YSK45CUS.cjs');
|
|
6
|
+
require('./chunk-LCN3Q3ZL.cjs');
|
|
7
7
|
require('./chunk-QIKKQQF7.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-7WC6BZUB.cjs');
|
|
9
|
+
require('./chunk-36UI6MGH.cjs');
|
|
10
10
|
require('./chunk-TNAS7QOH.cjs');
|
|
11
11
|
require('./chunk-YE56I7CZ.cjs');
|
|
12
12
|
require('./chunk-5VPVJHJO.cjs');
|
|
@@ -16,15 +16,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "astro", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkYSK45CUS_cjs.astro; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "default", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkYSK45CUS_cjs.astro_default; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "module.exports", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkYSK45CUS_cjs.astro; }
|
|
28
28
|
});
|
|
29
29
|
//# sourceMappingURL=astro.cjs.map
|
|
30
30
|
//# sourceMappingURL=astro.cjs.map
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cJ as ViteResolvedConfig } from './resolved-
|
|
2
|
+
import { cJ as ViteResolvedConfig } from './resolved-B9ZEtSlF.cjs';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/types/configuration';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cJ as ViteResolvedConfig } from './resolved-
|
|
2
|
+
import { cJ as ViteResolvedConfig } from './resolved-EWT3-VMR.js';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/types/configuration';
|
package/dist/astro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { astro, astro_default as default, astro as "module.exports" } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { astro, astro_default as default, astro as "module.exports" } from './chunk-ZLZMLLHP.js';
|
|
2
|
+
import './chunk-AW2A2HBF.js';
|
|
3
3
|
import './chunk-VOB62ELC.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-VH57PPTD.js';
|
|
5
|
+
import './chunk-WQELBYZJ.js';
|
|
6
6
|
import './chunk-X2ZKTEPA.js';
|
|
7
7
|
import './chunk-ILVCZATT.js';
|
|
8
8
|
import './chunk-LO77RPRV.js';
|
|
@@ -25,9 +25,6 @@ var isSetObject = require('@stryke/type-checks/is-set-object');
|
|
|
25
25
|
var isSetString = require('@stryke/type-checks/is-set-string');
|
|
26
26
|
var chalk5 = require('chalk');
|
|
27
27
|
var Handlebars = require('handlebars');
|
|
28
|
-
var promises = require('fs/promises');
|
|
29
|
-
var path = require('path');
|
|
30
|
-
var typedoc = require('typedoc');
|
|
31
28
|
var json = require('@stryke/fs/json');
|
|
32
29
|
var append = require('@stryke/path/append');
|
|
33
30
|
var defu5 = require('defu');
|
|
@@ -37,7 +34,7 @@ var hashFiles = require('@stryke/hash/hash-files');
|
|
|
37
34
|
var getUnique = require('@stryke/helpers/get-unique');
|
|
38
35
|
var kebabCase = require('@stryke/string-format/kebab-case');
|
|
39
36
|
var isUndefined = require('@stryke/type-checks/is-undefined');
|
|
40
|
-
var writeFile = require('@stryke/fs/write-file');
|
|
37
|
+
var writeFile$1 = require('@stryke/fs/write-file');
|
|
41
38
|
var prettier = require('prettier');
|
|
42
39
|
var resolve = require('@stryke/fs/resolve');
|
|
43
40
|
var getConfig = require('@storm-software/config-tools/get-config');
|
|
@@ -69,6 +66,7 @@ var isFile = require('@stryke/fs/is-file');
|
|
|
69
66
|
var readFile = require('@stryke/fs/read-file');
|
|
70
67
|
var semverFns = require('@stryke/fs/semver-fns');
|
|
71
68
|
var getParentPath = require('@stryke/path/get-parent-path');
|
|
69
|
+
var path = require('path');
|
|
72
70
|
var _package = require('@stryke/string-format/package');
|
|
73
71
|
var core = require('@babel/core');
|
|
74
72
|
var MagicString = require('magic-string');
|
|
@@ -101,132 +99,13 @@ function _interopNamespace(e) {
|
|
|
101
99
|
|
|
102
100
|
var chalk5__default = /*#__PURE__*/_interopDefault(chalk5);
|
|
103
101
|
var Handlebars__default = /*#__PURE__*/_interopDefault(Handlebars);
|
|
104
|
-
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
105
102
|
var defu5__default = /*#__PURE__*/_interopDefault(defu5);
|
|
106
103
|
var ts3__default = /*#__PURE__*/_interopDefault(ts3);
|
|
107
104
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
105
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
108
106
|
var MagicString__default = /*#__PURE__*/_interopDefault(MagicString);
|
|
109
107
|
var t__namespace = /*#__PURE__*/_interopNamespace(t);
|
|
110
108
|
|
|
111
|
-
var objectToFrontmatter = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((object = {}) => Object.entries(object).filter(([, value]) => {
|
|
112
|
-
return value !== void 0 && value !== null && value !== "" && typeof value === "string" || Array.isArray(value) && value.length > 0;
|
|
113
|
-
}).map(([key, value]) => `${key}: ${value}`).join("\n"), "objectToFrontmatter");
|
|
114
|
-
var onRendererPageEnd = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((frontmatterObject) => (event) => {
|
|
115
|
-
if (!event.contents) {
|
|
116
|
-
return;
|
|
117
|
-
} else if (/README\.md$/.test(event.url)) {
|
|
118
|
-
event.preventDefault();
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
const frontmatter = `---
|
|
122
|
-
title: '${event.model.name}'
|
|
123
|
-
${objectToFrontmatter(frontmatterObject)}
|
|
124
|
-
---
|
|
125
|
-
|
|
126
|
-
`;
|
|
127
|
-
event.contents = frontmatter + event.contents;
|
|
128
|
-
}, "onRendererPageEnd");
|
|
129
|
-
var buildNavigationFromProjectReflection = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((baseUrl = "", project) => {
|
|
130
|
-
const baseUrlWithoutTrailingSlash = baseUrl.replace(/\/$/gm, "");
|
|
131
|
-
const result = {
|
|
132
|
-
type: "flat"
|
|
133
|
-
};
|
|
134
|
-
const isGroupOfModules = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((group) => group.title === "Modules", "isGroupOfModules");
|
|
135
|
-
const reflectionToNavItem = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((reflection) => {
|
|
136
|
-
return {
|
|
137
|
-
title: reflection.name,
|
|
138
|
-
url: `${baseUrlWithoutTrailingSlash}/${reflection.url}`.replace(/\.md$/, "")
|
|
139
|
-
};
|
|
140
|
-
}, "reflectionToNavItem");
|
|
141
|
-
const modulesGroupToNavigationGroup = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((module) => ({
|
|
142
|
-
items: (module.groups ?? []).flatMap((group) => group.children.map(reflectionToNavItem)),
|
|
143
|
-
name: module.name
|
|
144
|
-
}), "modulesGroupToNavigationGroup");
|
|
145
|
-
const navFromReflectionGroups = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((groups, nav = {
|
|
146
|
-
type: "flat"
|
|
147
|
-
}) => {
|
|
148
|
-
groups.forEach((group) => {
|
|
149
|
-
if (isGroupOfModules(group)) {
|
|
150
|
-
nav.type = "modular";
|
|
151
|
-
nav.modules = group.children.map(modulesGroupToNavigationGroup);
|
|
152
|
-
} else {
|
|
153
|
-
nav.items = nav?.items?.length ? nav.items : [];
|
|
154
|
-
nav.items = nav.items.concat(group.children.flatMap(reflectionToNavItem));
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
return nav;
|
|
158
|
-
}, "navFromReflectionGroups");
|
|
159
|
-
return navFromReflectionGroups(project.groups, result);
|
|
160
|
-
}, "buildNavigationFromProjectReflection");
|
|
161
|
-
var onDeclaration = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((entryPoints = []) => (context, reflection) => {
|
|
162
|
-
if (reflection.kind === typedoc.ReflectionKind.Module) {
|
|
163
|
-
const matchingEntryPoint = entryPoints.find((entryPoint) => entryPoint.path === reflection.sources[0].fullFileName);
|
|
164
|
-
reflection.name = matchingEntryPoint?.name ?? reflection.name;
|
|
165
|
-
}
|
|
166
|
-
}, "onDeclaration");
|
|
167
|
-
var typedocConfig = {
|
|
168
|
-
excludeExternals: true,
|
|
169
|
-
excludeInternal: true,
|
|
170
|
-
excludePrivate: true,
|
|
171
|
-
excludeProtected: true,
|
|
172
|
-
githubPages: false
|
|
173
|
-
};
|
|
174
|
-
var markdownPluginConfig = {
|
|
175
|
-
hideBreadcrumbs: true,
|
|
176
|
-
hideInPageTOC: true,
|
|
177
|
-
hidePageHeader: true,
|
|
178
|
-
hidePageTitle: true
|
|
179
|
-
};
|
|
180
|
-
var removeTrailingSlash = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((pathString = "") => pathString.endsWith(path.sep) ? pathString.slice(0, pathString.length - 1) : pathString, "removeTrailingSlash");
|
|
181
|
-
var initTypedoc = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async (context, options) => {
|
|
182
|
-
const { baseUrl = "/docs/", outputPath } = options;
|
|
183
|
-
const entryPoints = options.entryPoints ?? context.entry.map((entry) => ({
|
|
184
|
-
name: entry.name || entry.output || filePathFns.findFileName(entry.file, {
|
|
185
|
-
withExtension: false
|
|
186
|
-
}),
|
|
187
|
-
path: joinPaths.joinPaths(context.config.projectRoot, entry.file)
|
|
188
|
-
}));
|
|
189
|
-
const app = await typedoc.Application.bootstrapWithPlugins({
|
|
190
|
-
...typedocConfig,
|
|
191
|
-
...markdownPluginConfig,
|
|
192
|
-
gitRevision: context.workspaceConfig.branch || "main",
|
|
193
|
-
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
194
|
-
exclude: context.tsconfig.tsconfigJson.exclude?.filter(Boolean),
|
|
195
|
-
out: outputPath,
|
|
196
|
-
basePath: baseUrl,
|
|
197
|
-
entryPoints: entryPoints?.map((e) => e.path),
|
|
198
|
-
plugin: [
|
|
199
|
-
"typedoc-plugin-markdown",
|
|
200
|
-
"powerlines/lib/typedoc/plugin"
|
|
201
|
-
],
|
|
202
|
-
theme: "powerlines",
|
|
203
|
-
readme: "none",
|
|
204
|
-
excludePrivate: true,
|
|
205
|
-
hideGenerator: true
|
|
206
|
-
}, [
|
|
207
|
-
new typedoc.TypeDocReader(),
|
|
208
|
-
new typedoc.PackageJsonReader(),
|
|
209
|
-
new typedoc.TSConfigReader()
|
|
210
|
-
]);
|
|
211
|
-
app.options.addReader(new typedoc.TSConfigReader());
|
|
212
|
-
app.converter.on(typedoc.Converter.EVENT_CREATE_DECLARATION, onDeclaration(entryPoints));
|
|
213
|
-
const getReflections = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async () => app.convert(), "getReflections");
|
|
214
|
-
const generateDocs = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async (opts) => {
|
|
215
|
-
const { outputPath: outputFolder, project, frontmatter } = opts;
|
|
216
|
-
app.renderer.on(typedoc.PageEvent.END, onRendererPageEnd(frontmatter));
|
|
217
|
-
await app.generateDocs(project, outputFolder || outputPath);
|
|
218
|
-
}, "generateDocs");
|
|
219
|
-
const generateNavigationJSON = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name(async (project, outputFolder = outputPath) => {
|
|
220
|
-
const navigation = buildNavigationFromProjectReflection(baseUrl, project);
|
|
221
|
-
await promises.writeFile(`${removeTrailingSlash(outputFolder)}/nav.json`, JSON.stringify(navigation));
|
|
222
|
-
}, "generateNavigationJSON");
|
|
223
|
-
return {
|
|
224
|
-
app,
|
|
225
|
-
generateDocs,
|
|
226
|
-
generateNavigationJSON,
|
|
227
|
-
getReflections
|
|
228
|
-
};
|
|
229
|
-
}, "initTypedoc");
|
|
230
109
|
function getTsconfigFilePath(workspaceRoot, projectRoot, tsconfig = "tsconfig.json") {
|
|
231
110
|
let tsconfigFilePath = tsconfig;
|
|
232
111
|
if (!exists.existsSync(tsconfigFilePath)) {
|
|
@@ -417,24 +296,24 @@ function addPluginHook(context, plugin, pluginHook, hooksList) {
|
|
|
417
296
|
}
|
|
418
297
|
}
|
|
419
298
|
chunkPK6SKIKE_cjs.__name(addPluginHook, "addPluginHook");
|
|
420
|
-
async function
|
|
299
|
+
async function writeFile(log, filepath, content, skipFormat = false) {
|
|
421
300
|
try {
|
|
422
301
|
if (skipFormat) {
|
|
423
|
-
await writeFile.writeFile(filepath, content);
|
|
302
|
+
await writeFile$1.writeFile(filepath, content);
|
|
424
303
|
} else {
|
|
425
304
|
const config = await prettier.resolveConfig(filepath);
|
|
426
305
|
const formatted = await prettier.format(content, {
|
|
427
306
|
...config ?? {},
|
|
428
307
|
filepath
|
|
429
308
|
});
|
|
430
|
-
await writeFile.writeFile(filepath, formatted || "");
|
|
309
|
+
await writeFile$1.writeFile(filepath, formatted || "");
|
|
431
310
|
}
|
|
432
311
|
} catch (error) {
|
|
433
312
|
log(types.LogLevelLabel.ERROR, `Failed to write file ${filepath} to disk
|
|
434
313
|
${error?.message ? error.message : ""}`);
|
|
435
314
|
}
|
|
436
315
|
}
|
|
437
|
-
chunkPK6SKIKE_cjs.__name(
|
|
316
|
+
chunkPK6SKIKE_cjs.__name(writeFile, "writeFile");
|
|
438
317
|
async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
439
318
|
return defu5__default.default({
|
|
440
319
|
workspaceRoot
|
|
@@ -824,7 +703,7 @@ var VirtualFileSystem = class {
|
|
|
824
703
|
* @returns Whether the ID is a valid runtime ID.
|
|
825
704
|
*/
|
|
826
705
|
isValidBuiltinId(id) {
|
|
827
|
-
return id.startsWith(`${this.#context.config.builtinPrefix}:`);
|
|
706
|
+
return id.startsWith(`${this.#context.config.output.builtinPrefix}:`);
|
|
828
707
|
}
|
|
829
708
|
/**
|
|
830
709
|
* Check if a path or ID corresponds to a virtual file.
|
|
@@ -1404,7 +1283,7 @@ var VirtualFileSystem = class {
|
|
|
1404
1283
|
if (!isSetString.isSetString(path2)) {
|
|
1405
1284
|
throw new Error(`Invalid path provided. Expected a string or a valid file path.`);
|
|
1406
1285
|
}
|
|
1407
|
-
return path2.replace(new RegExp(`^${this.#context.config.builtinPrefix}:`), "").replace(/^\\0/, "");
|
|
1286
|
+
return path2.replace(new RegExp(`^${this.#context.config.output.builtinPrefix}:`), "").replace(/^\\0/, "");
|
|
1408
1287
|
}
|
|
1409
1288
|
/**
|
|
1410
1289
|
* Converts a relative path to an absolute path based on the workspace and project root.
|
|
@@ -1428,7 +1307,7 @@ var VirtualFileSystem = class {
|
|
|
1428
1307
|
* @returns The formatted runtime ID.
|
|
1429
1308
|
*/
|
|
1430
1309
|
formatRuntimeId(id) {
|
|
1431
|
-
return `${this.#context.config.builtinPrefix}:${this.formatFilePath(id).replace(/\.[m|c]?[t|j]sx?$/, "")}`;
|
|
1310
|
+
return `${this.#context.config.output.builtinPrefix}:${this.formatFilePath(id).replace(/\.[m|c]?[t|j]sx?$/, "")}`;
|
|
1432
1311
|
}
|
|
1433
1312
|
/**
|
|
1434
1313
|
* Resolves a path or ID parameter to a corresponding virtual file path in the virtual file system (VFS).
|
|
@@ -1437,7 +1316,7 @@ var VirtualFileSystem = class {
|
|
|
1437
1316
|
* @returns The resolved file path if it exists, otherwise undefined.
|
|
1438
1317
|
*/
|
|
1439
1318
|
resolvePathName(pathOrId, options = {}) {
|
|
1440
|
-
if (pathOrId.startsWith(`${this.#context.config.builtinPrefix}:`)) {
|
|
1319
|
+
if (pathOrId.startsWith(`${this.#context.config.output.builtinPrefix}:`)) {
|
|
1441
1320
|
return false;
|
|
1442
1321
|
}
|
|
1443
1322
|
if (isType.isAbsolutePath(pathOrId)) {
|
|
@@ -1755,7 +1634,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1755
1634
|
configFile: config.configFile,
|
|
1756
1635
|
customLogger: config.customLogger,
|
|
1757
1636
|
logLevel: config.logLevel,
|
|
1758
|
-
builtinPrefix: config.builtinPrefix,
|
|
1759
1637
|
tsconfig: config.tsconfig,
|
|
1760
1638
|
tsconfigRaw: config.tsconfigRaw,
|
|
1761
1639
|
skipCache: config.skipCache,
|
|
@@ -2063,7 +1941,9 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2063
1941
|
output: {
|
|
2064
1942
|
outputPath: join.joinPaths("dist", cacheKey.projectRoot),
|
|
2065
1943
|
mode: "virtual",
|
|
2066
|
-
dts: join.joinPaths(cacheKey.projectRoot, "
|
|
1944
|
+
dts: join.joinPaths(cacheKey.projectRoot, "powerlines.d.ts"),
|
|
1945
|
+
builtinPrefix: "powerlines",
|
|
1946
|
+
runtimeFolder: join.joinPaths(cacheKey.projectRoot, ".powerlines"),
|
|
2067
1947
|
assets: [
|
|
2068
1948
|
{
|
|
2069
1949
|
glob: "LICENSE"
|
|
@@ -2085,7 +1965,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2085
1965
|
mode: "production",
|
|
2086
1966
|
projectType: "application",
|
|
2087
1967
|
logLevel: "info",
|
|
2088
|
-
builtinPrefix: "storm",
|
|
2089
1968
|
preview: false,
|
|
2090
1969
|
environments: {},
|
|
2091
1970
|
transform: {
|
|
@@ -2598,7 +2477,7 @@ export default getConfig({
|
|
|
2598
2477
|
});
|
|
2599
2478
|
`;
|
|
2600
2479
|
log(types.LogLevelLabel.INFO, `Writing a default ESLint config file to ${eslintConfigFile}`);
|
|
2601
|
-
return
|
|
2480
|
+
return writeFile(log, eslintConfigFile, eslintConfig);
|
|
2602
2481
|
}
|
|
2603
2482
|
chunkPK6SKIKE_cjs.__name(writeDefaultEslintConfig, "writeDefaultEslintConfig");
|
|
2604
2483
|
var VALID_SEVERITY = [
|
|
@@ -2616,7 +2495,7 @@ async function writeOutputFile(log, outputFile, outputData) {
|
|
|
2616
2495
|
log(types.LogLevelLabel.ERROR, `Cannot write to output file path, it is a directory: ${filePath}`);
|
|
2617
2496
|
} else {
|
|
2618
2497
|
try {
|
|
2619
|
-
await
|
|
2498
|
+
await writeFile(log, filePath, outputData);
|
|
2620
2499
|
log(types.LogLevelLabel.INFO, `The output file has been created: ${filePath}`);
|
|
2621
2500
|
} catch (err) {
|
|
2622
2501
|
log(types.LogLevelLabel.ERROR, `There was a problem writing the output file: ${filePath}`);
|
|
@@ -3282,7 +3161,7 @@ async function resolveTsconfig(context) {
|
|
|
3282
3161
|
`).join("\n")}
|
|
3283
3162
|
`);
|
|
3284
3163
|
}
|
|
3285
|
-
await
|
|
3164
|
+
await writeFile(context.log, context.tsconfig.tsconfigFilePath, stormJson.StormJSON.stringify(updateTsconfigJson));
|
|
3286
3165
|
context.tsconfig = getParsedTypeScriptConfig(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.config.tsconfig);
|
|
3287
3166
|
if (!context.tsconfig) {
|
|
3288
3167
|
throw new Error("Failed to parse the TypeScript configuration file.");
|
|
@@ -3529,7 +3408,7 @@ ${console$1.formatLogMessage(context.config)}`);
|
|
|
3529
3408
|
for (const file of files) {
|
|
3530
3409
|
context.log(types.LogLevelLabel.TRACE, `Adding template file: ${file}`);
|
|
3531
3410
|
const template = Handlebars__default.default.compile(file);
|
|
3532
|
-
await
|
|
3411
|
+
await writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
|
|
3533
3412
|
}
|
|
3534
3413
|
await this.callNormalHook(context, "new");
|
|
3535
3414
|
if (context.config.projectType === "application") {
|
|
@@ -3537,14 +3416,14 @@ ${console$1.formatLogMessage(context.config)}`);
|
|
|
3537
3416
|
for (const file of files2) {
|
|
3538
3417
|
context.log(types.LogLevelLabel.TRACE, `Adding application template file: ${file}`);
|
|
3539
3418
|
const template = Handlebars__default.default.compile(file);
|
|
3540
|
-
await
|
|
3419
|
+
await writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
|
|
3541
3420
|
}
|
|
3542
3421
|
} else {
|
|
3543
3422
|
const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.corePackagePath, "files/library/**/*.hbs"));
|
|
3544
3423
|
for (const file of files2) {
|
|
3545
3424
|
context.log(types.LogLevelLabel.TRACE, `Adding library template file: ${file}`);
|
|
3546
3425
|
const template = Handlebars__default.default.compile(file);
|
|
3547
|
-
await
|
|
3426
|
+
await writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
|
|
3548
3427
|
}
|
|
3549
3428
|
}
|
|
3550
3429
|
await this.callPostHook(context, "new");
|
|
@@ -3628,27 +3507,14 @@ ${console$1.formatLogMessage(context.config)}`);
|
|
|
3628
3507
|
async docs(inlineConfig = {
|
|
3629
3508
|
command: "docs"
|
|
3630
3509
|
}) {
|
|
3631
|
-
this.context.log(types.LogLevelLabel.INFO, "Generating documentation for the Powerlines project");
|
|
3510
|
+
this.context.log(types.LogLevelLabel.INFO, "\u{1F4D3} Generating documentation for the Powerlines project");
|
|
3632
3511
|
await this.prepare(inlineConfig);
|
|
3633
3512
|
await this.#executeEnvironments(async (context) => {
|
|
3634
|
-
context.log(types.LogLevelLabel.TRACE, "Writing
|
|
3635
|
-
await this.
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
await helpers.removeDirectory(outputPath);
|
|
3639
|
-
}
|
|
3640
|
-
await helpers.createDirectory(outputPath);
|
|
3641
|
-
await this.callNormalHook(context, "docs");
|
|
3642
|
-
const { generateDocs, getReflections } = await initTypedoc(context, {
|
|
3643
|
-
outputPath
|
|
3513
|
+
context.log(types.LogLevelLabel.TRACE, "Writing documentation for the Powerlines project artifacts.");
|
|
3514
|
+
await this.prepare(inlineConfig);
|
|
3515
|
+
await this.#executeEnvironments(async (context2) => {
|
|
3516
|
+
await this.callHook(context2, "docs");
|
|
3644
3517
|
});
|
|
3645
|
-
const project = await getReflections();
|
|
3646
|
-
if (project) {
|
|
3647
|
-
await generateDocs({
|
|
3648
|
-
project
|
|
3649
|
-
});
|
|
3650
|
-
}
|
|
3651
|
-
await this.callPostHook(context, "docs");
|
|
3652
3518
|
});
|
|
3653
3519
|
this.#context.log(types.LogLevelLabel.TRACE, "Powerlines documentation generation completed");
|
|
3654
3520
|
}
|
|
@@ -3940,5 +3806,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
3940
3806
|
exports.PowerlinesAPI = PowerlinesAPI;
|
|
3941
3807
|
exports.createLog = createLog;
|
|
3942
3808
|
exports.getString = getString;
|
|
3943
|
-
//# sourceMappingURL=chunk-
|
|
3944
|
-
//# sourceMappingURL=chunk-
|
|
3809
|
+
//# sourceMappingURL=chunk-36UI6MGH.cjs.map
|
|
3810
|
+
//# sourceMappingURL=chunk-36UI6MGH.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-VH57PPTD.js';
|
|
2
2
|
import { createRollupPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var rollup = createRollupPlugin(createUnpluginFactory("rollup"));
|
|
5
5
|
var rollup_default = rollup;
|
|
6
6
|
|
|
7
7
|
export { rollup, rollup_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-4G5JM2U7.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-4G5JM2U7.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7WC6BZUB_cjs = require('./chunk-7WC6BZUB.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunk7WC6BZUB_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-5MV45EKI.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-5MV45EKI.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7WC6BZUB_cjs = require('./chunk-7WC6BZUB.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunk7WC6BZUB_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-6ELWESMS.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-6ELWESMS.cjs.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { rollup_default } from './chunk-4G5JM2U7.js';
|
|
2
|
+
import { rspack_default } from './chunk-LSIDWATS.js';
|
|
3
|
+
import { tsup_default } from './chunk-DWOQUF4C.js';
|
|
4
|
+
import { unloader_default } from './chunk-7PPPAQVG.js';
|
|
5
|
+
import { astro_default } from './chunk-ZLZMLLHP.js';
|
|
6
|
+
import { esbuild_default } from './chunk-NR3IOPF2.js';
|
|
7
|
+
import { next_default } from './chunk-PUCXHPI3.js';
|
|
8
|
+
import { nuxt_default } from './chunk-ZDRPM5J4.js';
|
|
9
|
+
import { vite_default } from './chunk-AW2A2HBF.js';
|
|
10
|
+
import { webpack_default } from './chunk-DO777NNH.js';
|
|
11
|
+
import { rolldown_default } from './chunk-U6WZV6FF.js';
|
|
12
|
+
|
|
13
|
+
// src/unplugin.ts
|
|
14
|
+
var plugins = {
|
|
15
|
+
astro: astro_default,
|
|
16
|
+
esbuild: esbuild_default,
|
|
17
|
+
next: next_default,
|
|
18
|
+
nuxt: nuxt_default,
|
|
19
|
+
rolldown: rolldown_default,
|
|
20
|
+
rollup: rollup_default,
|
|
21
|
+
rspack: rspack_default,
|
|
22
|
+
tsup: tsup_default,
|
|
23
|
+
unloader: unloader_default,
|
|
24
|
+
vite: vite_default,
|
|
25
|
+
webpack: webpack_default
|
|
26
|
+
};
|
|
27
|
+
var unplugin_default = plugins;
|
|
28
|
+
|
|
29
|
+
export { plugins, unplugin_default };
|
|
30
|
+
//# sourceMappingURL=chunk-7BAZMY7X.js.map
|
|
31
|
+
//# sourceMappingURL=chunk-7BAZMY7X.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7WC6BZUB_cjs = require('./chunk-7WC6BZUB.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rollup = unplugin.createRollupPlugin(chunk7WC6BZUB_cjs.createUnpluginFactory("rollup"));
|
|
7
|
+
var rollup_default = rollup;
|
|
8
|
+
|
|
9
|
+
exports.rollup = rollup;
|
|
10
|
+
exports.rollup_default = rollup_default;
|
|
11
|
+
//# sourceMappingURL=chunk-7DR4SM5Q.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-7DR4SM5Q.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-VH57PPTD.js';
|
|
2
2
|
import { createUnloaderPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var unloader = createUnloaderPlugin(createUnpluginFactory("unloader"));
|
|
5
5
|
var unloader_default = unloader;
|
|
6
6
|
|
|
7
7
|
export { unloader, unloader_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-7PPPAQVG.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-7PPPAQVG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk36UI6MGH_cjs = require('./chunk-36UI6MGH.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
var types = require('@storm-software/config-tools/types');
|
|
6
6
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
@@ -78,7 +78,7 @@ chunkPK6SKIKE_cjs.__name(handleResolveId, "handleResolveId");
|
|
|
78
78
|
// src/lib/unplugin/factory.ts
|
|
79
79
|
function createUnpluginFactory(variant, decorate) {
|
|
80
80
|
return (config, meta) => {
|
|
81
|
-
const log =
|
|
81
|
+
const log = chunk36UI6MGH_cjs.createLog("unplugin", config);
|
|
82
82
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
83
83
|
try {
|
|
84
84
|
const userConfig = {
|
|
@@ -91,7 +91,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
91
91
|
async function buildStart() {
|
|
92
92
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
93
93
|
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(process.cwd());
|
|
94
|
-
api = await
|
|
94
|
+
api = await chunk36UI6MGH_cjs.PowerlinesAPI.from(workspaceRoot, userConfig);
|
|
95
95
|
if (api.context.config.build.skipNodeModulesBundle) {
|
|
96
96
|
resolvePatterns = bundleRequire.tsconfigPathsToRegExp(api.context.tsconfig.options.paths ?? []);
|
|
97
97
|
}
|
|
@@ -140,15 +140,15 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
140
140
|
async function transform(code, id) {
|
|
141
141
|
const environment = await api.context.getEnvironment();
|
|
142
142
|
let transformed = code;
|
|
143
|
-
let result2 = await api.callPreHook(environment, "transform",
|
|
143
|
+
let result2 = await api.callPreHook(environment, "transform", chunk36UI6MGH_cjs.getString(transformed), id);
|
|
144
144
|
if (result2) {
|
|
145
145
|
transformed = result2;
|
|
146
146
|
}
|
|
147
|
-
result2 = await api.callNormalHook(environment, "transform",
|
|
147
|
+
result2 = await api.callNormalHook(environment, "transform", chunk36UI6MGH_cjs.getString(transformed), id);
|
|
148
148
|
if (result2) {
|
|
149
149
|
transformed = result2;
|
|
150
150
|
}
|
|
151
|
-
result2 = await api.callPostHook(environment, "transform",
|
|
151
|
+
result2 = await api.callPostHook(environment, "transform", chunk36UI6MGH_cjs.getString(transformed), id);
|
|
152
152
|
if (result2) {
|
|
153
153
|
transformed = result2;
|
|
154
154
|
}
|
|
@@ -198,5 +198,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
198
198
|
chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
199
199
|
|
|
200
200
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
201
|
-
//# sourceMappingURL=chunk-
|
|
202
|
-
//# sourceMappingURL=chunk-
|
|
201
|
+
//# sourceMappingURL=chunk-7WC6BZUB.cjs.map
|
|
202
|
+
//# sourceMappingURL=chunk-7WC6BZUB.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-VOB62ELC.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-VH57PPTD.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -105,5 +105,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
105
105
|
var vite_default = vite;
|
|
106
106
|
|
|
107
107
|
export { vite, vite_default };
|
|
108
|
-
//# sourceMappingURL=chunk-
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
108
|
+
//# sourceMappingURL=chunk-AW2A2HBF.js.map
|
|
109
|
+
//# sourceMappingURL=chunk-AW2A2HBF.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkQIKKQQF7_cjs = require('./chunk-QIKKQQF7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk7WC6BZUB_cjs = require('./chunk-7WC6BZUB.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var isUndefined = require('@stryke/type-checks/is-undefined');
|
|
7
7
|
var unplugin = require('unplugin');
|
|
8
8
|
|
|
9
|
-
var esbuild = unplugin.createEsbuildPlugin(
|
|
9
|
+
var esbuild = unplugin.createEsbuildPlugin(chunk7WC6BZUB_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -30,5 +30,5 @@ var esbuild_default = esbuild;
|
|
|
30
30
|
|
|
31
31
|
exports.esbuild = esbuild;
|
|
32
32
|
exports.esbuild_default = esbuild_default;
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-CP4GED73.cjs.map
|
|
34
|
+
//# sourceMappingURL=chunk-CP4GED73.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-VH57PPTD.js';
|
|
2
2
|
import { createWebpackPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
|
|
5
5
|
var webpack_default = webpack;
|
|
6
6
|
|
|
7
7
|
export { webpack, webpack_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-DO777NNH.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-DO777NNH.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { esbuild_default } from './chunk-
|
|
1
|
+
import { esbuild_default } from './chunk-NR3IOPF2.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { omit } from '@stryke/helpers/omit';
|
|
4
4
|
|
|
@@ -35,5 +35,5 @@ __name(tsup, "tsup");
|
|
|
35
35
|
var tsup_default = tsup;
|
|
36
36
|
|
|
37
37
|
export { tsup, tsup_default };
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-DWOQUF4C.js.map
|
|
39
|
+
//# sourceMappingURL=chunk-DWOQUF4C.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5MV45EKI_cjs = require('./chunk-5MV45EKI.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
|
|
6
6
|
// src/next.ts
|
|
@@ -10,7 +10,7 @@ function next(config = {}) {
|
|
|
10
10
|
webpack(webpackConfig, context) {
|
|
11
11
|
const result = config.webpack?.(webpackConfig, context) || webpackConfig;
|
|
12
12
|
result.plugins ??= [];
|
|
13
|
-
result.plugins.push(
|
|
13
|
+
result.plugins.push(chunk5MV45EKI_cjs.webpack_default(webpackConfig));
|
|
14
14
|
return result;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
@@ -20,5 +20,5 @@ var next_default = next;
|
|
|
20
20
|
|
|
21
21
|
exports.next = next;
|
|
22
22
|
exports.next_default = next_default;
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-F7IAPUXH.cjs.map
|
|
24
|
+
//# sourceMappingURL=chunk-F7IAPUXH.cjs.map
|