powerlines 0.42.41 → 0.43.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/{chunk-AIJqnxB6.cjs → _virtual/_rolldown/runtime.cjs} +1 -32
- package/dist/{chunk-CtajNgzt.mjs → _virtual/_rolldown/runtime.mjs} +1 -1
- package/dist/api.cjs +10 -0
- package/dist/api.d.cts +2 -0
- package/dist/api.d.mts +2 -0
- package/dist/api.mjs +3 -0
- package/dist/config.cjs +0 -12
- package/dist/config.mjs +1 -10
- package/dist/constants.cjs +0 -12
- package/dist/constants.mjs +1 -10
- package/dist/context.cjs +9 -0
- package/dist/context.d.cts +1 -0
- package/dist/context.d.mts +1 -0
- package/dist/context.mjs +3 -0
- package/dist/engine.cjs +30 -0
- package/dist/engine.d.cts +24 -0
- package/dist/engine.d.cts.map +1 -0
- package/dist/engine.d.mts +24 -0
- package/dist/engine.d.mts.map +1 -0
- package/dist/engine.mjs +29 -0
- package/dist/engine.mjs.map +1 -0
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.mjs.map +1 -1
- package/dist/farm.cjs +1 -1
- package/dist/index.cjs +24 -16
- package/dist/index.d.cts +13 -260
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +13 -260
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +14 -8
- package/dist/index.mjs.map +1 -1
- package/dist/nuxt.cjs +4 -4
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.mts +1 -1
- package/dist/nuxt.mjs +1 -1
- package/dist/package.cjs +18 -0
- package/dist/package.mjs +7 -0
- package/dist/package.mjs.map +1 -0
- package/dist/plugin-utils.cjs +0 -12
- package/dist/plugin-utils.mjs +1 -10
- package/dist/rolldown.cjs +2 -2
- package/dist/rollup.cjs +2 -2
- package/dist/rspack.cjs +2 -2
- package/dist/schemas.cjs +9 -0
- package/dist/schemas.d.cts +1 -0
- package/dist/schemas.d.mts +1 -0
- package/dist/schemas.mjs +3 -0
- package/dist/storage.cjs +9 -0
- package/dist/storage.d.cts +1 -0
- package/dist/storage.d.mts +1 -0
- package/dist/storage.mjs +3 -0
- package/dist/tsdown.cjs +3 -3
- package/dist/tsdown.mjs +1 -1
- package/dist/tsup.cjs +2 -2
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +8 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +8 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +1 -0
- package/dist/typescript.cjs +9 -0
- package/dist/typescript.d.cts +1 -0
- package/dist/typescript.d.mts +1 -0
- package/dist/typescript.mjs +3 -0
- package/dist/unbuild.cjs +17 -0
- package/dist/unbuild.d.cts +2 -0
- package/dist/unbuild.d.mts +2 -0
- package/dist/unbuild.mjs +3 -0
- package/dist/unloader.cjs +1 -1
- package/dist/unplugin.cjs +13 -14
- package/dist/unplugin.d.cts +3 -2
- package/dist/unplugin.d.cts.map +1 -1
- package/dist/unplugin.d.mts +3 -2
- package/dist/unplugin.d.mts.map +1 -1
- package/dist/unplugin.mjs +11 -13
- package/dist/unplugin.mjs.map +1 -1
- package/dist/utils.cjs +0 -14
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +2 -15
- package/dist/vite.cjs +4 -4
- package/dist/vite.mjs +1 -1
- package/dist/vite.mjs.map +1 -1
- package/dist/webpack.cjs +2 -2
- package/package.json +64 -53
- package/dist/api-CyXUks49.mjs +0 -1078
- package/dist/api-CyXUks49.mjs.map +0 -1
- package/dist/api-DITWluqG.cjs +0 -1098
- package/dist/api-context-BDFU_IC7.cjs +0 -3066
- package/dist/api-context-Cb99qIjE.mjs +0 -2986
- package/dist/api-context-Cb99qIjE.mjs.map +0 -1
- package/dist/config.mjs.map +0 -1
- package/dist/constants.mjs.map +0 -1
- package/dist/context/index.cjs +0 -7
- package/dist/context/index.d.cts +0 -600
- package/dist/context/index.d.cts.map +0 -1
- package/dist/context/index.d.mts +0 -600
- package/dist/context/index.d.mts.map +0 -1
- package/dist/context/index.mjs +0 -3
- package/dist/plugin-utils.mjs.map +0 -1
- package/dist/storage/index.cjs +0 -9
- package/dist/storage/index.d.cts +0 -419
- package/dist/storage/index.d.cts.map +0 -1
- package/dist/storage/index.d.mts +0 -419
- package/dist/storage/index.d.mts.map +0 -1
- package/dist/storage/index.mjs +0 -3
- package/dist/ts-morph-B85ZbV1Q.mjs +0 -102
- package/dist/ts-morph-B85ZbV1Q.mjs.map +0 -1
- package/dist/ts-morph-BvE8TMhv.cjs +0 -114
- package/dist/tsconfig-BjkktvB9.cjs +0 -198
- package/dist/tsconfig-DoV1dUYg.mjs +0 -155
- package/dist/tsconfig-DoV1dUYg.mjs.map +0 -1
- package/dist/types-9O-s0Fpu.d.mts +0 -4
- package/dist/types-9O-s0Fpu.d.mts.map +0 -1
- package/dist/types-DerAvFjs.d.cts +0 -4
- package/dist/types-DerAvFjs.d.cts.map +0 -1
- package/dist/typescript/index.cjs +0 -13
- package/dist/typescript/index.d.cts +0 -106
- package/dist/typescript/index.d.cts.map +0 -1
- package/dist/typescript/index.d.mts +0 -106
- package/dist/typescript/index.d.mts.map +0 -1
- package/dist/typescript/index.mjs +0 -4
- package/dist/utils.mjs.map +0 -1
- package/dist/virtual-BNy8T32w.cjs +0 -548
- package/dist/virtual-PaZGNIrj.mjs +0 -513
- package/dist/virtual-PaZGNIrj.mjs.map +0 -1
|
@@ -5,19 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __exportAll = (all, no_symbols) => {
|
|
9
|
-
let target = {};
|
|
10
|
-
for (var name in all) {
|
|
11
|
-
__defProp(target, name, {
|
|
12
|
-
get: all[name],
|
|
13
|
-
enumerable: true
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
if (!no_symbols) {
|
|
17
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
8
|
var __copyProps = (to, from, except, desc) => {
|
|
22
9
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
10
|
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -32,7 +19,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
32
19
|
}
|
|
33
20
|
return to;
|
|
34
21
|
};
|
|
35
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
36
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
37
23
|
value: mod,
|
|
38
24
|
enumerable: true
|
|
@@ -40,21 +26,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
26
|
|
|
41
27
|
//#endregion
|
|
42
28
|
|
|
43
|
-
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return __exportAll;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, '__reExport', {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () {
|
|
52
|
-
return __reExport;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, '__toESM', {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () {
|
|
58
|
-
return __toESM;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
29
|
+
exports.__toESM = __toESM;
|
|
@@ -33,4 +33,4 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
33
33
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
|
-
export {
|
|
36
|
+
export { __exportAll, __reExport };
|
package/dist/api.cjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _powerlines_engine_api = require("@powerlines/engine/api");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, 'PowerlinesAPI', {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () {
|
|
8
|
+
return _powerlines_engine_api.PowerlinesAPI;
|
|
9
|
+
}
|
|
10
|
+
});
|
package/dist/api.d.cts
ADDED
package/dist/api.d.mts
ADDED
package/dist/api.mjs
ADDED
package/dist/config.cjs
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
1
|
|
|
4
|
-
//#region src/config.ts
|
|
5
|
-
var config_exports = /* @__PURE__ */ require_chunk.__exportAll({});
|
|
6
|
-
require_chunk.__reExport(config_exports, require("@powerlines/core/lib/config"));
|
|
7
2
|
|
|
8
|
-
//#endregion
|
|
9
|
-
Object.defineProperty(exports, 'config_exports', {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () {
|
|
12
|
-
return config_exports;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
3
|
var _powerlines_core_lib_config = require("@powerlines/core/lib/config");
|
|
16
4
|
Object.keys(_powerlines_core_lib_config).forEach(function (k) {
|
|
17
5
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/config.mjs
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-CtajNgzt.mjs";
|
|
2
|
-
|
|
3
1
|
export * from "@powerlines/core/lib/config"
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
var config_exports = /* @__PURE__ */ __exportAll({});
|
|
7
|
-
import * as import__powerlines_core_lib_config from "@powerlines/core/lib/config";
|
|
8
|
-
__reExport(config_exports, import__powerlines_core_lib_config);
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { config_exports as t };
|
|
12
|
-
//# sourceMappingURL=config.mjs.map
|
|
3
|
+
export { };
|
package/dist/constants.cjs
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
1
|
|
|
4
|
-
//#region src/constants.ts
|
|
5
|
-
var constants_exports = /* @__PURE__ */ require_chunk.__exportAll({});
|
|
6
|
-
require_chunk.__reExport(constants_exports, require("@powerlines/core/constants"));
|
|
7
2
|
|
|
8
|
-
//#endregion
|
|
9
|
-
Object.defineProperty(exports, 'constants_exports', {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () {
|
|
12
|
-
return constants_exports;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
3
|
var _powerlines_core_constants = require("@powerlines/core/constants");
|
|
16
4
|
Object.keys(_powerlines_core_constants).forEach(function (k) {
|
|
17
5
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/constants.mjs
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./chunk-CtajNgzt.mjs";
|
|
2
|
-
|
|
3
1
|
export * from "@powerlines/core/constants"
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
var constants_exports = /* @__PURE__ */ __exportAll({});
|
|
7
|
-
import * as import__powerlines_core_constants from "@powerlines/core/constants";
|
|
8
|
-
__reExport(constants_exports, import__powerlines_core_constants);
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { constants_exports as t };
|
|
12
|
-
//# sourceMappingURL=constants.mjs.map
|
|
3
|
+
export { };
|
package/dist/context.cjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var _powerlines_engine_context = require("@powerlines/engine/context");
|
|
4
|
+
Object.keys(_powerlines_engine_context).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return _powerlines_engine_context[k]; }
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@powerlines/engine/context";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@powerlines/engine/context";
|
package/dist/context.mjs
ADDED
package/dist/engine.cjs
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_package = require('./package.cjs');
|
|
4
|
+
let _powerlines_engine = require("@powerlines/engine");
|
|
5
|
+
|
|
6
|
+
//#region src/engine.ts
|
|
7
|
+
/**
|
|
8
|
+
* The Powerlines Engine class
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
var PowerlinesEngine = class extends _powerlines_engine.PowerlinesEngine {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a Powerlines Engine instance
|
|
18
|
+
*
|
|
19
|
+
* @param options - The options to initialize the context with
|
|
20
|
+
* @returns A new instance of the Powerlines Engine
|
|
21
|
+
*/
|
|
22
|
+
static async fromOptions(options) {
|
|
23
|
+
const engine = await _powerlines_engine.PowerlinesEngine.fromOptions(options);
|
|
24
|
+
engine.context.info(`🔌 The Powerlines Engine v${require_package.version} has started`);
|
|
25
|
+
return engine;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.PowerlinesEngine = PowerlinesEngine;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { types_d_exports } from "./types.cjs";
|
|
2
|
+
import { PowerlinesEngine as PowerlinesEngine$1 } from "@powerlines/engine";
|
|
3
|
+
|
|
4
|
+
//#region src/engine.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* The Powerlines Engine class
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
declare class PowerlinesEngine extends PowerlinesEngine$1 {
|
|
14
|
+
/**
|
|
15
|
+
* Initialize a Powerlines Engine instance
|
|
16
|
+
*
|
|
17
|
+
* @param options - The options to initialize the context with
|
|
18
|
+
* @returns A new instance of the Powerlines Engine
|
|
19
|
+
*/
|
|
20
|
+
static fromOptions(options: types_d_exports.EngineOptions): Promise<PowerlinesEngine>;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { PowerlinesEngine };
|
|
24
|
+
//# sourceMappingURL=engine.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.d.cts","names":[],"sources":["../src/engine.ts"],"mappings":";;;;;;AA8BA;;;;;;cAAa,gBAAA,SAAyB,kBAAA;EAAwB;;;;;;EAAA,OAO/B,WAAA,CAC3B,OAAA,EAAS,eAAA,CAAA,aAAA,GACR,OAAA,CAAQ,gBAAA;AAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { types_d_exports } from "./types.mjs";
|
|
2
|
+
import { PowerlinesEngine as PowerlinesEngine$1 } from "@powerlines/engine";
|
|
3
|
+
|
|
4
|
+
//#region src/engine.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* The Powerlines Engine class
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
declare class PowerlinesEngine extends PowerlinesEngine$1 {
|
|
14
|
+
/**
|
|
15
|
+
* Initialize a Powerlines Engine instance
|
|
16
|
+
*
|
|
17
|
+
* @param options - The options to initialize the context with
|
|
18
|
+
* @returns A new instance of the Powerlines Engine
|
|
19
|
+
*/
|
|
20
|
+
static fromOptions(options: types_d_exports.EngineOptions): Promise<PowerlinesEngine>;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { PowerlinesEngine };
|
|
24
|
+
//# sourceMappingURL=engine.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.d.mts","names":[],"sources":["../src/engine.ts"],"mappings":";;;;;;AA8BA;;;;;;cAAa,gBAAA,SAAyB,kBAAA;EAAwB;;;;;;EAAA,OAO/B,WAAA,CAC3B,OAAA,EAAS,eAAA,CAAA,aAAA,GACR,OAAA,CAAQ,gBAAA;AAAA"}
|
package/dist/engine.mjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { version } from "./package.mjs";
|
|
2
|
+
import { PowerlinesEngine as PowerlinesEngine$1 } from "@powerlines/engine";
|
|
3
|
+
|
|
4
|
+
//#region src/engine.ts
|
|
5
|
+
/**
|
|
6
|
+
* The Powerlines Engine class
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
var PowerlinesEngine = class extends PowerlinesEngine$1 {
|
|
14
|
+
/**
|
|
15
|
+
* Initialize a Powerlines Engine instance
|
|
16
|
+
*
|
|
17
|
+
* @param options - The options to initialize the context with
|
|
18
|
+
* @returns A new instance of the Powerlines Engine
|
|
19
|
+
*/
|
|
20
|
+
static async fromOptions(options) {
|
|
21
|
+
const engine = await PowerlinesEngine$1.fromOptions(options);
|
|
22
|
+
engine.context.info(`🔌 The Powerlines Engine v${version} has started`);
|
|
23
|
+
return engine;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { PowerlinesEngine };
|
|
29
|
+
//# sourceMappingURL=engine.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.mjs","names":["InternalPowerlinesEngine","packageJson.version"],"sources":["../src/engine.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 { PowerlinesEngine as InternalPowerlinesEngine } from \"@powerlines/engine\";\nimport packageJson from \"../package.json\" with { type: \"json\" };\nimport type { EngineOptions } from \"./types\";\n\n/**\n * The Powerlines Engine class\n *\n * @remarks\n * This class is responsible for managing the Powerlines project lifecycle, including initialization, building, and finalization.\n *\n * @public\n */\nexport class PowerlinesEngine extends InternalPowerlinesEngine {\n /**\n * Initialize a Powerlines Engine instance\n *\n * @param options - The options to initialize the context with\n * @returns A new instance of the Powerlines Engine\n */\n public static override async fromOptions(\n options: EngineOptions\n ): Promise<PowerlinesEngine> {\n const engine = await InternalPowerlinesEngine.fromOptions(options);\n\n engine.context.info(\n `🔌 The Powerlines Engine v${packageJson.version} has started`\n );\n\n return engine;\n }\n}\n"],"mappings":";;;;;;;;;;;;AA8BA,IAAa,mBAAb,cAAsCA,mBAAyB;;;;;;;CAO7D,aAA6B,YAC3B,SAC2B;EAC3B,MAAM,SAAS,MAAMA,mBAAyB,YAAY,QAAQ;AAElE,SAAO,QAAQ,KACb,6BAA6BC,QAAoB,cAClD;AAED,SAAO"}
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_unplugin = require('./unplugin.cjs');
|
|
4
4
|
let unplugin = require("unplugin");
|
|
5
5
|
let _powerlines_plugin_esbuild_helpers_resolve_options = require("@powerlines/plugin-esbuild/helpers/resolve-options");
|
|
6
6
|
let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
7
7
|
let _powerlines_plugin_esbuild = require("@powerlines/plugin-esbuild");
|
|
8
|
-
_powerlines_plugin_esbuild =
|
|
8
|
+
_powerlines_plugin_esbuild = require_runtime.__toESM(_powerlines_plugin_esbuild, 1);
|
|
9
9
|
|
|
10
10
|
//#region src/esbuild.ts
|
|
11
11
|
/**
|
package/dist/esbuild.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.mjs","names":[],"sources":["../src/esbuild.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 { resolveOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { EsbuildPluginUserConfig } from \"@powerlines/plugin-esbuild/types/plugin\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport type { BuildOptions, PluginBuild } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as esbuild,\n default as plugin\n} from \"@powerlines/plugin-esbuild\";\n\n/**\n * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://esbuild.github.io/plugins/\n *\n * @example\n * ```js\n * // esbuild.config.js\n * import powerlines from \"powerlines/esbuild\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * };\n *\n * ```\n */\nexport const unplugin = createEsbuildPlugin<Partial<EsbuildPluginUserConfig>>(\n createUnpluginFactory(\"esbuild\", (api, plugin) => {\n return {\n ...plugin,\n esbuild: {\n config: options => {\n options ??= {}
|
|
1
|
+
{"version":3,"file":"esbuild.mjs","names":[],"sources":["../src/esbuild.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 { resolveOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { EsbuildPluginUserConfig } from \"@powerlines/plugin-esbuild/types/plugin\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport type { BuildOptions, PluginBuild } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as esbuild,\n default as plugin\n} from \"@powerlines/plugin-esbuild\";\n\n/**\n * An ESBuild plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://esbuild.github.io/plugins/\n *\n * @example\n * ```js\n * // esbuild.config.js\n * import powerlines from \"powerlines/esbuild\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * };\n *\n * ```\n */\nexport const unplugin = createEsbuildPlugin<Partial<EsbuildPluginUserConfig>>(\n createUnpluginFactory(\"esbuild\", (api, plugin) => {\n return {\n ...plugin,\n esbuild: {\n config: options => {\n options ??= {};\n\n const result = resolveOptions(api.context);\n for (const key in result) {\n if (\n isUndefined(options[key as keyof BuildOptions]) &&\n !isUndefined(result[key as keyof BuildOptions])\n ) {\n options[key as keyof BuildOptions] = result[\n key as keyof BuildOptions\n ] as any;\n }\n }\n },\n setup: async (build: PluginBuild) => {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"esbuild:setup\", { environment }, build);\n }\n }\n };\n })\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAa,WAAW,oBACtB,sBAAsB,YAAY,KAAK,WAAW;AAChD,QAAO;EACL,GAAG;EACH,SAAS;GACP,SAAQ,YAAW;AACjB,gBAAY,EAAE;IAEd,MAAM,SAAS,eAAe,IAAI,QAAQ;AAC1C,SAAK,MAAM,OAAO,OAChB,KACE,YAAY,QAAQ,KAA2B,IAC/C,CAAC,YAAY,OAAO,KAA2B,CAE/C,SAAQ,OAA6B,OACnC;;GAKR,OAAO,OAAO,UAAuB;IACnC,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,iBAAiB,EAAE,aAAa,EAAE,MAAM;;GAE/D;EACF;EACD,CACH"}
|
package/dist/farm.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_unplugin = require('./unplugin.cjs');
|
|
4
4
|
let unplugin = require("unplugin");
|
|
5
5
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
let
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
require('./api.cjs');
|
|
4
|
+
const require_engine = require('./engine.cjs');
|
|
5
|
+
let _powerlines_engine_api = require("@powerlines/engine/api");
|
|
6
6
|
|
|
7
7
|
//#region src/index.ts
|
|
8
8
|
/**
|
|
@@ -14,23 +14,31 @@ let _stryke_fs_get_workspace_root = require("@stryke/fs/get-workspace-root");
|
|
|
14
14
|
* @packageDocumentation
|
|
15
15
|
*/
|
|
16
16
|
/**
|
|
17
|
+
* Creates a new {@link PowerlinesEngine} instance.
|
|
18
|
+
*
|
|
19
|
+
* @param options - The user configuration options.
|
|
20
|
+
* @returns A promise that resolves to a {@link PowerlinesEngine} instance.
|
|
21
|
+
*/
|
|
22
|
+
async function createEngine(options) {
|
|
23
|
+
return require_engine.PowerlinesEngine.fromOptions(options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
17
26
|
* Creates a new {@link PowerlinesAPI} instance.
|
|
18
27
|
*
|
|
19
28
|
* @param options - The user configuration options.
|
|
20
29
|
* @returns A promise that resolves to a {@link PowerlinesAPI} instance.
|
|
21
30
|
*/
|
|
22
|
-
async function
|
|
23
|
-
|
|
24
|
-
const workspaceRoot = (0, _stryke_fs_get_workspace_root.getWorkspaceRoot)(options.root);
|
|
25
|
-
return require_api.PowerlinesAPI.from(workspaceRoot, options);
|
|
31
|
+
async function createAPI(options) {
|
|
32
|
+
return _powerlines_engine_api.PowerlinesAPI.fromOptions(options);
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
//#endregion
|
|
29
|
-
exports
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
36
|
+
Object.defineProperty(exports, 'PowerlinesAPI', {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _powerlines_engine_api.PowerlinesAPI;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
exports.PowerlinesEngine = require_engine.PowerlinesEngine;
|
|
43
|
+
exports.createAPI = createAPI;
|
|
44
|
+
exports.createEngine = createEngine;
|