powerlines 0.37.20 → 0.37.22
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.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.js +3 -3
- package/dist/{chunk-V6WQKLMS.js → chunk-2GYKL7MR.js} +60 -27
- package/dist/{chunk-ZYPY4L7T.js → chunk-3CM5DSDF.js} +3 -3
- package/dist/{chunk-P23QCNWH.cjs → chunk-DJLMDKJL.cjs} +4 -4
- package/dist/{chunk-IWV3YDKS.js → chunk-ED76WMZE.js} +3 -3
- package/dist/chunk-HG62S3DW.cjs +12 -0
- package/dist/{chunk-4HNJPFTF.cjs → chunk-LBPHFO4S.cjs} +60 -27
- package/dist/chunk-N3XGIGAC.cjs +12 -0
- package/dist/{chunk-FEOKZKN2.cjs → chunk-P54ICZRA.cjs} +5 -5
- package/dist/{chunk-W3DY4XZC.js → chunk-QP6ZNNHB.js} +3 -3
- package/dist/{chunk-YZPQYBDQ.js → chunk-TKMRSLBB.js} +3 -3
- package/dist/{chunk-CZXTEH3D.cjs → chunk-UQYTU5IK.cjs} +4 -4
- package/dist/{chunk-7S3ISLNJ.js → chunk-VUNH6T4K.js} +3 -3
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.js +2 -2
- package/dist/lib/build/index.d.cts +1 -1
- package/dist/lib/build/index.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +1 -1
- package/dist/lib/build/unbuild.d.ts +1 -1
- package/dist/lib/{chunk-JNOY4EYL.cjs → chunk-2SUWZWN4.cjs} +37 -5
- package/dist/lib/chunk-2SUWZWN4.cjs.map +1 -0
- package/dist/lib/{chunk-TKJUEST5.cjs → chunk-FJ2KUDL6.cjs} +18 -17
- package/dist/lib/chunk-FJ2KUDL6.cjs.map +1 -0
- package/dist/lib/{chunk-WAJ3CFVQ.cjs → chunk-HATBUK22.cjs} +6 -6
- package/dist/lib/{chunk-WAJ3CFVQ.cjs.map → chunk-HATBUK22.cjs.map} +1 -1
- package/dist/lib/{chunk-WLE5S3IJ.js → chunk-HRRIUJJN.js} +24 -24
- package/dist/lib/chunk-HRRIUJJN.js.map +1 -0
- package/dist/lib/{chunk-PHVELZCD.cjs → chunk-IHQM73EH.cjs} +26 -26
- package/dist/lib/chunk-IHQM73EH.cjs.map +1 -0
- package/dist/lib/{chunk-F6K7UAM5.js → chunk-MHID6LCS.js} +6 -5
- package/dist/lib/chunk-MHID6LCS.js.map +1 -0
- package/dist/lib/{chunk-XPM6XWHU.cjs → chunk-ML4OSKGQ.cjs} +19 -19
- package/dist/lib/{chunk-XPM6XWHU.cjs.map → chunk-ML4OSKGQ.cjs.map} +1 -1
- package/dist/lib/{chunk-G6KDGYNT.js → chunk-NLUGEM63.js} +3 -3
- package/dist/lib/{chunk-G6KDGYNT.js.map → chunk-NLUGEM63.js.map} +1 -1
- package/dist/lib/{chunk-LMUQQAZ3.js → chunk-OGSYFDDP.js} +4 -4
- package/dist/lib/{chunk-LMUQQAZ3.js.map → chunk-OGSYFDDP.js.map} +1 -1
- package/dist/lib/{chunk-2UCZZIH2.js → chunk-VP4LPCL2.js} +37 -5
- package/dist/lib/chunk-VP4LPCL2.js.map +1 -0
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.d.cts +1 -1
- package/dist/lib/contexts/api-context.d.ts +1 -1
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +1 -5
- package/dist/lib/contexts/context.d.ts +1 -5
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.d.cts +1 -1
- package/dist/lib/contexts/environment-context.d.ts +1 -1
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.d.cts +1 -1
- package/dist/lib/contexts/index.d.ts +1 -1
- package/dist/lib/contexts/index.js +4 -4
- package/dist/lib/contexts/plugin-context.d.cts +1 -1
- package/dist/lib/contexts/plugin-context.d.ts +1 -1
- package/dist/lib/fs/index.cjs +2 -2
- package/dist/lib/fs/index.js +1 -1
- package/dist/lib/fs/vfs.cjs +2 -2
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/index.cjs +10 -10
- package/dist/lib/index.d.cts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +5 -5
- package/dist/lib/{internal-CFBs3Fok.d.cts → internal-Dt8PM9M2.d.cts} +5 -1
- package/dist/lib/{internal-Dlj-vo3a.d.ts → internal-DyXNBori.d.ts} +5 -1
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/index.cjs +6 -6
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.js +5 -5
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/types/internal.d.cts +5 -1
- package/dist/types/internal.d.ts +5 -1
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +8 -8
- package/dist/unplugin.js +4 -4
- package/dist/vite.cjs +6 -6
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-NQGEUWDG.cjs +0 -12
- package/dist/chunk-VOWVO2DC.cjs +0 -12
- package/dist/lib/chunk-2UCZZIH2.js.map +0 -1
- package/dist/lib/chunk-F6K7UAM5.js.map +0 -1
- package/dist/lib/chunk-JNOY4EYL.cjs.map +0 -1
- package/dist/lib/chunk-PHVELZCD.cjs.map +0 -1
- package/dist/lib/chunk-TKJUEST5.cjs.map +0 -1
- package/dist/lib/chunk-WLE5S3IJ.js.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLBPHFO4S_cjs = require('./chunk-LBPHFO4S.cjs');
|
|
4
4
|
require('./chunk-B6DVCLP5.cjs');
|
|
5
5
|
require('./chunk-V5WOGN7O.cjs');
|
|
6
6
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkLBPHFO4S_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
|
16
16
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.js
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkUQYTU5IK_cjs = require('./chunk-UQYTU5IK.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-P54ICZRA.cjs');
|
|
8
|
+
require('./chunk-LBPHFO4S.cjs');
|
|
9
9
|
require('./chunk-B6DVCLP5.cjs');
|
|
10
10
|
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
16
16
|
vite: {
|
|
17
17
|
plugins: [
|
|
18
|
-
|
|
18
|
+
chunkUQYTU5IK_cjs.vite_default(config)
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
}), "astro");
|
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-VUNH6T4K.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-QP6ZNNHB.js';
|
|
4
|
+
import './chunk-2GYKL7MR.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1833,19 +1833,51 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1833
1833
|
* @returns A promise that resolves to a new virtual file system instance.
|
|
1834
1834
|
*/
|
|
1835
1835
|
static async create(context) {
|
|
1836
|
+
context.debug("Starting virtual file system (VFS) initialization processes...");
|
|
1836
1837
|
if (!context.config.skipCache && existsSync(joinPaths$1(context.dataPath, "fs.bin"))) {
|
|
1837
1838
|
const buffer = await readFileBuffer(joinPaths$1(context.dataPath, "fs.bin"));
|
|
1838
1839
|
const message2 = new $.Message(buffer, false);
|
|
1839
1840
|
const fs = message2.getRoot(FileSystem);
|
|
1840
|
-
const
|
|
1841
|
+
const result2 = new _VirtualFileSystem(context, fs);
|
|
1841
1842
|
if (fs._hasStorage() && fs.storage.length > 0) {
|
|
1842
1843
|
await Promise.all(fs.storage.values().map(async (file) => {
|
|
1843
|
-
await
|
|
1844
|
+
await result2.write(file.path, file.code);
|
|
1844
1845
|
}));
|
|
1845
1846
|
}
|
|
1846
1847
|
}
|
|
1847
1848
|
const message = new $.Message();
|
|
1848
|
-
|
|
1849
|
+
const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
|
|
1850
|
+
result.#log(LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
|
|
1851
|
+
if (result.metadata) {
|
|
1852
|
+
result.#log(LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.metadata).length} previously stored metadata records...`);
|
|
1853
|
+
const entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
|
|
1854
|
+
if (meta.properties) {
|
|
1855
|
+
const typeDefinition = {
|
|
1856
|
+
file: path
|
|
1857
|
+
};
|
|
1858
|
+
if (isSetString(meta.properties.name)) {
|
|
1859
|
+
typeDefinition.name = meta.properties.name;
|
|
1860
|
+
}
|
|
1861
|
+
if (isSetString(meta.properties["input.file"]) || isSetString(meta.properties["input.name"])) {
|
|
1862
|
+
typeDefinition.input ??= {};
|
|
1863
|
+
if (isSetString(meta.properties["input.file"])) {
|
|
1864
|
+
typeDefinition.input.file = meta.properties["input.file"];
|
|
1865
|
+
}
|
|
1866
|
+
if (isSetString(meta.properties["input.name"])) {
|
|
1867
|
+
typeDefinition.input.name = meta.properties["input.name"];
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
if (isSetString(meta.properties.output)) {
|
|
1871
|
+
typeDefinition.output = meta.properties.output;
|
|
1872
|
+
}
|
|
1873
|
+
return typeDefinition;
|
|
1874
|
+
}
|
|
1875
|
+
return null;
|
|
1876
|
+
}).filter(Boolean);
|
|
1877
|
+
result.#log(LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
|
|
1878
|
+
context.entry = entry;
|
|
1879
|
+
}
|
|
1880
|
+
return result;
|
|
1849
1881
|
}
|
|
1850
1882
|
/**
|
|
1851
1883
|
* Synchronously creates a virtual file system (VFS) that is backed up to a Cap'n Proto message buffer.
|
|
@@ -2692,7 +2724,9 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2692
2724
|
*
|
|
2693
2725
|
* @internal
|
|
2694
2726
|
*/
|
|
2695
|
-
#internal = {
|
|
2727
|
+
#internal = {
|
|
2728
|
+
entry: []
|
|
2729
|
+
};
|
|
2696
2730
|
#workspaceConfig;
|
|
2697
2731
|
#checksum = null;
|
|
2698
2732
|
#buildId = uuid();
|
|
@@ -2784,10 +2818,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2784
2818
|
*/
|
|
2785
2819
|
resolver;
|
|
2786
2820
|
/**
|
|
2787
|
-
* An internal object containing the added resolved entry type definitions for the project.
|
|
2788
|
-
*/
|
|
2789
|
-
_entry = null;
|
|
2790
|
-
/**
|
|
2791
2821
|
* The resolved configuration options
|
|
2792
2822
|
*/
|
|
2793
2823
|
resolvePatterns = [];
|
|
@@ -2817,13 +2847,13 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2817
2847
|
* The resolved entry type definitions for the project
|
|
2818
2848
|
*/
|
|
2819
2849
|
get entry() {
|
|
2820
|
-
return resolveEntriesSync(this, !this.
|
|
2850
|
+
return resolveEntriesSync(this, !this.$$internal.entry || this.$$internal.entry.length === 0 ? toArray(this.config.entry) : this.$$internal.entry);
|
|
2821
2851
|
}
|
|
2822
2852
|
/**
|
|
2823
2853
|
* Sets the resolved entry type definitions for the project
|
|
2824
2854
|
*/
|
|
2825
2855
|
set entry(value) {
|
|
2826
|
-
this.
|
|
2856
|
+
this.$$internal.entry = value;
|
|
2827
2857
|
}
|
|
2828
2858
|
/**
|
|
2829
2859
|
* The TypeScript configuration parsed from the tsconfig file
|
|
@@ -3280,13 +3310,14 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3280
3310
|
*/
|
|
3281
3311
|
async emitEntry(code, path, options = {}) {
|
|
3282
3312
|
const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3283
|
-
this.
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3313
|
+
if (this.$$internal.entry) {
|
|
3314
|
+
this.$$internal.entry.push({
|
|
3315
|
+
name: options.name,
|
|
3316
|
+
file: entryPath,
|
|
3317
|
+
input: options.input,
|
|
3318
|
+
output: options.output
|
|
3319
|
+
});
|
|
3320
|
+
}
|
|
3290
3321
|
return this.emit(code, entryPath, defu7(omit(options, [
|
|
3291
3322
|
"name"
|
|
3292
3323
|
]), {
|
|
@@ -3310,13 +3341,14 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3310
3341
|
*/
|
|
3311
3342
|
emitEntrySync(code, path, options = {}) {
|
|
3312
3343
|
const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3313
|
-
this.
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3344
|
+
if (this.$$internal.entry) {
|
|
3345
|
+
this.$$internal.entry.push({
|
|
3346
|
+
name: options?.name,
|
|
3347
|
+
file: entryPath,
|
|
3348
|
+
input: options?.input,
|
|
3349
|
+
output: options?.output
|
|
3350
|
+
});
|
|
3351
|
+
}
|
|
3320
3352
|
return this.emitSync(code, entryPath, defu7(omit(options, [
|
|
3321
3353
|
"name"
|
|
3322
3354
|
]), {
|
|
@@ -4269,7 +4301,8 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4269
4301
|
const api = new _PowerlinesAPI(await PowerlinesAPIContext.from(workspaceRoot, config));
|
|
4270
4302
|
api.#context.$$internal = {
|
|
4271
4303
|
api,
|
|
4272
|
-
addPlugin: api.#addPlugin.bind(api)
|
|
4304
|
+
addPlugin: api.#addPlugin.bind(api),
|
|
4305
|
+
entry: []
|
|
4273
4306
|
};
|
|
4274
4307
|
for (const plugin of api.context.config.plugins ?? []) {
|
|
4275
4308
|
await api.#addPlugin(plugin);
|
|
@@ -4912,5 +4945,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4912
4945
|
};
|
|
4913
4946
|
|
|
4914
4947
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
|
|
4915
|
-
//# sourceMappingURL=chunk-
|
|
4916
|
-
//# sourceMappingURL=chunk-
|
|
4948
|
+
//# sourceMappingURL=chunk-2GYKL7MR.js.map
|
|
4949
|
+
//# sourceMappingURL=chunk-2GYKL7MR.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
|
|
|
29
29
|
var esbuild_default = esbuild;
|
|
30
30
|
|
|
31
31
|
export { esbuild, esbuild_default };
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-3CM5DSDF.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-3CM5DSDF.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var isUndefined = require('@stryke/type-checks/is-undefined');
|
|
7
7
|
var unplugin = require('unplugin');
|
|
8
8
|
|
|
9
|
-
var esbuild = unplugin.createEsbuildPlugin(
|
|
9
|
+
var esbuild = unplugin.createEsbuildPlugin(chunkP54ICZRA_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
|
|
|
32
32
|
|
|
33
33
|
exports.esbuild = esbuild;
|
|
34
34
|
exports.esbuild_default = esbuild_default;
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-DJLMDKJL.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-DJLMDKJL.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
|
|
2
2
|
import { createRolldownPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
|
|
5
5
|
var rolldown_default = rolldown;
|
|
6
6
|
|
|
7
7
|
export { rolldown, rolldown_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-ED76WMZE.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-ED76WMZE.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkP54ICZRA_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-HG62S3DW.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-HG62S3DW.cjs.map
|
|
@@ -1862,19 +1862,51 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1862
1862
|
* @returns A promise that resolves to a new virtual file system instance.
|
|
1863
1863
|
*/
|
|
1864
1864
|
static async create(context) {
|
|
1865
|
+
context.debug("Starting virtual file system (VFS) initialization processes...");
|
|
1865
1866
|
if (!context.config.skipCache && exists.existsSync(joinPaths.joinPaths(context.dataPath, "fs.bin"))) {
|
|
1866
1867
|
const buffer$1 = await buffer.readFileBuffer(joinPaths.joinPaths(context.dataPath, "fs.bin"));
|
|
1867
1868
|
const message2 = new $__namespace.Message(buffer$1, false);
|
|
1868
1869
|
const fs = message2.getRoot(FileSystem);
|
|
1869
|
-
const
|
|
1870
|
+
const result2 = new _VirtualFileSystem(context, fs);
|
|
1870
1871
|
if (fs._hasStorage() && fs.storage.length > 0) {
|
|
1871
1872
|
await Promise.all(fs.storage.values().map(async (file) => {
|
|
1872
|
-
await
|
|
1873
|
+
await result2.write(file.path, file.code);
|
|
1873
1874
|
}));
|
|
1874
1875
|
}
|
|
1875
1876
|
}
|
|
1876
1877
|
const message = new $__namespace.Message();
|
|
1877
|
-
|
|
1878
|
+
const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
|
|
1879
|
+
result.#log(types.LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
|
|
1880
|
+
if (result.metadata) {
|
|
1881
|
+
result.#log(types.LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.metadata).length} previously stored metadata records...`);
|
|
1882
|
+
const entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
|
|
1883
|
+
if (meta.properties) {
|
|
1884
|
+
const typeDefinition = {
|
|
1885
|
+
file: path
|
|
1886
|
+
};
|
|
1887
|
+
if (isSetString.isSetString(meta.properties.name)) {
|
|
1888
|
+
typeDefinition.name = meta.properties.name;
|
|
1889
|
+
}
|
|
1890
|
+
if (isSetString.isSetString(meta.properties["input.file"]) || isSetString.isSetString(meta.properties["input.name"])) {
|
|
1891
|
+
typeDefinition.input ??= {};
|
|
1892
|
+
if (isSetString.isSetString(meta.properties["input.file"])) {
|
|
1893
|
+
typeDefinition.input.file = meta.properties["input.file"];
|
|
1894
|
+
}
|
|
1895
|
+
if (isSetString.isSetString(meta.properties["input.name"])) {
|
|
1896
|
+
typeDefinition.input.name = meta.properties["input.name"];
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
if (isSetString.isSetString(meta.properties.output)) {
|
|
1900
|
+
typeDefinition.output = meta.properties.output;
|
|
1901
|
+
}
|
|
1902
|
+
return typeDefinition;
|
|
1903
|
+
}
|
|
1904
|
+
return null;
|
|
1905
|
+
}).filter(Boolean);
|
|
1906
|
+
result.#log(types.LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
|
|
1907
|
+
context.entry = entry;
|
|
1908
|
+
}
|
|
1909
|
+
return result;
|
|
1878
1910
|
}
|
|
1879
1911
|
/**
|
|
1880
1912
|
* Synchronously creates a virtual file system (VFS) that is backed up to a Cap'n Proto message buffer.
|
|
@@ -2721,7 +2753,9 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2721
2753
|
*
|
|
2722
2754
|
* @internal
|
|
2723
2755
|
*/
|
|
2724
|
-
#internal = {
|
|
2756
|
+
#internal = {
|
|
2757
|
+
entry: []
|
|
2758
|
+
};
|
|
2725
2759
|
#workspaceConfig;
|
|
2726
2760
|
#checksum = null;
|
|
2727
2761
|
#buildId = uuid.uuid();
|
|
@@ -2813,10 +2847,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2813
2847
|
*/
|
|
2814
2848
|
resolver;
|
|
2815
2849
|
/**
|
|
2816
|
-
* An internal object containing the added resolved entry type definitions for the project.
|
|
2817
|
-
*/
|
|
2818
|
-
_entry = null;
|
|
2819
|
-
/**
|
|
2820
2850
|
* The resolved configuration options
|
|
2821
2851
|
*/
|
|
2822
2852
|
resolvePatterns = [];
|
|
@@ -2846,13 +2876,13 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2846
2876
|
* The resolved entry type definitions for the project
|
|
2847
2877
|
*/
|
|
2848
2878
|
get entry() {
|
|
2849
|
-
return resolveEntriesSync(this, !this.
|
|
2879
|
+
return resolveEntriesSync(this, !this.$$internal.entry || this.$$internal.entry.length === 0 ? toArray.toArray(this.config.entry) : this.$$internal.entry);
|
|
2850
2880
|
}
|
|
2851
2881
|
/**
|
|
2852
2882
|
* Sets the resolved entry type definitions for the project
|
|
2853
2883
|
*/
|
|
2854
2884
|
set entry(value) {
|
|
2855
|
-
this.
|
|
2885
|
+
this.$$internal.entry = value;
|
|
2856
2886
|
}
|
|
2857
2887
|
/**
|
|
2858
2888
|
* The TypeScript configuration parsed from the tsconfig file
|
|
@@ -3309,13 +3339,14 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3309
3339
|
*/
|
|
3310
3340
|
async emitEntry(code, path, options = {}) {
|
|
3311
3341
|
const entryPath = append.appendPath(replace.replacePath(replace.replacePath(replace.replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3312
|
-
this.
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3342
|
+
if (this.$$internal.entry) {
|
|
3343
|
+
this.$$internal.entry.push({
|
|
3344
|
+
name: options.name,
|
|
3345
|
+
file: entryPath,
|
|
3346
|
+
input: options.input,
|
|
3347
|
+
output: options.output
|
|
3348
|
+
});
|
|
3349
|
+
}
|
|
3319
3350
|
return this.emit(code, entryPath, defu7__default.default(omit.omit(options, [
|
|
3320
3351
|
"name"
|
|
3321
3352
|
]), {
|
|
@@ -3339,13 +3370,14 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3339
3370
|
*/
|
|
3340
3371
|
emitEntrySync(code, path, options = {}) {
|
|
3341
3372
|
const entryPath = append.appendPath(replace.replacePath(replace.replacePath(replace.replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3342
|
-
this.
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3373
|
+
if (this.$$internal.entry) {
|
|
3374
|
+
this.$$internal.entry.push({
|
|
3375
|
+
name: options?.name,
|
|
3376
|
+
file: entryPath,
|
|
3377
|
+
input: options?.input,
|
|
3378
|
+
output: options?.output
|
|
3379
|
+
});
|
|
3380
|
+
}
|
|
3349
3381
|
return this.emitSync(code, entryPath, defu7__default.default(omit.omit(options, [
|
|
3350
3382
|
"name"
|
|
3351
3383
|
]), {
|
|
@@ -4298,7 +4330,8 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4298
4330
|
const api = new _PowerlinesAPI(await PowerlinesAPIContext.from(workspaceRoot, config));
|
|
4299
4331
|
api.#context.$$internal = {
|
|
4300
4332
|
api,
|
|
4301
|
-
addPlugin: api.#addPlugin.bind(api)
|
|
4333
|
+
addPlugin: api.#addPlugin.bind(api),
|
|
4334
|
+
entry: []
|
|
4302
4335
|
};
|
|
4303
4336
|
for (const plugin of api.context.config.plugins ?? []) {
|
|
4304
4337
|
await api.#addPlugin(plugin);
|
|
@@ -4951,5 +4984,5 @@ exports.combineContexts = combineContexts;
|
|
|
4951
4984
|
exports.createLog = createLog;
|
|
4952
4985
|
exports.extendLog = extendLog;
|
|
4953
4986
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
4954
|
-
//# sourceMappingURL=chunk-
|
|
4955
|
-
//# sourceMappingURL=chunk-
|
|
4987
|
+
//# sourceMappingURL=chunk-LBPHFO4S.cjs.map
|
|
4988
|
+
//# sourceMappingURL=chunk-LBPHFO4S.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkP54ICZRA_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-N3XGIGAC.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-N3XGIGAC.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLBPHFO4S_cjs = require('./chunk-LBPHFO4S.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
var types = require('@storm-software/config-tools/types');
|
|
6
6
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
|
|
|
27
27
|
// src/lib/unplugin/factory.ts
|
|
28
28
|
function createUnpluginFactory(variant, decorate) {
|
|
29
29
|
return (config, meta) => {
|
|
30
|
-
const log =
|
|
30
|
+
const log = chunkLBPHFO4S_cjs.createLog("unplugin", config);
|
|
31
31
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
32
32
|
try {
|
|
33
33
|
const userConfig = {
|
|
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
38
38
|
let api;
|
|
39
39
|
async function buildStart() {
|
|
40
40
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
41
|
-
api = await
|
|
41
|
+
api = await chunkLBPHFO4S_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
|
|
42
42
|
unplugin.setParseImpl(api.context.parse);
|
|
43
43
|
log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
|
|
44
44
|
await api.prepare({
|
|
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
|
137
137
|
|
|
138
138
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
139
139
|
exports.getString = getString;
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-P54ICZRA.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-P54ICZRA.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-2GYKL7MR.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
4
|
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
134
134
|
__name(createUnpluginFactory, "createUnpluginFactory");
|
|
135
135
|
|
|
136
136
|
export { createUnpluginFactory, getString };
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-QP6ZNNHB.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-QP6ZNNHB.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
|
|
2
2
|
import { createWebpackPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
|
|
5
5
|
var webpack_default = webpack;
|
|
6
6
|
|
|
7
7
|
export { webpack, webpack_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-TKMRSLBB.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-TKMRSLBB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
|
|
|
97
97
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
98
98
|
|
|
99
99
|
// src/vite.ts
|
|
100
|
-
var vite = unplugin.createVitePlugin(
|
|
100
|
+
var vite = unplugin.createVitePlugin(chunkP54ICZRA_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
101
101
|
return {
|
|
102
102
|
...plugin,
|
|
103
103
|
vite: {
|
|
@@ -158,5 +158,5 @@ var vite_default = vite;
|
|
|
158
158
|
|
|
159
159
|
exports.vite = vite;
|
|
160
160
|
exports.vite_default = vite_default;
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
161
|
+
//# sourceMappingURL=chunk-UQYTU5IK.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-UQYTU5IK.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
151
151
|
var vite_default = vite;
|
|
152
152
|
|
|
153
153
|
export { vite, vite_default };
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-VUNH6T4K.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-VUNH6T4K.js.map
|
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 chunkDJLMDKJL_cjs = require('./chunk-DJLMDKJL.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-P54ICZRA.cjs');
|
|
8
|
+
require('./chunk-LBPHFO4S.cjs');
|
|
9
9
|
require('./chunk-B6DVCLP5.cjs');
|
|
10
10
|
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkDJLMDKJL_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkDJLMDKJL_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkDJLMDKJL_cjs.esbuild; }
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=esbuild.cjs.map
|
|
29
29
|
//# sourceMappingURL=esbuild.cjs.map
|
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-3CM5DSDF.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-QP6ZNNHB.js';
|
|
4
|
+
import './chunk-2GYKL7MR.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
package/dist/farm.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
|
|
6
|
+
require('./chunk-LBPHFO4S.cjs');
|
|
7
7
|
require('./chunk-B6DVCLP5.cjs');
|
|
8
8
|
require('./chunk-V5WOGN7O.cjs');
|
|
9
9
|
require('./chunk-Z6ARQDHR.cjs');
|
|
10
10
|
require('./chunk-PK6SKIKE.cjs');
|
|
11
11
|
var unplugin = require('unplugin');
|
|
12
12
|
|
|
13
|
-
var farm = unplugin.createFarmPlugin(
|
|
13
|
+
var farm = unplugin.createFarmPlugin(chunkP54ICZRA_cjs.createUnpluginFactory("farm"));
|
|
14
14
|
var farm_default = farm;
|
|
15
15
|
|
|
16
16
|
exports.default = farm_default;
|
package/dist/farm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
|
|
2
|
+
import './chunk-2GYKL7MR.js';
|
|
3
3
|
import './chunk-PQXP7XQK.js';
|
|
4
4
|
import './chunk-NITQ5IYP.js';
|
|
5
5
|
import './chunk-2MYPFASJ.js';
|