powerlines 0.41.19 → 0.41.23
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-CXxWO1SS.mjs → api-BAybLTQ1.mjs} +16 -16
- package/dist/api-BAybLTQ1.mjs.map +1 -0
- package/dist/{api-X-avjIsD.cjs → api-BYbfR23c.cjs} +15 -15
- package/dist/astro.cjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/esbuild.cjs +1 -1
- package/dist/esbuild.mjs +1 -1
- package/dist/farm.cjs +1 -1
- package/dist/farm.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/next.cjs +1 -1
- package/dist/next.mjs +1 -1
- package/dist/nuxt.cjs +1 -1
- package/dist/nuxt.mjs +1 -1
- package/dist/rolldown.cjs +1 -1
- package/dist/rolldown.mjs +1 -1
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.mjs +1 -1
- package/dist/rspack.cjs +1 -1
- package/dist/rspack.mjs +1 -1
- package/dist/tsdown.cjs +2 -2
- package/dist/tsdown.mjs +2 -2
- package/dist/tsdown.mjs.map +1 -1
- package/dist/tsup.cjs +2 -2
- package/dist/tsup.mjs +2 -2
- package/dist/tsup.mjs.map +1 -1
- package/dist/unloader.cjs +1 -1
- package/dist/unloader.mjs +1 -1
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +31 -31
- package/dist/api-CXxWO1SS.mjs.map +0 -1
|
@@ -76,7 +76,7 @@ let unplugin = require("unplugin");
|
|
|
76
76
|
|
|
77
77
|
//#region package.json
|
|
78
78
|
var name = "powerlines";
|
|
79
|
-
var version = "0.41.
|
|
79
|
+
var version = "0.41.23";
|
|
80
80
|
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region src/_internal/helpers/generate-types.ts
|
|
@@ -1170,8 +1170,8 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
1170
1170
|
...this.#context.config.output.storage
|
|
1171
1171
|
};
|
|
1172
1172
|
this.#storage.virtual ??= new require_virtual.VirtualStorageAdapter(context, { base: "/_virtual" });
|
|
1173
|
-
this.#storage[this.#context.config.output.
|
|
1174
|
-
this.#storage[this.#context.config.output.
|
|
1173
|
+
this.#storage[this.#context.config.output.publishPath] ??= new require_virtual.FileSystemStorageAdapter(context, { base: this.#context.config.output.publishPath });
|
|
1174
|
+
this.#storage[this.#context.config.output.path] ??= new require_virtual.FileSystemStorageAdapter(context, { base: this.#context.config.output.path });
|
|
1175
1175
|
if (this.#context.config.output.storage !== "fs") {
|
|
1176
1176
|
this.#storage[this.#context.artifactsPath] ??= new require_virtual.VirtualStorageAdapter(context, { base: this.#context.artifactsPath });
|
|
1177
1177
|
this.#storage[this.#context.builtinsPath] ??= new require_virtual.VirtualStorageAdapter(context, { base: this.#context.builtinsPath });
|
|
@@ -2576,7 +2576,7 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
2576
2576
|
version: this.packageJson?.version,
|
|
2577
2577
|
description: this.packageJson?.description,
|
|
2578
2578
|
output: (0, require_plugin_utils.plugin_utils_exports.mergeConfig)(config.output ?? {}, {
|
|
2579
|
-
|
|
2579
|
+
publishPath: cacheKey.root ? (0, _stryke_path_join.joinPaths)(this.workspaceConfig?.directories?.build || "dist", cacheKey.root) : this.workspaceConfig?.directories?.build || "dist",
|
|
2580
2580
|
artifactsPath: `.${config.framework ?? "powerlines"}`,
|
|
2581
2581
|
dts: true,
|
|
2582
2582
|
typegen: (0, _stryke_path_join.joinPaths)(cacheKey.root, `${config.framework ?? "powerlines"}.d.ts`),
|
|
@@ -2615,17 +2615,17 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
2615
2615
|
this.config.output.format = (0, _stryke_helpers_get_unique.getUnique)((0, _stryke_convert_to_array.toArray)(this.config.output?.format ?? (this.config.projectType === "library" ? ["cjs", "esm"] : ["esm"])));
|
|
2616
2616
|
if (this.config.output.dts !== false && !this.config.output.typegen) this.config.output.typegen = `${this.config.root ? `${this.config.root}/` : ""}${this.config.framework ?? "powerlines"}.d.ts`;
|
|
2617
2617
|
if (this.config.root && this.config.root !== "." && this.config.root !== "./" && this.config.root !== this.workspaceConfig.workspaceRoot) {
|
|
2618
|
-
this.config.output.
|
|
2619
|
-
this.config.output.
|
|
2618
|
+
this.config.output.path ??= (0, _stryke_path_join.joinPaths)(this.config.root, "dist");
|
|
2619
|
+
this.config.output.publishPath ??= (0, _stryke_path_join.joinPaths)("dist", this.config.root);
|
|
2620
2620
|
} else {
|
|
2621
|
-
this.config.output.
|
|
2622
|
-
this.config.output.
|
|
2621
|
+
this.config.output.path ??= "dist";
|
|
2622
|
+
this.config.output.publishPath ??= this.config.output.path;
|
|
2623
2623
|
}
|
|
2624
2624
|
this.config.output.assets = (0, _stryke_helpers_get_unique.getUniqueBy)(this.config.output.assets.map((asset) => {
|
|
2625
2625
|
return {
|
|
2626
2626
|
glob: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) ? asset.glob : asset,
|
|
2627
2627
|
input: (0, _stryke_type_checks_is_string.isString)(asset) || !asset.input || asset.input === "." || asset.input === "/" || asset.input === "./" ? this.workspaceConfig.workspaceRoot : (0, _stryke_path_is_parent_path.isParentPath)(asset.input, this.workspaceConfig.workspaceRoot) || asset.input === this.workspaceConfig.workspaceRoot ? asset.input : (0, _stryke_path_append.appendPath)(asset.input, this.workspaceConfig.workspaceRoot),
|
|
2628
|
-
output: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) && asset.output ? (0, _stryke_path_is_parent_path.isParentPath)(asset.output, this.workspaceConfig.workspaceRoot) ? asset.output : (0, _stryke_path_append.appendPath)((0, _stryke_path_join.joinPaths)(this.config.output.
|
|
2628
|
+
output: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) && asset.output ? (0, _stryke_path_is_parent_path.isParentPath)(asset.output, this.workspaceConfig.workspaceRoot) ? asset.output : (0, _stryke_path_append.appendPath)((0, _stryke_path_join.joinPaths)(this.config.output.publishPath, (0, _stryke_path_replace.replacePath)((0, _stryke_path_replace.replacePath)(asset.output, (0, _stryke_path_replace.replacePath)(this.config.output.publishPath, this.workspaceConfig.workspaceRoot)), this.config.output.publishPath)), this.workspaceConfig.workspaceRoot) : (0, _stryke_path_append.appendPath)(this.config.output.publishPath, this.workspaceConfig.workspaceRoot),
|
|
2629
2629
|
ignore: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) && asset.ignore ? (0, _stryke_convert_to_array.toArray)(asset.ignore) : void 0
|
|
2630
2630
|
};
|
|
2631
2631
|
}), (a) => `${a.input}-${a.glob}-${a.output}`);
|
|
@@ -3425,7 +3425,7 @@ ${formatTypes(types)}
|
|
|
3425
3425
|
await this.prepare(inlineConfig);
|
|
3426
3426
|
await this.#executeEnvironments(async (context) => {
|
|
3427
3427
|
context.debug("Cleaning the project's dist and artifacts directories.");
|
|
3428
|
-
await context.fs.remove((0, _stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.output.
|
|
3428
|
+
await context.fs.remove((0, _stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.output.path));
|
|
3429
3429
|
await context.fs.remove((0, _stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.root, context.config.output.artifactsPath));
|
|
3430
3430
|
await this.callHook("clean", {
|
|
3431
3431
|
environment: context,
|
|
@@ -3560,16 +3560,16 @@ ${formatTypes(types)}
|
|
|
3560
3560
|
environment: context,
|
|
3561
3561
|
order: "normal"
|
|
3562
3562
|
});
|
|
3563
|
-
if (context.config.output.
|
|
3564
|
-
const sourcePath = (0, _stryke_path_append.appendPath)(context.config.output.
|
|
3565
|
-
const destinationPath = (0, _stryke_path_join_paths.joinPaths)((0, _stryke_path_append.appendPath)(context.config.output.
|
|
3563
|
+
if (context.config.output.path !== context.config.output.publishPath) {
|
|
3564
|
+
const sourcePath = (0, _stryke_path_append.appendPath)(context.config.output.path, context.workspaceConfig.workspaceRoot);
|
|
3565
|
+
const destinationPath = (0, _stryke_path_join_paths.joinPaths)((0, _stryke_path_append.appendPath)(context.config.output.publishPath, context.workspaceConfig.workspaceRoot), "dist");
|
|
3566
3566
|
if (context.fs.existsSync(sourcePath) && sourcePath !== destinationPath) {
|
|
3567
|
-
context.debug(`Copying
|
|
3567
|
+
context.debug(`Copying output files from project's output directory (${context.config.output.path}) to the publish output directory (${context.config.output.publishPath}).`);
|
|
3568
3568
|
await context.fs.copy(sourcePath, destinationPath);
|
|
3569
3569
|
}
|
|
3570
3570
|
}
|
|
3571
3571
|
await Promise.all(context.config.output.assets.map(async (asset) => {
|
|
3572
|
-
context.trace(`Copying asset(s): ${chalk.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : (0,
|
|
3572
|
+
context.trace(`Copying asset(s): ${chalk.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : (0, _stryke_path_append.appendPath)(asset.glob, (0, _stryke_path_replace.replacePath)(asset.input, context.workspaceConfig.workspaceRoot)))} -> ${chalk.default.greenBright((0, _stryke_path_join_paths.joinPaths)((0, _stryke_path_replace.replacePath)(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk.default.yellowBright(i)).join(", ")})` : ""}`);
|
|
3573
3573
|
await context.fs.copy(asset, asset.output);
|
|
3574
3574
|
}));
|
|
3575
3575
|
await this.callHook("build", {
|
package/dist/astro.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
require('./api-
|
|
2
|
+
require('./api-BYbfR23c.cjs');
|
|
3
3
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
4
4
|
require('./virtual-Cbvj12lU.cjs');
|
|
5
5
|
const require_vite = require('./vite.cjs');
|
package/dist/astro.mjs
CHANGED
package/dist/context/index.cjs
CHANGED
package/dist/context/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as createPluginContext, n as PowerlinesAPIContext, o as PowerlinesContext, r as PowerlinesEnvironmentContext } from "../api-
|
|
1
|
+
import { i as createPluginContext, n as PowerlinesAPIContext, o as PowerlinesContext, r as PowerlinesEnvironmentContext } from "../api-BAybLTQ1.mjs";
|
|
2
2
|
import "../tsconfig-D9GCB2I9.mjs";
|
|
3
3
|
import "../virtual-DvkJm7gK.mjs";
|
|
4
4
|
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
let unplugin = require("unplugin");
|
package/dist/esbuild.mjs
CHANGED
package/dist/farm.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
let unplugin = require("unplugin");
|
package/dist/farm.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
let _stryke_fs_get_workspace_root = require("@stryke/fs/get-workspace-root");
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as FileMetadata, d as FileSystem, f as _capnpFileId, l as FileMetadata_KeyValuePair, s as FileId, t as PowerlinesAPI, u as FileStorage } from "./api-
|
|
1
|
+
import { c as FileMetadata, d as FileSystem, f as _capnpFileId, l as FileMetadata_KeyValuePair, s as FileId, t as PowerlinesAPI, u as FileStorage } from "./api-BAybLTQ1.mjs";
|
|
2
2
|
import "./tsconfig-D9GCB2I9.mjs";
|
|
3
3
|
import "./virtual-DvkJm7gK.mjs";
|
|
4
4
|
import { getWorkspaceRoot } from "@stryke/fs/get-workspace-root";
|
package/dist/next.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
require('./api-
|
|
2
|
+
require('./api-BYbfR23c.cjs');
|
|
3
3
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
4
4
|
require('./virtual-Cbvj12lU.cjs');
|
|
5
5
|
const require_webpack = require('./webpack.cjs');
|
package/dist/next.mjs
CHANGED
package/dist/nuxt.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
const require_vite = require('./vite.cjs');
|
package/dist/nuxt.mjs
CHANGED
package/dist/rolldown.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
let defu = require("defu");
|
package/dist/rolldown.mjs
CHANGED
package/dist/rollup.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
let unplugin = require("unplugin");
|
package/dist/rollup.mjs
CHANGED
package/dist/rspack.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
let unplugin = require("unplugin");
|
package/dist/rspack.mjs
CHANGED
package/dist/tsdown.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
require('./api-
|
|
3
|
+
require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
const require_rolldown = require('./rolldown.cjs');
|
|
@@ -43,7 +43,7 @@ function unplugin(options = {}) {
|
|
|
43
43
|
name: options.name,
|
|
44
44
|
root: options.cwd ?? process.cwd(),
|
|
45
45
|
output: {
|
|
46
|
-
|
|
46
|
+
path: options.outDir,
|
|
47
47
|
format: (0, _powerlines_plugin_tsdown_helpers_resolve_options.resolveFromFormat)(options.format),
|
|
48
48
|
assets: (0, _stryke_convert_to_array.toArray)(options.copy).map((copy) => {
|
|
49
49
|
if (!copy) return;
|
package/dist/tsdown.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-
|
|
1
|
+
import "./api-BAybLTQ1.mjs";
|
|
2
2
|
import "./tsconfig-D9GCB2I9.mjs";
|
|
3
3
|
import "./virtual-DvkJm7gK.mjs";
|
|
4
4
|
import unplugin$1 from "./rolldown.mjs";
|
|
@@ -40,7 +40,7 @@ function unplugin(options = {}) {
|
|
|
40
40
|
name: options.name,
|
|
41
41
|
root: options.cwd ?? process.cwd(),
|
|
42
42
|
output: {
|
|
43
|
-
|
|
43
|
+
path: options.outDir,
|
|
44
44
|
format: resolveFromFormat(options.format),
|
|
45
45
|
assets: toArray(options.copy).map((copy) => {
|
|
46
46
|
if (!copy) return;
|
package/dist/tsdown.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdown.mjs","names":["rolldown"],"sources":["../src/tsdown.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { RolldownOptions } from \"@powerlines/plugin-rolldown/types/build\";\nimport { resolveFromFormat } from \"@powerlines/plugin-tsdown/helpers/resolve-options\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { ModuleFormat } from \"rolldown\";\nimport type { UserConfig } from \"tsdown/config\";\nimport rolldown from \"./rolldown\";\nimport { OutputConfig, ResolveConfig } from \"./types\";\n\nexport {\n default as plugin,\n default as tsdown\n} from \"@powerlines/plugin-tsdown\";\n\n/**\n * A Tsdown configuration function that integrates Powerlines into the build process.\n *\n * @see https://github.com/rolldown/tsdown\n *\n * @example\n * ```ts\n * // tsdown.config.ts\n * import withPowerlines from \"powerlines/tsdown\";\n *\n * export default withPowerlines({\n * entry: [\"src/index.ts\"],\n * format: [\"cjs\", \"esm\"],\n * dts: true,\n * sourcemap: true,\n * clean: true,\n * });\n *\n * ```\n *\n * @param options - The Tsdown options to merge with the Powerlines configuration.\n * @returns The merged Tsdown configuration options.\n */\nexport function unplugin(options: UserConfig = {}): UserConfig {\n return {\n ...options,\n entry: options.entry,\n plugins: [\n rolldown({\n name: options.name,\n root: options.cwd ?? process.cwd(),\n output: {\n
|
|
1
|
+
{"version":3,"file":"tsdown.mjs","names":["rolldown"],"sources":["../src/tsdown.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { RolldownOptions } from \"@powerlines/plugin-rolldown/types/build\";\nimport { resolveFromFormat } from \"@powerlines/plugin-tsdown/helpers/resolve-options\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { ModuleFormat } from \"rolldown\";\nimport type { UserConfig } from \"tsdown/config\";\nimport rolldown from \"./rolldown\";\nimport { OutputConfig, ResolveConfig } from \"./types\";\n\nexport {\n default as plugin,\n default as tsdown\n} from \"@powerlines/plugin-tsdown\";\n\n/**\n * A Tsdown configuration function that integrates Powerlines into the build process.\n *\n * @see https://github.com/rolldown/tsdown\n *\n * @example\n * ```ts\n * // tsdown.config.ts\n * import withPowerlines from \"powerlines/tsdown\";\n *\n * export default withPowerlines({\n * entry: [\"src/index.ts\"],\n * format: [\"cjs\", \"esm\"],\n * dts: true,\n * sourcemap: true,\n * clean: true,\n * });\n *\n * ```\n *\n * @param options - The Tsdown options to merge with the Powerlines configuration.\n * @returns The merged Tsdown configuration options.\n */\nexport function unplugin(options: UserConfig = {}): UserConfig {\n return {\n ...options,\n entry: options.entry,\n plugins: [\n rolldown({\n name: options.name,\n root: options.cwd ?? process.cwd(),\n output: {\n path: options.outDir,\n format: resolveFromFormat(\n options.format as ModuleFormat | ModuleFormat[]\n ),\n assets: toArray(options.copy)\n .map(copy => {\n if (!copy) {\n return undefined;\n }\n\n if (isSetString(copy)) {\n return copy;\n }\n\n if (isFunction(copy)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based copy options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return {\n input: copy.from,\n output: copy.to\n };\n })\n .filter(Boolean) as OutputConfig[\"assets\"]\n },\n resolve: {\n external: options.external\n ? (toArray(options.external)\n .map(external => {\n if (isFunction(external)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based external options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return external;\n })\n .filter(Boolean) as ResolveConfig[\"external\"])\n : undefined,\n noExternal: options.noExternal\n ? (toArray(options.noExternal)\n .map(noExternal => {\n if (isFunction(noExternal)) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Function-based noExternal options are not supported in Powerlines.\"\n );\n\n return undefined;\n }\n\n return noExternal;\n })\n .filter(Boolean) as ResolveConfig[\"noExternal\"])\n : undefined\n },\n rolldown: options.inputOptions as RolldownOptions,\n tsconfig: isSetString(options.tsconfig) ? options.tsconfig : undefined\n })\n ]\n };\n}\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDA,SAAgB,SAAS,UAAsB,EAAE,EAAc;AAC7D,QAAO;EACL,GAAG;EACH,OAAO,QAAQ;EACf,SAAS,CACPA,WAAS;GACP,MAAM,QAAQ;GACd,MAAM,QAAQ,OAAO,QAAQ,KAAK;GAClC,QAAQ;IACN,MAAM,QAAQ;IACd,QAAQ,kBACN,QAAQ,OACT;IACD,QAAQ,QAAQ,QAAQ,KAAK,CAC1B,KAAI,SAAQ;AACX,SAAI,CAAC,KACH;AAGF,SAAI,YAAY,KAAK,CACnB,QAAO;AAGT,SAAI,WAAW,KAAK,EAAE;AAEpB,cAAQ,KACN,+DACD;AAED;;AAGF,YAAO;MACL,OAAO,KAAK;MACZ,QAAQ,KAAK;MACd;MACD,CACD,OAAO,QAAQ;IACnB;GACD,SAAS;IACP,UAAU,QAAQ,WACb,QAAQ,QAAQ,SAAS,CACvB,KAAI,aAAY;AACf,SAAI,WAAW,SAAS,EAAE;AAExB,cAAQ,KACN,mEACD;AAED;;AAGF,YAAO;MACP,CACD,OAAO,QAAQ,GAClB;IACJ,YAAY,QAAQ,aACf,QAAQ,QAAQ,WAAW,CACzB,KAAI,eAAc;AACjB,SAAI,WAAW,WAAW,EAAE;AAE1B,cAAQ,KACN,qEACD;AAED;;AAGF,YAAO;MACP,CACD,OAAO,QAAQ,GAClB;IACL;GACD,UAAU,QAAQ;GAClB,UAAU,YAAY,QAAQ,SAAS,GAAG,QAAQ,WAAW;GAC9D,CAAC,CACH;EACF"}
|
package/dist/tsup.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
require('./api-
|
|
3
|
+
require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
const require_esbuild = require('./esbuild.cjs');
|
|
@@ -38,7 +38,7 @@ function unplugin(options = {}) {
|
|
|
38
38
|
...options,
|
|
39
39
|
esbuildPlugins: [require_esbuild.default({
|
|
40
40
|
output: {
|
|
41
|
-
|
|
41
|
+
path: options.outDir,
|
|
42
42
|
format: options.format
|
|
43
43
|
},
|
|
44
44
|
esbuild: {
|
package/dist/tsup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-
|
|
1
|
+
import "./api-BAybLTQ1.mjs";
|
|
2
2
|
import "./tsconfig-D9GCB2I9.mjs";
|
|
3
3
|
import "./virtual-DvkJm7gK.mjs";
|
|
4
4
|
import unplugin$1 from "./esbuild.mjs";
|
|
@@ -35,7 +35,7 @@ function unplugin(options = {}) {
|
|
|
35
35
|
...options,
|
|
36
36
|
esbuildPlugins: [unplugin$1({
|
|
37
37
|
output: {
|
|
38
|
-
|
|
38
|
+
path: options.outDir,
|
|
39
39
|
format: options.format
|
|
40
40
|
},
|
|
41
41
|
esbuild: {
|
package/dist/tsup.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsup.mjs","names":["esbuild"],"sources":["../src/tsup.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { omit } from \"@stryke/helpers/omit\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type { Options } from \"tsup\";\nimport esbuild from \"./esbuild\";\n\nexport { default as plugin, default as tsup } from \"@powerlines/plugin-tsup\";\n\n/**\n * A Tsup configuration function that integrates Powerlines into the build process.\n *\n * @see https://tsup.egoist.dev/#/config\n *\n * @example\n * ```ts\n * // tsup.config.ts\n * import withPowerlines from \"powerlines/tsup\";\n *\n * export default withPowerlines({\n * entry: [\"src/index.ts\"],\n * format: [\"cjs\", \"esm\"],\n * dts: true,\n * sourcemap: true,\n * clean: true,\n * });\n *\n * ```\n *\n * @param options - The Tsup options to merge with the Powerlines configuration.\n * @returns The merged Tsup configuration options.\n */\nexport function unplugin(options: Options = {}): Options {\n return {\n ...options,\n esbuildPlugins: [\n esbuild({\n output: {\n
|
|
1
|
+
{"version":3,"file":"tsup.mjs","names":["esbuild"],"sources":["../src/tsup.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { omit } from \"@stryke/helpers/omit\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type { Options } from \"tsup\";\nimport esbuild from \"./esbuild\";\n\nexport { default as plugin, default as tsup } from \"@powerlines/plugin-tsup\";\n\n/**\n * A Tsup configuration function that integrates Powerlines into the build process.\n *\n * @see https://tsup.egoist.dev/#/config\n *\n * @example\n * ```ts\n * // tsup.config.ts\n * import withPowerlines from \"powerlines/tsup\";\n *\n * export default withPowerlines({\n * entry: [\"src/index.ts\"],\n * format: [\"cjs\", \"esm\"],\n * dts: true,\n * sourcemap: true,\n * clean: true,\n * });\n *\n * ```\n *\n * @param options - The Tsup options to merge with the Powerlines configuration.\n * @returns The merged Tsup configuration options.\n */\nexport function unplugin(options: Options = {}): Options {\n return {\n ...options,\n esbuildPlugins: [\n esbuild({\n output: {\n path: options.outDir,\n format: options.format\n },\n esbuild: {\n ...omit(options, [\n \"plugins\",\n \"banner\",\n \"footer\",\n \"outExtension\",\n \"outDir\",\n \"format\",\n \"minify\",\n \"pure\",\n \"inject\"\n ]),\n minify: Boolean(options.minify),\n pure: Array.isArray(options.pure)\n ? options.pure\n : isString(options.pure)\n ? [options.pure]\n : []\n }\n })\n ]\n };\n}\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,SAAgB,SAAS,UAAmB,EAAE,EAAW;AACvD,QAAO;EACL,GAAG;EACH,gBAAgB,CACdA,WAAQ;GACN,QAAQ;IACN,MAAM,QAAQ;IACd,QAAQ,QAAQ;IACjB;GACD,SAAS;IACP,GAAG,KAAK,SAAS;KACf;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACA;KACD,CAAC;IACF,QAAQ,QAAQ,QAAQ,OAAO;IAC/B,MAAM,MAAM,QAAQ,QAAQ,KAAK,GAC7B,QAAQ,OACR,SAAS,QAAQ,KAAK,GACpB,CAAC,QAAQ,KAAK,GACd,EAAE;IACT;GACF,CAAC,CACH;EACF"}
|
package/dist/unloader.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
let unplugin = require("unplugin");
|
package/dist/unloader.mjs
CHANGED
package/dist/unplugin.cjs
CHANGED
package/dist/unplugin.mjs
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
let defu = require("defu");
|
package/dist/vite.mjs
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-BYbfR23c.cjs');
|
|
4
4
|
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
5
|
require('./virtual-Cbvj12lU.cjs');
|
|
6
6
|
let unplugin = require("unplugin");
|
package/dist/webpack.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerlines",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The \"framework framework\" that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
|
|
6
6
|
"keywords": [
|
|
@@ -341,21 +341,21 @@
|
|
|
341
341
|
"dependencies": {
|
|
342
342
|
"@cacheable/memory": "^2.0.8",
|
|
343
343
|
"@donedeal0/superdiff": "^3.2.0",
|
|
344
|
-
"@powerlines/core": "^0.
|
|
345
|
-
"@storm-software/config": "^1.135.
|
|
346
|
-
"@storm-software/config-tools": "^1.189.
|
|
347
|
-
"@stryke/capnp": "^0.12.
|
|
348
|
-
"@stryke/convert": "^0.6.
|
|
349
|
-
"@stryke/env": "^0.20.
|
|
350
|
-
"@stryke/fs": "^0.33.
|
|
351
|
-
"@stryke/hash": "^0.13.
|
|
352
|
-
"@stryke/helpers": "^0.10.
|
|
353
|
-
"@stryke/http": "^0.12.
|
|
354
|
-
"@stryke/json": "^0.14.
|
|
355
|
-
"@stryke/path": "^0.27.
|
|
356
|
-
"@stryke/string-format": "^0.17.
|
|
357
|
-
"@stryke/type-checks": "^0.5.
|
|
358
|
-
"@stryke/unique-id": "^0.3.
|
|
344
|
+
"@powerlines/core": "^0.5.2",
|
|
345
|
+
"@storm-software/config": "^1.135.40",
|
|
346
|
+
"@storm-software/config-tools": "^1.189.39",
|
|
347
|
+
"@stryke/capnp": "^0.12.89",
|
|
348
|
+
"@stryke/convert": "^0.6.56",
|
|
349
|
+
"@stryke/env": "^0.20.80",
|
|
350
|
+
"@stryke/fs": "^0.33.63",
|
|
351
|
+
"@stryke/hash": "^0.13.16",
|
|
352
|
+
"@stryke/helpers": "^0.10.6",
|
|
353
|
+
"@stryke/http": "^0.12.52",
|
|
354
|
+
"@stryke/json": "^0.14.10",
|
|
355
|
+
"@stryke/path": "^0.27.2",
|
|
356
|
+
"@stryke/string-format": "^0.17.6",
|
|
357
|
+
"@stryke/type-checks": "^0.5.41",
|
|
358
|
+
"@stryke/unique-id": "^0.3.74",
|
|
359
359
|
"bundle-require": "^5.1.0",
|
|
360
360
|
"compatx": "^0.2.0",
|
|
361
361
|
"defu": "^6.1.4",
|
|
@@ -365,30 +365,30 @@
|
|
|
365
365
|
"oxc-parser": "^0.99.0",
|
|
366
366
|
"oxc-resolver": "^11.19.1",
|
|
367
367
|
"ts-morph": "^27.0.2",
|
|
368
|
-
"undici": "^7.24.
|
|
368
|
+
"undici": "^7.24.4",
|
|
369
369
|
"unimport": "^5.7.0",
|
|
370
370
|
"unplugin": "^3.0.0"
|
|
371
371
|
},
|
|
372
372
|
"devDependencies": {
|
|
373
|
-
"@powerlines/plugin-esbuild": "^0.13.
|
|
374
|
-
"@powerlines/plugin-rolldown": "^0.7.
|
|
375
|
-
"@powerlines/plugin-rollup": "^0.7.
|
|
376
|
-
"@powerlines/plugin-rspack": "^0.5.
|
|
377
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
378
|
-
"@powerlines/plugin-tsup": "^0.12.
|
|
379
|
-
"@powerlines/plugin-unbuild": "^0.5.
|
|
380
|
-
"@powerlines/plugin-vite": "^0.14.
|
|
381
|
-
"@powerlines/plugin-webpack": "^0.5.
|
|
382
|
-
"@storm-software/testing-tools": "^1.119.
|
|
383
|
-
"@stryke/types": "^0.
|
|
373
|
+
"@powerlines/plugin-esbuild": "^0.13.361",
|
|
374
|
+
"@powerlines/plugin-rolldown": "^0.7.363",
|
|
375
|
+
"@powerlines/plugin-rollup": "^0.7.361",
|
|
376
|
+
"@powerlines/plugin-rspack": "^0.5.360",
|
|
377
|
+
"@powerlines/plugin-tsdown": "^0.1.306",
|
|
378
|
+
"@powerlines/plugin-tsup": "^0.12.362",
|
|
379
|
+
"@powerlines/plugin-unbuild": "^0.5.361",
|
|
380
|
+
"@powerlines/plugin-vite": "^0.14.356",
|
|
381
|
+
"@powerlines/plugin-webpack": "^0.5.360",
|
|
382
|
+
"@storm-software/testing-tools": "^1.119.114",
|
|
383
|
+
"@stryke/types": "^0.11.1",
|
|
384
384
|
"@types/bun": "^1.3.10",
|
|
385
385
|
"@types/node": "^25.5.0",
|
|
386
386
|
"@types/semver": "^7.7.1",
|
|
387
387
|
"bun-types-no-globals": "^1.3.10",
|
|
388
388
|
"rolldown": "1.0.0-rc.9",
|
|
389
|
-
"tsdown": "^0.21.
|
|
389
|
+
"tsdown": "^0.21.4",
|
|
390
390
|
"typescript": "^5.9.3",
|
|
391
|
-
"undici-types": "^7.24.
|
|
391
|
+
"undici-types": "^7.24.4"
|
|
392
392
|
},
|
|
393
393
|
"peerDependencies": {
|
|
394
394
|
"@farmfe/cli": ">=1.0.5",
|
|
@@ -426,5 +426,5 @@
|
|
|
426
426
|
"unloader": { "optional": true }
|
|
427
427
|
},
|
|
428
428
|
"publishConfig": { "access": "public" },
|
|
429
|
-
"gitHead": "
|
|
429
|
+
"gitHead": "c6ab4089999ed8b1f08214f9358d527de33dfa5e"
|
|
430
430
|
}
|