powerlines 0.23.1 → 0.23.3
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/api.cjs +2 -2
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -1
- 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-MOQZVSWO.js → chunk-4ODWTALP.js} +2 -2
- package/dist/{chunk-NNCCUGXA.cjs → chunk-5A7FM72H.cjs} +2 -2
- package/dist/{chunk-S53KWDAO.js → chunk-CPRXGMH2.js} +1 -1
- package/dist/{chunk-TW2PHIE2.js → chunk-DUYZ3TCT.js} +1 -1
- package/dist/{chunk-N4SUYIMO.cjs → chunk-DWV5QAGZ.cjs} +6 -6
- package/dist/{chunk-K55N2SZU.js → chunk-F6BDL4HD.js} +1 -1
- package/dist/{chunk-6ZR445UL.cjs → chunk-GNNF5SG6.cjs} +2 -2
- package/dist/{chunk-L57J2FXN.js → chunk-IGWSCIES.js} +1 -1
- package/dist/{chunk-HBDBJSWL.cjs → chunk-J3LN5HOC.cjs} +2 -2
- package/dist/{chunk-UBZHGFM5.js → chunk-J5LKLH5Z.js} +1 -1
- package/dist/{chunk-3NWZ7U74.cjs → chunk-J7MZRPLN.cjs} +3 -3
- package/dist/{chunk-CVRUQZN7.cjs → chunk-JAJ4CI2F.cjs} +2 -2
- package/dist/{chunk-HPQPBZGL.cjs → chunk-JZAQW55G.cjs} +2 -2
- package/dist/{chunk-WWB3FZJY.js → chunk-KFRKOIP3.js} +1 -1
- package/dist/{chunk-AOVVQFI3.js → chunk-LKN52AAX.js} +1 -1
- package/dist/{chunk-AUARPEPN.cjs → chunk-M4QJ2474.cjs} +4 -4
- package/dist/{chunk-DV5TMDLV.js → chunk-NH7U3PTV.js} +1 -1
- package/dist/{chunk-FC46JGB5.js → chunk-Q7HBETZW.js} +1 -1
- package/dist/chunk-RODEAGIJ.cjs +32 -0
- package/dist/{chunk-IQG3XK3P.js → chunk-RWVNX2CP.js} +1 -1
- package/dist/chunk-SKLSRHBU.js +29 -0
- package/dist/{chunk-4H6HIUTA.js → chunk-TNYZH6EG.js} +6 -6
- package/dist/{chunk-F65TZZ57.cjs → chunk-WDBPA4RQ.cjs} +2 -2
- package/dist/{chunk-S432MQT4.cjs → chunk-WG55ZHJL.cjs} +2 -2
- package/dist/{chunk-IQXGIDXL.js → chunk-WSLPUUGZ.js} +1 -1
- package/dist/{chunk-YCHT4OYW.cjs → chunk-WXU3KLBP.cjs} +2 -2
- package/dist/{chunk-3FNCYVTC.cjs → chunk-YQ76DZYD.cjs} +2 -2
- package/dist/{chunk-6MOT27K6.cjs → chunk-ZFO3FUM4.cjs} +2 -2
- package/dist/config.d.cts +1 -1
- package/dist/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/{hooks-D2UGCryi.d.ts → hooks-B3vzw6La.d.ts} +1 -1
- package/dist/{hooks-DJG3B-Hw.d.cts → hooks-YACA4jMY.d.cts} +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +15 -15
- package/dist/lib/{chunk-XDRTIXW2.cjs → chunk-A5SB72VO.cjs} +6 -6
- package/dist/lib/{chunk-KJIQ7JEY.js → chunk-UWHGJ4JS.js} +6 -6
- package/dist/lib/config-file.d.cts +2 -1
- package/dist/lib/config-file.d.ts +2 -1
- package/dist/lib/index.cjs +3 -3
- package/dist/lib/index.d.cts +9 -9
- package/dist/lib/index.d.ts +9 -9
- package/dist/lib/index.js +1 -1
- package/dist/lib/logger.d.cts +2 -1
- package/dist/lib/logger.d.ts +2 -1
- package/dist/lib/typescript/compiler-host.d.cts +3 -1
- package/dist/lib/typescript/compiler-host.d.ts +3 -1
- package/dist/lib/typescript/index.d.cts +2 -2
- package/dist/lib/typescript/index.d.ts +2 -2
- package/dist/lib/typescript/isolated-decl.d.cts +2 -1
- package/dist/lib/typescript/isolated-decl.d.ts +2 -1
- package/dist/lib/typescript/program.d.cts +3 -1
- package/dist/lib/typescript/program.d.ts +3 -1
- package/dist/lib/unplugin/factory.cjs +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 -1
- package/dist/lib/unplugin/plugin.d.ts +2 -1
- package/dist/lib/unplugin/resolve-id.d.cts +3 -1
- package/dist/lib/unplugin/resolve-id.d.ts +3 -1
- package/dist/lib/utilities/file-header.d.cts +2 -1
- package/dist/lib/utilities/file-header.d.ts +2 -1
- package/dist/lib/utilities/index.d.cts +3 -3
- package/dist/lib/utilities/index.d.ts +3 -3
- package/dist/lib/utilities/meta.d.cts +2 -1
- package/dist/lib/utilities/meta.d.ts +2 -1
- package/dist/lib/utilities/worker.d.cts +2 -1
- package/dist/lib/utilities/worker.d.ts +2 -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/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/merge.d.cts +2 -1
- package/dist/plugin-utils/merge.d.ts +2 -1
- package/dist/{resolved-D1ySEdUv.d.ts → resolved-BVakEeek.d.ts} +119 -1
- package/dist/{resolved-DYLxPDut.d.cts → resolved-Dem-rX6I.d.cts} +119 -1
- 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/build.d.cts +26 -1
- package/dist/types/build.d.ts +26 -1
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.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 +6 -6
- package/dist/types/index.d.ts +6 -6
- package/dist/types/internal.d.cts +5 -3
- package/dist/types/internal.d.ts +5 -3
- 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/tsconfig.d.cts +8 -1
- package/dist/types/tsconfig.d.ts +8 -1
- package/dist/types/typedoc.d.cts +3 -1
- package/dist/types/typedoc.d.ts +3 -1
- package/dist/types/unplugin.d.cts +5 -2
- package/dist/types/unplugin.d.ts +5 -2
- package/dist/types/vfs.d.cts +15 -1
- package/dist/types/vfs.d.ts +15 -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 +2 -2
- package/dist/unplugin.d.ts +2 -2
- 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 +10 -10
- package/dist/babel-types.d.ts +0 -292
- package/dist/chunk-3ZYSJWDS.cjs +0 -32
- package/dist/chunk-UF2HNMZH.js +0 -29
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDWV5QAGZ_cjs = require('./chunk-DWV5QAGZ.cjs');
|
|
4
4
|
require('./chunk-ETKZMGLN.cjs');
|
|
5
5
|
require('./chunk-3WDMXRK6.cjs');
|
|
6
6
|
require('./chunk-PAMSESZV.cjs');
|
|
@@ -10,5 +10,5 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkDWV5QAGZ_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from './hooks-
|
|
2
|
-
import {
|
|
1
|
+
import { C as CallHookOptions } from './hooks-YACA4jMY.cjs';
|
|
2
|
+
import { cr as ResolvedConfig, b8 as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-Dem-rX6I.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CallHookOptions } from './hooks-
|
|
2
|
-
import {
|
|
1
|
+
import { C as CallHookOptions } from './hooks-B3vzw6La.js';
|
|
2
|
+
import { cr as ResolvedConfig, b8 as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bA as HookKeys, bb as PluginContext, ba as EnvironmentContext, bH as InferHookParameters, bG as InferHookReturnType } from './resolved-BVakEeek.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/api.js
CHANGED
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 chunkWDBPA4RQ_cjs = require('./chunk-WDBPA4RQ.cjs');
|
|
6
|
+
require('./chunk-WG55ZHJL.cjs');
|
|
7
7
|
require('./chunk-5IBA5HC2.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-J7MZRPLN.cjs');
|
|
9
|
+
require('./chunk-DWV5QAGZ.cjs');
|
|
10
10
|
require('./chunk-ETKZMGLN.cjs');
|
|
11
11
|
require('./chunk-3WDMXRK6.cjs');
|
|
12
12
|
require('./chunk-PAMSESZV.cjs');
|
|
@@ -16,13 +16,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "astro", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkWDBPA4RQ_cjs.astro; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "default", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkWDBPA4RQ_cjs.astro_default; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "module.exports", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkWDBPA4RQ_cjs.astro; }
|
|
28
28
|
});
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import {
|
|
2
|
+
import { cs as ViteResolvedConfig } from './resolved-Dem-rX6I.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import {
|
|
2
|
+
import { cs as ViteResolvedConfig } from './resolved-BVakEeek.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
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-F6BDL4HD.js';
|
|
2
|
+
import './chunk-DUYZ3TCT.js';
|
|
3
3
|
import './chunk-VBR53KGY.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-IGWSCIES.js';
|
|
5
|
+
import './chunk-TNYZH6EG.js';
|
|
6
6
|
import './chunk-JQCWV4DT.js';
|
|
7
7
|
import './chunk-FM4ABZQ2.js';
|
|
8
8
|
import './chunk-JKBJF3UI.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
2
|
-
import { webpack_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-DUYZ3TCT.js';
|
|
2
|
+
import { webpack_default } from './chunk-Q7HBETZW.js';
|
|
3
3
|
import { defineNuxtModule, addVitePlugin, addWebpackPlugin } from '@nuxt/kit';
|
|
4
4
|
import '@nuxt/schema';
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ7MZRPLN_cjs = require('./chunk-J7MZRPLN.cjs');
|
|
4
4
|
var unplugin = require('unplugin');
|
|
5
5
|
|
|
6
|
-
var unloader = unplugin.createUnloaderPlugin(
|
|
6
|
+
var unloader = unplugin.createUnloaderPlugin(chunkJ7MZRPLN_cjs.createUnpluginFactory("unloader"));
|
|
7
7
|
var unloader_default = unloader;
|
|
8
8
|
|
|
9
9
|
exports.unloader = unloader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-VBR53KGY.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-IGWSCIES.js';
|
|
3
3
|
import { __name } from './chunk-SHUYVCID.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -2594,7 +2594,7 @@ ${result.errors.map((error) => ` [${error.severity}] ${error.message}${error.co
|
|
|
2594
2594
|
return {
|
|
2595
2595
|
glob: isSetObject.isSetObject(asset) ? asset.glob : asset,
|
|
2596
2596
|
input: isString.isString(asset) || !asset.input || asset.input === "." || asset.input === "/" || asset.input === "./" ? this.workspaceConfig.workspaceRoot : append.appendPath(asset.input, this.workspaceConfig.workspaceRoot),
|
|
2597
|
-
output: append.appendPath(isSetObject.isSetObject(asset) && asset.output ? join.joinPaths(this.config.output.
|
|
2597
|
+
output: append.appendPath(isSetObject.isSetObject(asset) && asset.output ? join.joinPaths(this.config.output.outputPath, replace.replacePath(asset.output, this.config.output.outputPath)) : this.config.output.outputPath, this.workspaceConfig.workspaceRoot),
|
|
2598
2598
|
ignore: isSetObject.isSetObject(asset) && asset.ignore ? toArray.toArray(asset.ignore) : void 0
|
|
2599
2599
|
};
|
|
2600
2600
|
}));
|
|
@@ -3647,21 +3647,21 @@ ${formatTypes(generatedTypes)}
|
|
|
3647
3647
|
await this.#executeEnvironments(async (context) => {
|
|
3648
3648
|
await this.callPreHook(context, "build");
|
|
3649
3649
|
await this.callNormalHook(context, "build");
|
|
3650
|
-
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
3651
|
-
context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5__default.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths.joinPaths(replace.replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5__default.default.greenBright(joinPaths.joinPaths(replace.replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5__default.default.yellowBright(i)).join(", ")})` : ""}`);
|
|
3652
|
-
await copyFile.copyFiles(asset, asset.output);
|
|
3653
|
-
}));
|
|
3654
3650
|
if (context.config.output.distPath !== context.config.output.outputPath) {
|
|
3655
3651
|
const sourcePath = append.appendPath(context.config.output.distPath, context.workspaceConfig.workspaceRoot);
|
|
3656
3652
|
const destinationPath = joinPaths.joinPaths(append.appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
|
|
3657
3653
|
if (sourcePath !== destinationPath) {
|
|
3658
|
-
context.log(types.LogLevelLabel.INFO, `Copying build output files from project's
|
|
3654
|
+
context.log(types.LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.distPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
|
|
3659
3655
|
await copyFile.copyFiles({
|
|
3660
3656
|
input: sourcePath,
|
|
3661
3657
|
glob: "**/*"
|
|
3662
3658
|
}, destinationPath);
|
|
3663
3659
|
}
|
|
3664
3660
|
}
|
|
3661
|
+
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
3662
|
+
context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5__default.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths.joinPaths(replace.replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5__default.default.greenBright(joinPaths.joinPaths(replace.replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5__default.default.yellowBright(i)).join(", ")})` : ""}`);
|
|
3663
|
+
await copyFile.copyFiles(asset, asset.output);
|
|
3664
|
+
}));
|
|
3665
3665
|
await this.callPostHook(context, "build");
|
|
3666
3666
|
});
|
|
3667
3667
|
this.context.log(types.LogLevelLabel.TRACE, "Powerlines build completed");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ7MZRPLN_cjs = require('./chunk-J7MZRPLN.cjs');
|
|
4
4
|
var unplugin = require('unplugin');
|
|
5
5
|
|
|
6
|
-
var rollup = unplugin.createRollupPlugin(
|
|
6
|
+
var rollup = unplugin.createRollupPlugin(chunkJ7MZRPLN_cjs.createUnpluginFactory("rollup"));
|
|
7
7
|
var rollup_default = rollup;
|
|
8
8
|
|
|
9
9
|
exports.rollup = rollup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-TNYZH6EG.js';
|
|
2
2
|
import { __name } from './chunk-SHUYVCID.js';
|
|
3
3
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
4
|
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJAJ4CI2F_cjs = require('./chunk-JAJ4CI2F.cjs');
|
|
4
4
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.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(chunkJAJ4CI2F_cjs.webpack_default(webpackConfig));
|
|
14
14
|
return result;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDWV5QAGZ_cjs = require('./chunk-DWV5QAGZ.cjs');
|
|
4
4
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
var types = require('@storm-software/config-tools/types');
|
|
6
6
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
@@ -111,7 +111,7 @@ chunkUSNT2KNT_cjs.__name(handleResolveId, "handleResolveId");
|
|
|
111
111
|
// src/lib/unplugin/factory.ts
|
|
112
112
|
function createUnpluginFactory(variant, decorate) {
|
|
113
113
|
return (config, meta) => {
|
|
114
|
-
const log =
|
|
114
|
+
const log = chunkDWV5QAGZ_cjs.createLog("unplugin", config);
|
|
115
115
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
116
116
|
try {
|
|
117
117
|
const userConfig = {
|
|
@@ -124,7 +124,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
124
124
|
async function buildStart() {
|
|
125
125
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
126
126
|
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(process.cwd());
|
|
127
|
-
api = await
|
|
127
|
+
api = await chunkDWV5QAGZ_cjs.PowerlinesAPI.from(workspaceRoot, userConfig);
|
|
128
128
|
if (api.context.config.build.skipNodeModulesBundle) {
|
|
129
129
|
resolvePatterns = bundleRequire.tsconfigPathsToRegExp(api.context.tsconfig.options.paths ?? []);
|
|
130
130
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ7MZRPLN_cjs = require('./chunk-J7MZRPLN.cjs');
|
|
4
4
|
var unplugin = require('unplugin');
|
|
5
5
|
|
|
6
|
-
var webpack = unplugin.createWebpackPlugin(
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkJ7MZRPLN_cjs.createUnpluginFactory("webpack"));
|
|
7
7
|
var webpack_default = webpack;
|
|
8
8
|
|
|
9
9
|
exports.webpack = webpack;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5IBA5HC2_cjs = require('./chunk-5IBA5HC2.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkJ7MZRPLN_cjs = require('./chunk-J7MZRPLN.cjs');
|
|
5
5
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.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(chunkJ7MZRPLN_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-VBR53KGY.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-IGWSCIES.js';
|
|
3
3
|
import { __name } from './chunk-SHUYVCID.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkWG55ZHJL_cjs = require('./chunk-WG55ZHJL.cjs');
|
|
4
|
+
var chunkJAJ4CI2F_cjs = require('./chunk-JAJ4CI2F.cjs');
|
|
5
5
|
var kit = require('@nuxt/kit');
|
|
6
6
|
require('@nuxt/schema');
|
|
7
7
|
|
|
@@ -12,8 +12,8 @@ var nuxt = kit.defineNuxtModule({
|
|
|
12
12
|
},
|
|
13
13
|
defaults: {},
|
|
14
14
|
setup(options, _nuxt) {
|
|
15
|
-
kit.addVitePlugin(() =>
|
|
16
|
-
kit.addWebpackPlugin(() =>
|
|
15
|
+
kit.addVitePlugin(() => chunkWG55ZHJL_cjs.vite_default(options));
|
|
16
|
+
kit.addWebpackPlugin(() => chunkJAJ4CI2F_cjs.webpack_default(options));
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
var nuxt_default = nuxt;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWXU3KLBP_cjs = require('./chunk-WXU3KLBP.cjs');
|
|
4
|
+
var chunkGNNF5SG6_cjs = require('./chunk-GNNF5SG6.cjs');
|
|
5
|
+
var chunkYQ76DZYD_cjs = require('./chunk-YQ76DZYD.cjs');
|
|
6
|
+
var chunkZFO3FUM4_cjs = require('./chunk-ZFO3FUM4.cjs');
|
|
7
|
+
var chunk5A7FM72H_cjs = require('./chunk-5A7FM72H.cjs');
|
|
8
|
+
var chunkWDBPA4RQ_cjs = require('./chunk-WDBPA4RQ.cjs');
|
|
9
|
+
var chunkJZAQW55G_cjs = require('./chunk-JZAQW55G.cjs');
|
|
10
|
+
var chunkJ3LN5HOC_cjs = require('./chunk-J3LN5HOC.cjs');
|
|
11
|
+
var chunkM4QJ2474_cjs = require('./chunk-M4QJ2474.cjs');
|
|
12
|
+
var chunkWG55ZHJL_cjs = require('./chunk-WG55ZHJL.cjs');
|
|
13
|
+
var chunkJAJ4CI2F_cjs = require('./chunk-JAJ4CI2F.cjs');
|
|
14
|
+
|
|
15
|
+
// src/unplugin.ts
|
|
16
|
+
var plugins = {
|
|
17
|
+
astro: chunkWDBPA4RQ_cjs.astro_default,
|
|
18
|
+
esbuild: chunkJZAQW55G_cjs.esbuild_default,
|
|
19
|
+
next: chunkJ3LN5HOC_cjs.next_default,
|
|
20
|
+
nuxt: chunkM4QJ2474_cjs.nuxt_default,
|
|
21
|
+
rolldown: chunkWXU3KLBP_cjs.rolldown_default,
|
|
22
|
+
rollup: chunkGNNF5SG6_cjs.rollup_default,
|
|
23
|
+
rspack: chunkYQ76DZYD_cjs.rspack_default,
|
|
24
|
+
tsup: chunkZFO3FUM4_cjs.tsup_default,
|
|
25
|
+
unloader: chunk5A7FM72H_cjs.unloader_default,
|
|
26
|
+
vite: chunkWG55ZHJL_cjs.vite_default,
|
|
27
|
+
webpack: chunkJAJ4CI2F_cjs.webpack_default
|
|
28
|
+
};
|
|
29
|
+
var unplugin_default = plugins;
|
|
30
|
+
|
|
31
|
+
exports.plugins = plugins;
|
|
32
|
+
exports.unplugin_default = unplugin_default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { rolldown_default } from './chunk-KFRKOIP3.js';
|
|
2
|
+
import { rollup_default } from './chunk-RWVNX2CP.js';
|
|
3
|
+
import { rspack_default } from './chunk-NH7U3PTV.js';
|
|
4
|
+
import { tsup_default } from './chunk-CPRXGMH2.js';
|
|
5
|
+
import { unloader_default } from './chunk-WSLPUUGZ.js';
|
|
6
|
+
import { astro_default } from './chunk-F6BDL4HD.js';
|
|
7
|
+
import { esbuild_default } from './chunk-LKN52AAX.js';
|
|
8
|
+
import { next_default } from './chunk-J5LKLH5Z.js';
|
|
9
|
+
import { nuxt_default } from './chunk-4ODWTALP.js';
|
|
10
|
+
import { vite_default } from './chunk-DUYZ3TCT.js';
|
|
11
|
+
import { webpack_default } from './chunk-Q7HBETZW.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 };
|
|
@@ -2564,7 +2564,7 @@ ${result.errors.map((error) => ` [${error.severity}] ${error.message}${error.co
|
|
|
2564
2564
|
return {
|
|
2565
2565
|
glob: isSetObject(asset) ? asset.glob : asset,
|
|
2566
2566
|
input: isString(asset) || !asset.input || asset.input === "." || asset.input === "/" || asset.input === "./" ? this.workspaceConfig.workspaceRoot : appendPath(asset.input, this.workspaceConfig.workspaceRoot),
|
|
2567
|
-
output: appendPath(isSetObject(asset) && asset.output ? joinPaths(this.config.output.
|
|
2567
|
+
output: appendPath(isSetObject(asset) && asset.output ? joinPaths(this.config.output.outputPath, replacePath(asset.output, this.config.output.outputPath)) : this.config.output.outputPath, this.workspaceConfig.workspaceRoot),
|
|
2568
2568
|
ignore: isSetObject(asset) && asset.ignore ? toArray(asset.ignore) : void 0
|
|
2569
2569
|
};
|
|
2570
2570
|
}));
|
|
@@ -3617,21 +3617,21 @@ ${formatTypes(generatedTypes)}
|
|
|
3617
3617
|
await this.#executeEnvironments(async (context) => {
|
|
3618
3618
|
await this.callPreHook(context, "build");
|
|
3619
3619
|
await this.callNormalHook(context, "build");
|
|
3620
|
-
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
3621
|
-
context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths$1(replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5.greenBright(joinPaths$1(replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5.yellowBright(i)).join(", ")})` : ""}`);
|
|
3622
|
-
await copyFiles(asset, asset.output);
|
|
3623
|
-
}));
|
|
3624
3620
|
if (context.config.output.distPath !== context.config.output.outputPath) {
|
|
3625
3621
|
const sourcePath = appendPath(context.config.output.distPath, context.workspaceConfig.workspaceRoot);
|
|
3626
3622
|
const destinationPath = joinPaths$1(appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
|
|
3627
3623
|
if (sourcePath !== destinationPath) {
|
|
3628
|
-
context.log(LogLevelLabel.INFO, `Copying build output files from project's
|
|
3624
|
+
context.log(LogLevelLabel.INFO, `Copying build output files from project's build directory (${context.config.output.distPath}) to the workspace's output directory (${context.config.output.outputPath}).`);
|
|
3629
3625
|
await copyFiles({
|
|
3630
3626
|
input: sourcePath,
|
|
3631
3627
|
glob: "**/*"
|
|
3632
3628
|
}, destinationPath);
|
|
3633
3629
|
}
|
|
3634
3630
|
}
|
|
3631
|
+
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
3632
|
+
context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${chalk5.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths$1(replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk5.greenBright(joinPaths$1(replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk5.yellowBright(i)).join(", ")})` : ""}`);
|
|
3633
|
+
await copyFiles(asset, asset.output);
|
|
3634
|
+
}));
|
|
3635
3635
|
await this.callPostHook(context, "build");
|
|
3636
3636
|
});
|
|
3637
3637
|
this.context.log(LogLevelLabel.TRACE, "Powerlines build completed");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWG55ZHJL_cjs = require('./chunk-WG55ZHJL.cjs');
|
|
4
4
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
// src/astro.ts
|
|
7
7
|
var astro = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((config) => ({
|
|
8
8
|
vite: {
|
|
9
9
|
plugins: [
|
|
10
|
-
|
|
10
|
+
chunkWG55ZHJL_cjs.vite_default(config)
|
|
11
11
|
]
|
|
12
12
|
}
|
|
13
13
|
}), "astro");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5IBA5HC2_cjs = require('./chunk-5IBA5HC2.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkJ7MZRPLN_cjs = require('./chunk-J7MZRPLN.cjs');
|
|
5
5
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -83,7 +83,7 @@ function extractViteConfig(context) {
|
|
|
83
83
|
chunkUSNT2KNT_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
84
84
|
|
|
85
85
|
// src/vite.ts
|
|
86
|
-
var vite = unplugin.createVitePlugin(
|
|
86
|
+
var vite = unplugin.createVitePlugin(chunkJ7MZRPLN_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
87
87
|
return {
|
|
88
88
|
...plugin,
|
|
89
89
|
vite: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ7MZRPLN_cjs = require('./chunk-J7MZRPLN.cjs');
|
|
4
4
|
var unplugin = require('unplugin');
|
|
5
5
|
|
|
6
|
-
var rolldown = unplugin.createRolldownPlugin(
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkJ7MZRPLN_cjs.createUnpluginFactory("rolldown"));
|
|
7
7
|
var rolldown_default = rolldown;
|
|
8
8
|
|
|
9
9
|
exports.rolldown = rolldown;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ7MZRPLN_cjs = require('./chunk-J7MZRPLN.cjs');
|
|
4
4
|
var unplugin = require('unplugin');
|
|
5
5
|
|
|
6
|
-
var rspack = unplugin.createRspackPlugin(
|
|
6
|
+
var rspack = unplugin.createRspackPlugin(chunkJ7MZRPLN_cjs.createUnpluginFactory("rspack"));
|
|
7
7
|
var rspack_default = rspack;
|
|
8
8
|
|
|
9
9
|
exports.rspack = rspack;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJZAQW55G_cjs = require('./chunk-JZAQW55G.cjs');
|
|
4
4
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
var omit = require('@stryke/helpers/omit');
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ function tsup(options = {}) {
|
|
|
8
8
|
return {
|
|
9
9
|
...options,
|
|
10
10
|
esbuildPlugins: [
|
|
11
|
-
|
|
11
|
+
chunkJZAQW55G_cjs.esbuild_default({
|
|
12
12
|
output: {
|
|
13
13
|
outputPath: options.outDir,
|
|
14
14
|
format: options.format
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepPartial } from '@stryke/types/base';
|
|
2
|
-
import {
|
|
2
|
+
import { ae as AnyUserConfig, U as UserConfig } from './resolved-Dem-rX6I.cjs';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
5
5
|
import 'vite';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepPartial } from '@stryke/types/base';
|
|
2
|
-
import {
|
|
2
|
+
import { ae as AnyUserConfig, U as UserConfig } from './resolved-BVakEeek.js';
|
|
3
3
|
import '@stryke/types/configuration';
|
|
4
4
|
import '@stryke/types/file';
|
|
5
5
|
import 'vite';
|
package/dist/esbuild.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkJZAQW55G_cjs = require('./chunk-JZAQW55G.cjs');
|
|
6
6
|
require('./chunk-5IBA5HC2.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-J7MZRPLN.cjs');
|
|
8
|
+
require('./chunk-DWV5QAGZ.cjs');
|
|
9
9
|
require('./chunk-ETKZMGLN.cjs');
|
|
10
10
|
require('./chunk-3WDMXRK6.cjs');
|
|
11
11
|
require('./chunk-PAMSESZV.cjs');
|
|
@@ -15,13 +15,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkJZAQW55G_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkJZAQW55G_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkJZAQW55G_cjs.esbuild; }
|
|
27
27
|
});
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import {
|
|
2
|
+
import { Y as ESBuildUserConfig } from './resolved-Dem-rX6I.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _esbuild from 'esbuild';
|
|
2
|
-
import {
|
|
2
|
+
import { Y as ESBuildUserConfig } from './resolved-BVakEeek.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
package/dist/esbuild.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-
|
|
1
|
+
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-LKN52AAX.js';
|
|
2
2
|
import './chunk-VBR53KGY.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-IGWSCIES.js';
|
|
4
|
+
import './chunk-TNYZH6EG.js';
|
|
5
5
|
import './chunk-JQCWV4DT.js';
|
|
6
6
|
import './chunk-FM4ABZQ2.js';
|
|
7
7
|
import './chunk-JKBJF3UI.js';
|