powerlines 0.3.0 → 0.4.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 +8 -8
- package/dist/astro.d.cts +2 -2
- package/dist/astro.d.ts +2 -2
- package/dist/astro.js +5 -5
- package/dist/{chunk-M7LAFZJC.cjs → chunk-2HFMIZYO.cjs} +8 -8
- package/dist/{chunk-EODIWGJH.cjs → chunk-2WZTZIPL.cjs} +4 -4
- package/dist/{chunk-OE4YQRV3.js → chunk-4HA6WES7.js} +33 -32
- package/dist/{chunk-PCCYWWFV.cjs → chunk-4YWVR54C.cjs} +33 -32
- package/dist/{chunk-P5GGDZUL.cjs → chunk-4ZXJF3CL.cjs} +4 -4
- package/dist/{chunk-56HZJA6Y.js → chunk-5DH4T6HI.js} +3 -3
- package/dist/chunk-6FA3IOW2.cjs +12 -0
- package/dist/{chunk-LRMTFNMK.js → chunk-6XFFNJCS.js} +3 -3
- package/dist/{chunk-FPX2EVBU.cjs → chunk-A3H5EZ5M.cjs} +4 -4
- package/dist/{chunk-WZEUHWMP.js → chunk-AM4EJ45G.js} +3 -3
- package/dist/{chunk-JNJHD7IF.js → chunk-AWFN3GRI.js} +3 -3
- package/dist/{chunk-ICOR66M4.js → chunk-B4LIFIMY.js} +4 -4
- package/dist/chunk-EU27ZVAT.cjs +12 -0
- package/dist/{chunk-TNAS7QOH.cjs → chunk-FO3BCZ7I.cjs} +2 -2
- package/dist/{chunk-PYZBMYP5.cjs → chunk-G22O7YG6.cjs} +2 -2
- package/dist/{chunk-AWSOFXSZ.js → chunk-H6Q4VIN2.js} +3 -3
- package/dist/{chunk-3T4PHMIA.cjs → chunk-IG5EBLIY.cjs} +4 -4
- package/dist/{chunk-OL7A3UTX.js → chunk-K3M64YD3.js} +3 -3
- package/dist/chunk-KWL6GUEE.cjs +12 -0
- package/dist/{chunk-MCLMQP6E.cjs → chunk-LWR6R534.cjs} +4 -4
- package/dist/chunk-NLBJDVPY.js +31 -0
- package/dist/{chunk-V7LHKVYM.js → chunk-NX4KYNFX.js} +3 -3
- package/dist/chunk-O7I3HSK7.cjs +24 -0
- package/dist/chunk-OP7ENM3G.cjs +12 -0
- package/dist/{chunk-M5KSW26K.js → chunk-P44S6KC7.js} +2 -2
- package/dist/{chunk-QU4WXUK2.js → chunk-QIFYDXQR.js} +3 -3
- package/dist/chunk-QS4DORVI.cjs +34 -0
- package/dist/{chunk-X2ZKTEPA.js → chunk-SXQLYT2H.js} +2 -2
- package/dist/{chunk-TCSH3FQA.js → chunk-TBJ2VLKL.js} +3 -3
- package/dist/chunk-TIVHQTCA.cjs +12 -0
- package/dist/{chunk-VG7PGLU3.js → chunk-ZLDA32TD.js} +3 -3
- package/dist/{chunk-ICPUJUTG.js → chunk-ZU75LI5N.js} +3 -3
- package/dist/define-config.d.cts +2 -2
- package/dist/define-config.d.ts +2 -2
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.ts +2 -2
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +2 -2
- package/dist/farm.d.ts +2 -2
- package/dist/farm.js +3 -3
- package/dist/index.cjs +21 -21
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -17
- package/dist/internal/api.cjs +3 -3
- package/dist/internal/api.d.cts +2 -2
- package/dist/internal/api.d.ts +2 -2
- package/dist/internal/api.js +2 -2
- package/dist/lib/{chunk-WV4DZRNU.cjs → chunk-PTSKT4XY.cjs} +31 -30
- package/dist/lib/chunk-PTSKT4XY.cjs.map +1 -0
- package/dist/lib/{chunk-JZT4ZOXK.js → chunk-VGGQJDIU.js} +32 -31
- package/dist/lib/chunk-VGGQJDIU.js.map +1 -0
- package/dist/lib/{config-BH42eQeu.d.cts → config-COmv2gYP.d.cts} +14 -18
- package/dist/lib/{config-DwaKbb1W.d.ts → config-Du9blYJM.d.ts} +14 -18
- package/dist/lib/config-file.d.cts +2 -2
- package/dist/lib/config-file.d.ts +2 -2
- package/dist/lib/deepkit/index.d.cts +2 -2
- package/dist/lib/deepkit/index.d.ts +2 -2
- package/dist/lib/deepkit/reflect-type.d.cts +2 -2
- package/dist/lib/deepkit/reflect-type.d.ts +2 -2
- package/dist/lib/deepkit/resolve-reflections.d.cts +2 -2
- package/dist/lib/deepkit/resolve-reflections.d.ts +2 -2
- package/dist/lib/deepkit/transformer.d.cts +2 -2
- package/dist/lib/deepkit/transformer.d.ts +2 -2
- package/dist/lib/entry.d.cts +2 -2
- package/dist/lib/entry.d.ts +2 -2
- package/dist/lib/index.cjs +2 -2
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +1 -1
- package/dist/lib/logger.d.cts +2 -2
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/typescript/compiler-host.d.cts +2 -2
- package/dist/lib/typescript/compiler-host.d.ts +2 -2
- package/dist/lib/typescript/import-transformer.d.cts +2 -2
- package/dist/lib/typescript/import-transformer.d.ts +2 -2
- package/dist/lib/typescript/index.d.cts +2 -2
- package/dist/lib/typescript/index.d.ts +2 -2
- package/dist/lib/typescript/program.d.cts +2 -2
- package/dist/lib/typescript/program.d.ts +2 -2
- package/dist/lib/typescript/transpile.d.cts +2 -2
- package/dist/lib/typescript/transpile.d.ts +2 -2
- package/dist/lib/unplugin/factory.cjs +2 -2
- package/dist/lib/unplugin/factory.d.cts +2 -2
- package/dist/lib/unplugin/factory.d.ts +2 -2
- package/dist/lib/unplugin/factory.js +1 -1
- package/dist/lib/unplugin/index.cjs +2 -2
- package/dist/lib/unplugin/index.d.cts +2 -2
- package/dist/lib/unplugin/index.d.ts +2 -2
- package/dist/lib/unplugin/index.js +1 -1
- package/dist/lib/unplugin/plugin.d.cts +2 -2
- package/dist/lib/unplugin/plugin.d.ts +2 -2
- package/dist/lib/unplugin/resolve-id.d.cts +2 -2
- package/dist/lib/unplugin/resolve-id.d.ts +2 -2
- package/dist/lib/utilities/file-header.d.cts +2 -2
- package/dist/lib/utilities/file-header.d.ts +2 -2
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.ts +2 -2
- package/dist/lib/utilities/meta.d.cts +2 -2
- package/dist/lib/utilities/meta.d.ts +2 -2
- package/dist/lib/utilities/plugin-helpers.d.cts +2 -2
- package/dist/lib/utilities/plugin-helpers.d.ts +2 -2
- package/dist/lib/utilities/resolve-path.d.cts +2 -2
- package/dist/lib/utilities/resolve-path.d.ts +2 -2
- package/dist/lib/utilities/worker.d.cts +2 -2
- package/dist/lib/utilities/worker.d.ts +2 -2
- package/dist/lib/utilities/write-file.d.cts +2 -2
- package/dist/lib/utilities/write-file.d.ts +2 -2
- package/dist/next.cjs +8 -8
- package/dist/next.js +5 -5
- package/dist/nuxt.cjs +9 -9
- package/dist/nuxt.js +6 -6
- package/dist/{resolved-CXRrX1o1.d.cts → resolved-Cbv90ASf.d.cts} +15 -21
- package/dist/{resolved-BGRXu5is.d.ts → resolved-yKa67XHB.d.ts} +15 -21
- package/dist/rolldown.cjs +7 -7
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.ts +2 -2
- package/dist/rolldown.js +4 -4
- package/dist/rollup.cjs +7 -7
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +4 -4
- package/dist/rspack.cjs +7 -7
- package/dist/rspack.d.cts +2 -2
- package/dist/rspack.d.ts +2 -2
- package/dist/rspack.js +4 -4
- package/dist/tsup.cjs +8 -8
- package/dist/tsup.js +5 -5
- package/dist/types/babel.d.cts +2 -2
- package/dist/types/babel.d.ts +2 -2
- package/dist/types/commands.d.cts +2 -2
- package/dist/types/commands.d.ts +2 -2
- package/dist/types/compiler.d.cts +2 -2
- package/dist/types/compiler.d.ts +2 -2
- package/dist/types/config.d.cts +2 -2
- package/dist/types/config.d.ts +2 -2
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +2 -2
- package/dist/types/context.d.ts +2 -2
- package/dist/types/context.js +1 -1
- package/dist/types/hooks.d.cts +2 -2
- package/dist/types/hooks.d.ts +2 -2
- package/dist/types/index.cjs +4 -4
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +2 -2
- package/dist/types/plugin.cjs +2 -2
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.ts +2 -2
- package/dist/types/plugin.js +1 -1
- package/dist/types/resolved.d.cts +2 -2
- package/dist/types/resolved.d.ts +2 -2
- package/dist/types/unplugin.d.cts +2 -2
- package/dist/types/unplugin.d.ts +2 -2
- package/dist/unloader.cjs +7 -7
- package/dist/unloader.d.cts +2 -2
- package/dist/unloader.d.ts +2 -2
- package/dist/unloader.js +4 -4
- package/dist/unplugin.cjs +18 -18
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +15 -15
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +4 -4
- package/package.json +2 -2
- package/dist/chunk-5HUMTYPQ.cjs +0 -12
- package/dist/chunk-5KDXM73F.cjs +0 -12
- package/dist/chunk-7LMJKG7Q.cjs +0 -12
- package/dist/chunk-AKPS5IUC.cjs +0 -24
- package/dist/chunk-IRWJCRSN.cjs +0 -12
- package/dist/chunk-LBLKLGQF.cjs +0 -12
- package/dist/chunk-QW6XE4SD.cjs +0 -34
- package/dist/chunk-Y77AS64Z.js +0 -31
- package/dist/lib/chunk-JZT4ZOXK.js.map +0 -1
- package/dist/lib/chunk-WV4DZRNU.cjs.map +0 -1
package/dist/astro.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunk2WZTZIPL_cjs = require('./chunk-2WZTZIPL.cjs');
|
|
6
|
+
require('./chunk-LWR6R534.cjs');
|
|
7
7
|
require('./chunk-QIKKQQF7.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-2HFMIZYO.cjs');
|
|
9
|
+
require('./chunk-4YWVR54C.cjs');
|
|
10
|
+
require('./chunk-FO3BCZ7I.cjs');
|
|
11
11
|
require('./chunk-YE56I7CZ.cjs');
|
|
12
12
|
require('./chunk-5VPVJHJO.cjs');
|
|
13
13
|
require('./chunk-PK6SKIKE.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 chunk2WZTZIPL_cjs.astro; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "default", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk2WZTZIPL_cjs.astro_default; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "module.exports", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk2WZTZIPL_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 {
|
|
2
|
+
import { cD as ViteResolvedConfig } from './resolved-Cbv90ASf.cjs';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/types/configuration';
|
|
@@ -25,6 +25,7 @@ import 'jest-worker';
|
|
|
25
25
|
import 'jiti';
|
|
26
26
|
import 'memfs';
|
|
27
27
|
import 'powerlines/deepkit/type';
|
|
28
|
+
import 'semver';
|
|
28
29
|
import 'unimport';
|
|
29
30
|
import 'unplugin';
|
|
30
31
|
import '@stryke/capnp';
|
|
@@ -33,7 +34,6 @@ import './types/tsconfig.cjs';
|
|
|
33
34
|
import '@stryke/types/tsconfig';
|
|
34
35
|
import 'typescript';
|
|
35
36
|
import '@stryke/types/array';
|
|
36
|
-
import 'semver';
|
|
37
37
|
import './types/vfs.cjs';
|
|
38
38
|
import 'node:fs';
|
|
39
39
|
import 'unionfs';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import {
|
|
2
|
+
import { cD as ViteResolvedConfig } from './resolved-yKa67XHB.js';
|
|
3
3
|
import '@storm-software/config-tools/types';
|
|
4
4
|
import '@stryke/types/base';
|
|
5
5
|
import '@stryke/types/configuration';
|
|
@@ -25,6 +25,7 @@ import 'jest-worker';
|
|
|
25
25
|
import 'jiti';
|
|
26
26
|
import 'memfs';
|
|
27
27
|
import 'powerlines/deepkit/type';
|
|
28
|
+
import 'semver';
|
|
28
29
|
import 'unimport';
|
|
29
30
|
import 'unplugin';
|
|
30
31
|
import '@stryke/capnp';
|
|
@@ -33,7 +34,6 @@ import './types/tsconfig.js';
|
|
|
33
34
|
import '@stryke/types/tsconfig';
|
|
34
35
|
import 'typescript';
|
|
35
36
|
import '@stryke/types/array';
|
|
36
|
-
import 'semver';
|
|
37
37
|
import './types/vfs.js';
|
|
38
38
|
import 'node:fs';
|
|
39
39
|
import 'unionfs';
|
package/dist/astro.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-QIFYDXQR.js';
|
|
2
|
+
import './chunk-6XFFNJCS.js';
|
|
3
3
|
import './chunk-VOB62ELC.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
import './chunk-H6Q4VIN2.js';
|
|
5
|
+
import './chunk-4HA6WES7.js';
|
|
6
|
+
import './chunk-SXQLYT2H.js';
|
|
7
7
|
import './chunk-ILVCZATT.js';
|
|
8
8
|
import './chunk-LO77RPRV.js';
|
|
9
9
|
import './chunk-7QVYU63E.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4YWVR54C_cjs = require('./chunk-4YWVR54C.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 = chunk4YWVR54C_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 chunk4YWVR54C_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", chunk4YWVR54C_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", chunk4YWVR54C_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", chunk4YWVR54C_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-2HFMIZYO.cjs.map
|
|
202
|
+
//# sourceMappingURL=chunk-2HFMIZYO.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLWR6R534_cjs = require('./chunk-LWR6R534.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
|
|
6
6
|
// src/astro.ts
|
|
7
7
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
8
8
|
vite: {
|
|
9
9
|
plugins: [
|
|
10
|
-
|
|
10
|
+
chunkLWR6R534_cjs.vite_default(config)
|
|
11
11
|
]
|
|
12
12
|
}
|
|
13
13
|
}), "astro");
|
|
@@ -15,5 +15,5 @@ var astro_default = astro;
|
|
|
15
15
|
|
|
16
16
|
exports.astro = astro;
|
|
17
17
|
exports.astro_default = astro_default;
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-2WZTZIPL.cjs.map
|
|
19
|
+
//# sourceMappingURL=chunk-2WZTZIPL.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PLUGIN_NON_HOOK_FIELDS } from './chunk-
|
|
1
|
+
import { PLUGIN_NON_HOOK_FIELDS } from './chunk-SXQLYT2H.js';
|
|
2
2
|
import { __VFS_CACHE__, __VFS_RESOLVER__, __VFS_VIRTUAL__, __VFS_UNIFIED__, __VFS_INIT__, __VFS_REVERT__ } from './chunk-ILVCZATT.js';
|
|
3
3
|
import { SUPPORTED_COMMANDS } from './chunk-LO77RPRV.js';
|
|
4
4
|
import { __name } from './chunk-7QVYU63E.js';
|
|
@@ -62,7 +62,7 @@ import { Union } from 'unionfs';
|
|
|
62
62
|
import { isObject } from '@stryke/type-checks/is-object';
|
|
63
63
|
import { isDirectory } from '@stryke/fs/is-file';
|
|
64
64
|
import { readFile, readFileIfExistingSync } from '@stryke/fs/read-file';
|
|
65
|
-
import {
|
|
65
|
+
import { parseVersion } from '@stryke/fs/semver-fns';
|
|
66
66
|
import { getParentPath } from '@stryke/path/get-parent-path';
|
|
67
67
|
import path from 'node:path';
|
|
68
68
|
import { hasPackageVersion, getPackageName, getPackageVersion } from '@stryke/string-format/package';
|
|
@@ -1624,16 +1624,23 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1624
1624
|
static async from(workspaceRoot, config) {
|
|
1625
1625
|
const context = new _PowerlinesContext(await loadWorkspaceConfig(workspaceRoot, config.root));
|
|
1626
1626
|
await context.withUserConfig(config);
|
|
1627
|
-
context.
|
|
1628
|
-
if (!context.
|
|
1629
|
-
throw new Error("Could not resolve powerlines package location.");
|
|
1627
|
+
context.powerlinesPath = await resolvePackage("powerlines");
|
|
1628
|
+
if (!context.powerlinesPath) {
|
|
1629
|
+
throw new Error("Could not resolve `powerlines` package location.");
|
|
1630
1630
|
}
|
|
1631
1631
|
return context;
|
|
1632
1632
|
}
|
|
1633
|
+
/**
|
|
1634
|
+
* An object containing the dependencies that should be installed for the project
|
|
1635
|
+
*/
|
|
1633
1636
|
dependencies = {};
|
|
1637
|
+
/**
|
|
1638
|
+
* An object containing the development dependencies that should be installed for the project
|
|
1639
|
+
*/
|
|
1640
|
+
devDependencies = {};
|
|
1634
1641
|
reflections = {};
|
|
1635
1642
|
persistedMeta = void 0;
|
|
1636
|
-
|
|
1643
|
+
powerlinesPath;
|
|
1637
1644
|
packageJson;
|
|
1638
1645
|
projectJson = void 0;
|
|
1639
1646
|
resolver;
|
|
@@ -1723,7 +1730,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1723
1730
|
* Get the path to the artifacts directory for the project
|
|
1724
1731
|
*/
|
|
1725
1732
|
get artifactsPath() {
|
|
1726
|
-
return joinPaths$1(this.workspaceConfig.workspaceRoot, this.config.projectRoot,
|
|
1733
|
+
return joinPaths$1(this.workspaceConfig.workspaceRoot, this.config.projectRoot, this.config.output.artifactsFolder);
|
|
1727
1734
|
}
|
|
1728
1735
|
/**
|
|
1729
1736
|
* Get the path to the builtin modules used by the project
|
|
@@ -1909,7 +1916,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1909
1916
|
mode: "virtual",
|
|
1910
1917
|
dts: joinPaths$1(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
|
|
1911
1918
|
builtinPrefix: config.framework ?? "powerlines",
|
|
1912
|
-
|
|
1919
|
+
artifactsFolder: joinPaths$1(cacheKey.projectRoot, `.${config.framework ?? "powerlines"}`),
|
|
1913
1920
|
assets: [
|
|
1914
1921
|
{
|
|
1915
1922
|
glob: "LICENSE"
|
|
@@ -2114,9 +2121,9 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends P
|
|
|
2114
2121
|
static async fromConfig(workspaceConfig, config) {
|
|
2115
2122
|
const context = new _PowerlinesEnvironmentContext(config, workspaceConfig);
|
|
2116
2123
|
await context.init();
|
|
2117
|
-
context.
|
|
2118
|
-
if (!context.
|
|
2119
|
-
throw new Error("Could not resolve powerlines package location.");
|
|
2124
|
+
context.powerlinesPath = await resolvePackage("powerlines");
|
|
2125
|
+
if (!context.powerlinesPath) {
|
|
2126
|
+
throw new Error("Could not resolve `powerlines` package location.");
|
|
2120
2127
|
}
|
|
2121
2128
|
return context;
|
|
2122
2129
|
}
|
|
@@ -2234,9 +2241,9 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
|
|
|
2234
2241
|
static async from(workspaceRoot, config) {
|
|
2235
2242
|
const context = new _PowerlinesAPIContext(await loadWorkspaceConfig(workspaceRoot, config.root));
|
|
2236
2243
|
await context.withUserConfig(config);
|
|
2237
|
-
context.
|
|
2238
|
-
if (!context.
|
|
2239
|
-
throw new Error("Could not resolve powerlines package location.");
|
|
2244
|
+
context.powerlinesPath = await resolvePackage("powerlines");
|
|
2245
|
+
if (!context.powerlinesPath) {
|
|
2246
|
+
throw new Error("Could not resolve `powerlines` package location.");
|
|
2240
2247
|
}
|
|
2241
2248
|
return context;
|
|
2242
2249
|
}
|
|
@@ -2342,7 +2349,7 @@ async function installPackage(context, packageName, dev = false) {
|
|
|
2342
2349
|
} else {
|
|
2343
2350
|
context.log(LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "skipInstalls" option is set to true, it will not be installed automatically.`);
|
|
2344
2351
|
}
|
|
2345
|
-
} else if (hasPackageVersion(packageName) && !process.env.
|
|
2352
|
+
} else if (hasPackageVersion(packageName) && !process.env.POWERLINES_SKIP_VERSION_CHECK) {
|
|
2346
2353
|
const isMatching = await doesPackageMatch(getPackageName(packageName), getPackageVersion(packageName), context.config.projectRoot);
|
|
2347
2354
|
if (!isMatching) {
|
|
2348
2355
|
const packageListing = await getPackageListing(getPackageName(packageName), {
|
|
@@ -2952,20 +2959,14 @@ __name(generateTypes, "generateTypes");
|
|
|
2952
2959
|
async function installDependencies(context) {
|
|
2953
2960
|
context.log(LogLevelLabel.TRACE, `Checking and installing missing project dependencies.`);
|
|
2954
2961
|
context.dependencies ??= {};
|
|
2955
|
-
context.dependencies
|
|
2956
|
-
type: "dependency"
|
|
2957
|
-
};
|
|
2962
|
+
context.dependencies.powerlines = "latest";
|
|
2958
2963
|
if (context.config.projectType === "application") {
|
|
2959
|
-
context.dependencies.unstorage =
|
|
2960
|
-
type: "dependency"
|
|
2961
|
-
};
|
|
2962
|
-
}
|
|
2963
|
-
context.log(LogLevelLabel.TRACE, `The following packages must be installed as dependencies:
|
|
2964
|
-
${Object.keys(context.dependencies).map((key) => ` - ${getPackageName(key)}${hasPackageVersion(key) || isSetObject(context.dependencies[key]) && isSetString(context.dependencies[key].version) ? ` v${isSetObject(context.dependencies[key]) && isSetString(context.dependencies[key].version) ? context.dependencies[key].version : getPackageVersion(key)}` : ""} (${(isString(context.dependencies[key]) ? context.dependencies[key] : context.dependencies[key]?.type) || "dependency"})`).join("\n")}`);
|
|
2965
|
-
for (const [key, value] of Object.entries(context.dependencies)) {
|
|
2966
|
-
const version = isSetObject(value) && isValidRange(value.version) && value.version || getPackageVersion(key);
|
|
2967
|
-
await installPackage(context, version ? `${getPackageName(key)}@${String(version)}` : getPackageName(key), (isSetString(value) ? value : value.type) === "devDependency");
|
|
2964
|
+
context.dependencies.unstorage = "latest";
|
|
2968
2965
|
}
|
|
2966
|
+
await Promise.all([
|
|
2967
|
+
Promise.all(Object.entries(context.dependencies).map(async ([name, version]) => installPackage(context, `${getPackageName(name)}@${String(version)}`, false))),
|
|
2968
|
+
Promise.all(Object.entries(context.devDependencies).map(async ([name, version]) => installPackage(context, `${getPackageName(name)}@${String(version)}`, true)))
|
|
2969
|
+
]);
|
|
2969
2970
|
}
|
|
2970
2971
|
__name(installDependencies, "installDependencies");
|
|
2971
2972
|
async function resolveTsconfigChanges(context) {
|
|
@@ -3374,7 +3375,7 @@ ${formatLogMessage(context.config)}`);
|
|
|
3374
3375
|
await this.#executeEnvironments(async (context) => {
|
|
3375
3376
|
context.log(LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
|
|
3376
3377
|
await this.callPreHook(context, "new");
|
|
3377
|
-
const files = await listFiles(joinPaths(context.
|
|
3378
|
+
const files = await listFiles(joinPaths(context.powerlinesPath, "files/common/**/*.hbs"));
|
|
3378
3379
|
for (const file of files) {
|
|
3379
3380
|
context.log(LogLevelLabel.TRACE, `Adding template file: ${file}`);
|
|
3380
3381
|
const template = Handlebars.compile(file);
|
|
@@ -3382,14 +3383,14 @@ ${formatLogMessage(context.config)}`);
|
|
|
3382
3383
|
}
|
|
3383
3384
|
await this.callNormalHook(context, "new");
|
|
3384
3385
|
if (context.config.projectType === "application") {
|
|
3385
|
-
const files2 = await listFiles(joinPaths(context.
|
|
3386
|
+
const files2 = await listFiles(joinPaths(context.powerlinesPath, "files/application/**/*.hbs"));
|
|
3386
3387
|
for (const file of files2) {
|
|
3387
3388
|
context.log(LogLevelLabel.TRACE, `Adding application template file: ${file}`);
|
|
3388
3389
|
const template = Handlebars.compile(file);
|
|
3389
3390
|
await writeFile(context.log, joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
|
|
3390
3391
|
}
|
|
3391
3392
|
} else {
|
|
3392
|
-
const files2 = await listFiles(joinPaths(context.
|
|
3393
|
+
const files2 = await listFiles(joinPaths(context.powerlinesPath, "files/library/**/*.hbs"));
|
|
3393
3394
|
for (const file of files2) {
|
|
3394
3395
|
context.log(LogLevelLabel.TRACE, `Adding library template file: ${file}`);
|
|
3395
3396
|
const template = Handlebars.compile(file);
|
|
@@ -3774,5 +3775,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
3774
3775
|
};
|
|
3775
3776
|
|
|
3776
3777
|
export { PowerlinesAPI, createLog, getString };
|
|
3777
|
-
//# sourceMappingURL=chunk-
|
|
3778
|
-
//# sourceMappingURL=chunk-
|
|
3778
|
+
//# sourceMappingURL=chunk-4HA6WES7.js.map
|
|
3779
|
+
//# sourceMappingURL=chunk-4HA6WES7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFO3BCZ7I_cjs = require('./chunk-FO3BCZ7I.cjs');
|
|
4
4
|
var chunkYE56I7CZ_cjs = require('./chunk-YE56I7CZ.cjs');
|
|
5
5
|
var chunk5VPVJHJO_cjs = require('./chunk-5VPVJHJO.cjs');
|
|
6
6
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
@@ -1655,16 +1655,23 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1655
1655
|
static async from(workspaceRoot, config) {
|
|
1656
1656
|
const context = new _PowerlinesContext(await loadWorkspaceConfig(workspaceRoot, config.root));
|
|
1657
1657
|
await context.withUserConfig(config);
|
|
1658
|
-
context.
|
|
1659
|
-
if (!context.
|
|
1660
|
-
throw new Error("Could not resolve powerlines package location.");
|
|
1658
|
+
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
1659
|
+
if (!context.powerlinesPath) {
|
|
1660
|
+
throw new Error("Could not resolve `powerlines` package location.");
|
|
1661
1661
|
}
|
|
1662
1662
|
return context;
|
|
1663
1663
|
}
|
|
1664
|
+
/**
|
|
1665
|
+
* An object containing the dependencies that should be installed for the project
|
|
1666
|
+
*/
|
|
1664
1667
|
dependencies = {};
|
|
1668
|
+
/**
|
|
1669
|
+
* An object containing the development dependencies that should be installed for the project
|
|
1670
|
+
*/
|
|
1671
|
+
devDependencies = {};
|
|
1665
1672
|
reflections = {};
|
|
1666
1673
|
persistedMeta = void 0;
|
|
1667
|
-
|
|
1674
|
+
powerlinesPath;
|
|
1668
1675
|
packageJson;
|
|
1669
1676
|
projectJson = void 0;
|
|
1670
1677
|
resolver;
|
|
@@ -1754,7 +1761,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1754
1761
|
* Get the path to the artifacts directory for the project
|
|
1755
1762
|
*/
|
|
1756
1763
|
get artifactsPath() {
|
|
1757
|
-
return join.joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot,
|
|
1764
|
+
return join.joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, this.config.output.artifactsFolder);
|
|
1758
1765
|
}
|
|
1759
1766
|
/**
|
|
1760
1767
|
* Get the path to the builtin modules used by the project
|
|
@@ -1940,7 +1947,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1940
1947
|
mode: "virtual",
|
|
1941
1948
|
dts: join.joinPaths(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
|
|
1942
1949
|
builtinPrefix: config.framework ?? "powerlines",
|
|
1943
|
-
|
|
1950
|
+
artifactsFolder: join.joinPaths(cacheKey.projectRoot, `.${config.framework ?? "powerlines"}`),
|
|
1944
1951
|
assets: [
|
|
1945
1952
|
{
|
|
1946
1953
|
glob: "LICENSE"
|
|
@@ -2145,9 +2152,9 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends P
|
|
|
2145
2152
|
static async fromConfig(workspaceConfig, config) {
|
|
2146
2153
|
const context = new _PowerlinesEnvironmentContext(config, workspaceConfig);
|
|
2147
2154
|
await context.init();
|
|
2148
|
-
context.
|
|
2149
|
-
if (!context.
|
|
2150
|
-
throw new Error("Could not resolve powerlines package location.");
|
|
2155
|
+
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
2156
|
+
if (!context.powerlinesPath) {
|
|
2157
|
+
throw new Error("Could not resolve `powerlines` package location.");
|
|
2151
2158
|
}
|
|
2152
2159
|
return context;
|
|
2153
2160
|
}
|
|
@@ -2176,7 +2183,7 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends P
|
|
|
2176
2183
|
plugin: resolvedPlugin,
|
|
2177
2184
|
context
|
|
2178
2185
|
});
|
|
2179
|
-
this.#hooks = Object.keys(resolvedPlugin).filter((key) => !
|
|
2186
|
+
this.#hooks = Object.keys(resolvedPlugin).filter((key) => !chunkFO3BCZ7I_cjs.PLUGIN_NON_HOOK_FIELDS.includes(key)).reduce((ret, key) => {
|
|
2180
2187
|
const hook = key;
|
|
2181
2188
|
const pluginHook = resolvedPlugin[hook];
|
|
2182
2189
|
if (!isPluginHook(pluginHook)) {
|
|
@@ -2265,9 +2272,9 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
|
|
|
2265
2272
|
static async from(workspaceRoot, config) {
|
|
2266
2273
|
const context = new _PowerlinesAPIContext(await loadWorkspaceConfig(workspaceRoot, config.root));
|
|
2267
2274
|
await context.withUserConfig(config);
|
|
2268
|
-
context.
|
|
2269
|
-
if (!context.
|
|
2270
|
-
throw new Error("Could not resolve powerlines package location.");
|
|
2275
|
+
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
2276
|
+
if (!context.powerlinesPath) {
|
|
2277
|
+
throw new Error("Could not resolve `powerlines` package location.");
|
|
2271
2278
|
}
|
|
2272
2279
|
return context;
|
|
2273
2280
|
}
|
|
@@ -2373,7 +2380,7 @@ async function installPackage(context, packageName, dev = false) {
|
|
|
2373
2380
|
} else {
|
|
2374
2381
|
context.log(types.LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "skipInstalls" option is set to true, it will not be installed automatically.`);
|
|
2375
2382
|
}
|
|
2376
|
-
} else if (_package.hasPackageVersion(packageName) && !process.env.
|
|
2383
|
+
} else if (_package.hasPackageVersion(packageName) && !process.env.POWERLINES_SKIP_VERSION_CHECK) {
|
|
2377
2384
|
const isMatching = await packageFns.doesPackageMatch(_package.getPackageName(packageName), _package.getPackageVersion(packageName), context.config.projectRoot);
|
|
2378
2385
|
if (!isMatching) {
|
|
2379
2386
|
const packageListing = await packageFns.getPackageListing(_package.getPackageName(packageName), {
|
|
@@ -2983,20 +2990,14 @@ chunkPK6SKIKE_cjs.__name(generateTypes, "generateTypes");
|
|
|
2983
2990
|
async function installDependencies(context) {
|
|
2984
2991
|
context.log(types.LogLevelLabel.TRACE, `Checking and installing missing project dependencies.`);
|
|
2985
2992
|
context.dependencies ??= {};
|
|
2986
|
-
context.dependencies
|
|
2987
|
-
type: "dependency"
|
|
2988
|
-
};
|
|
2993
|
+
context.dependencies.powerlines = "latest";
|
|
2989
2994
|
if (context.config.projectType === "application") {
|
|
2990
|
-
context.dependencies.unstorage =
|
|
2991
|
-
type: "dependency"
|
|
2992
|
-
};
|
|
2993
|
-
}
|
|
2994
|
-
context.log(types.LogLevelLabel.TRACE, `The following packages must be installed as dependencies:
|
|
2995
|
-
${Object.keys(context.dependencies).map((key) => ` - ${_package.getPackageName(key)}${_package.hasPackageVersion(key) || isSetObject.isSetObject(context.dependencies[key]) && isSetString.isSetString(context.dependencies[key].version) ? ` v${isSetObject.isSetObject(context.dependencies[key]) && isSetString.isSetString(context.dependencies[key].version) ? context.dependencies[key].version : _package.getPackageVersion(key)}` : ""} (${(isString.isString(context.dependencies[key]) ? context.dependencies[key] : context.dependencies[key]?.type) || "dependency"})`).join("\n")}`);
|
|
2996
|
-
for (const [key, value] of Object.entries(context.dependencies)) {
|
|
2997
|
-
const version = isSetObject.isSetObject(value) && semverFns.isValidRange(value.version) && value.version || _package.getPackageVersion(key);
|
|
2998
|
-
await installPackage(context, version ? `${_package.getPackageName(key)}@${String(version)}` : _package.getPackageName(key), (isSetString.isSetString(value) ? value : value.type) === "devDependency");
|
|
2995
|
+
context.dependencies.unstorage = "latest";
|
|
2999
2996
|
}
|
|
2997
|
+
await Promise.all([
|
|
2998
|
+
Promise.all(Object.entries(context.dependencies).map(async ([name, version]) => installPackage(context, `${_package.getPackageName(name)}@${String(version)}`, false))),
|
|
2999
|
+
Promise.all(Object.entries(context.devDependencies).map(async ([name, version]) => installPackage(context, `${_package.getPackageName(name)}@${String(version)}`, true)))
|
|
3000
|
+
]);
|
|
3000
3001
|
}
|
|
3001
3002
|
chunkPK6SKIKE_cjs.__name(installDependencies, "installDependencies");
|
|
3002
3003
|
async function resolveTsconfigChanges(context) {
|
|
@@ -3405,7 +3406,7 @@ ${console$1.formatLogMessage(context.config)}`);
|
|
|
3405
3406
|
await this.#executeEnvironments(async (context) => {
|
|
3406
3407
|
context.log(types.LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
|
|
3407
3408
|
await this.callPreHook(context, "new");
|
|
3408
|
-
const files = await listFiles.listFiles(joinPaths.joinPaths(context.
|
|
3409
|
+
const files = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/common/**/*.hbs"));
|
|
3409
3410
|
for (const file of files) {
|
|
3410
3411
|
context.log(types.LogLevelLabel.TRACE, `Adding template file: ${file}`);
|
|
3411
3412
|
const template = Handlebars__default.default.compile(file);
|
|
@@ -3413,14 +3414,14 @@ ${console$1.formatLogMessage(context.config)}`);
|
|
|
3413
3414
|
}
|
|
3414
3415
|
await this.callNormalHook(context, "new");
|
|
3415
3416
|
if (context.config.projectType === "application") {
|
|
3416
|
-
const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.
|
|
3417
|
+
const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/application/**/*.hbs"));
|
|
3417
3418
|
for (const file of files2) {
|
|
3418
3419
|
context.log(types.LogLevelLabel.TRACE, `Adding application template file: ${file}`);
|
|
3419
3420
|
const template = Handlebars__default.default.compile(file);
|
|
3420
3421
|
await writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
|
|
3421
3422
|
}
|
|
3422
3423
|
} else {
|
|
3423
|
-
const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.
|
|
3424
|
+
const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/library/**/*.hbs"));
|
|
3424
3425
|
for (const file of files2) {
|
|
3425
3426
|
context.log(types.LogLevelLabel.TRACE, `Adding library template file: ${file}`);
|
|
3426
3427
|
const template = Handlebars__default.default.compile(file);
|
|
@@ -3807,5 +3808,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
3807
3808
|
exports.PowerlinesAPI = PowerlinesAPI;
|
|
3808
3809
|
exports.createLog = createLog;
|
|
3809
3810
|
exports.getString = getString;
|
|
3810
|
-
//# sourceMappingURL=chunk-
|
|
3811
|
-
//# sourceMappingURL=chunk-
|
|
3811
|
+
//# sourceMappingURL=chunk-4YWVR54C.cjs.map
|
|
3812
|
+
//# sourceMappingURL=chunk-4YWVR54C.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkQIKKQQF7_cjs = require('./chunk-QIKKQQF7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk2HFMIZYO_cjs = require('./chunk-2HFMIZYO.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(chunk2HFMIZYO_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-4ZXJF3CL.cjs.map
|
|
34
|
+
//# sourceMappingURL=chunk-4ZXJF3CL.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { esbuild_default } from './chunk-
|
|
1
|
+
import { esbuild_default } from './chunk-K3M64YD3.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-5DH4T6HI.js.map
|
|
39
|
+
//# sourceMappingURL=chunk-5DH4T6HI.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2HFMIZYO_cjs = require('./chunk-2HFMIZYO.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunk2HFMIZYO_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-6FA3IOW2.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-6FA3IOW2.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-VOB62ELC.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-H6Q4VIN2.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-6XFFNJCS.js.map
|
|
109
|
+
//# sourceMappingURL=chunk-6XFFNJCS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKWL6GUEE_cjs = require('./chunk-KWL6GUEE.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(chunkKWL6GUEE_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-A3H5EZ5M.cjs.map
|
|
24
|
+
//# sourceMappingURL=chunk-A3H5EZ5M.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-H6Q4VIN2.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-AM4EJ45G.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-AM4EJ45G.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-H6Q4VIN2.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-AWFN3GRI.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-AWFN3GRI.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
2
|
-
import { webpack_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-6XFFNJCS.js';
|
|
2
|
+
import { webpack_default } from './chunk-AM4EJ45G.js';
|
|
3
3
|
import { defineNuxtModule, addVitePlugin, addWebpackPlugin } from '@nuxt/kit';
|
|
4
4
|
import '@nuxt/schema';
|
|
5
5
|
|
|
@@ -17,5 +17,5 @@ var nuxt = defineNuxtModule({
|
|
|
17
17
|
var nuxt_default = nuxt;
|
|
18
18
|
|
|
19
19
|
export { nuxt, nuxt_default };
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-B4LIFIMY.js.map
|
|
21
|
+
//# sourceMappingURL=chunk-B4LIFIMY.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2HFMIZYO_cjs = require('./chunk-2HFMIZYO.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rspack = unplugin.createRspackPlugin(chunk2HFMIZYO_cjs.createUnpluginFactory("rspack"));
|
|
7
|
+
var rspack_default = rspack;
|
|
8
|
+
|
|
9
|
+
exports.rspack = rspack;
|
|
10
|
+
exports.rspack_default = rspack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-EU27ZVAT.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-EU27ZVAT.cjs.map
|