powerlines 0.37.19 → 0.37.21
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-4QATNI7W.cjs +12 -0
- package/dist/{chunk-M3CFRPFZ.js → chunk-7Q4TUBXJ.js} +3 -3
- package/dist/{chunk-42WZLSOF.js → chunk-AQG66EUK.js} +3 -3
- package/dist/{chunk-ANTF5BOO.js → chunk-GUFYA64E.js} +3 -3
- package/dist/{chunk-Y34D5RYV.cjs → chunk-J7FOWGCH.cjs} +43 -12
- package/dist/{chunk-Y4QCZ2OV.cjs → chunk-KRQKJHEH.cjs} +4 -4
- package/dist/{chunk-JHTUK6MX.cjs → chunk-LQZK77AH.cjs} +5 -5
- package/dist/{chunk-L4GUY64Q.cjs → chunk-OZZ65IVY.cjs} +4 -4
- package/dist/chunk-P3RYMCAA.cjs +12 -0
- package/dist/{chunk-3D2W634M.js → chunk-QVZ32P2J.js} +3 -3
- package/dist/{chunk-Q7I3BALO.js → chunk-STSTFZT2.js} +43 -12
- package/dist/{chunk-JICQ22GE.js → chunk-Y6A4FTVN.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/{chunk-DYVYJFBX.js → chunk-2L77PLFS.js} +3 -3
- package/dist/lib/{chunk-DYVYJFBX.js.map → chunk-2L77PLFS.js.map} +1 -1
- package/dist/lib/{chunk-L5EOJFNS.js → chunk-4JLVGWHR.js} +4 -4
- package/dist/lib/{chunk-L5EOJFNS.js.map → chunk-4JLVGWHR.js.map} +1 -1
- package/dist/lib/{chunk-JNOY4EYL.cjs → chunk-C6CJM3EI.cjs} +33 -5
- package/dist/lib/chunk-C6CJM3EI.cjs.map +1 -0
- package/dist/lib/{chunk-HOZ2NEWZ.cjs → chunk-GIYLCTW5.cjs} +6 -6
- package/dist/lib/{chunk-HOZ2NEWZ.cjs.map → chunk-GIYLCTW5.cjs.map} +1 -1
- package/dist/lib/{chunk-YLN5L5PE.js → chunk-LD73LMAE.js} +13 -10
- package/dist/lib/chunk-LD73LMAE.js.map +1 -0
- package/dist/lib/{chunk-SCUYBF63.cjs → chunk-LMXKPOEX.cjs} +19 -19
- package/dist/lib/{chunk-SCUYBF63.cjs.map → chunk-LMXKPOEX.cjs.map} +1 -1
- package/dist/lib/{chunk-775KWWNA.cjs → chunk-MOCQ266V.cjs} +15 -12
- package/dist/lib/chunk-MOCQ266V.cjs.map +1 -0
- package/dist/lib/{chunk-RZIAG6SK.cjs → chunk-SVAHW2JC.cjs} +16 -16
- package/dist/lib/{chunk-RZIAG6SK.cjs.map → chunk-SVAHW2JC.cjs.map} +1 -1
- package/dist/lib/{chunk-7JZZ7SRY.js → chunk-ZH6OZFGY.js} +4 -4
- package/dist/lib/{chunk-7JZZ7SRY.js.map → chunk-ZH6OZFGY.js.map} +1 -1
- package/dist/lib/{chunk-2UCZZIH2.js → chunk-ZTBWCQH5.js} +33 -5
- package/dist/lib/chunk-ZTBWCQH5.js.map +1 -0
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +4 -0
- package/dist/lib/contexts/context.d.ts +4 -0
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.js +4 -4
- 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.js +5 -5
- 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/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-37DLMJGM.cjs +0 -12
- package/dist/chunk-4RGOEJDJ.cjs +0 -12
- package/dist/lib/chunk-2UCZZIH2.js.map +0 -1
- package/dist/lib/chunk-775KWWNA.cjs.map +0 -1
- package/dist/lib/chunk-JNOY4EYL.cjs.map +0 -1
- package/dist/lib/chunk-YLN5L5PE.js.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ7FOWGCH_cjs = require('./chunk-J7FOWGCH.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 chunkJ7FOWGCH_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 chunkKRQKJHEH_cjs = require('./chunk-KRQKJHEH.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-LQZK77AH.cjs');
|
|
8
|
+
require('./chunk-J7FOWGCH.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
|
+
chunkKRQKJHEH_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-Y6A4FTVN.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-7Q4TUBXJ.js';
|
|
4
|
+
import './chunk-STSTFZT2.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkLQZK77AH_cjs = require('./chunk-LQZK77AH.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkLQZK77AH_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-4QATNI7W.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-4QATNI7W.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-STSTFZT2.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-7Q4TUBXJ.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-7Q4TUBXJ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-7Q4TUBXJ.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-AQG66EUK.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-AQG66EUK.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-7Q4TUBXJ.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-GUFYA64E.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-GUFYA64E.js.map
|
|
@@ -1866,15 +1866,43 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1866
1866
|
const buffer$1 = await buffer.readFileBuffer(joinPaths.joinPaths(context.dataPath, "fs.bin"));
|
|
1867
1867
|
const message2 = new $__namespace.Message(buffer$1, false);
|
|
1868
1868
|
const fs = message2.getRoot(FileSystem);
|
|
1869
|
-
const
|
|
1869
|
+
const result2 = new _VirtualFileSystem(context, fs);
|
|
1870
1870
|
if (fs._hasStorage() && fs.storage.length > 0) {
|
|
1871
1871
|
await Promise.all(fs.storage.values().map(async (file) => {
|
|
1872
|
-
await
|
|
1872
|
+
await result2.write(file.path, file.code);
|
|
1873
1873
|
}));
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
1876
|
const message = new $__namespace.Message();
|
|
1877
|
-
|
|
1877
|
+
const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
|
|
1878
|
+
if (result.metadata) {
|
|
1879
|
+
context.entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
|
|
1880
|
+
if (meta.properties) {
|
|
1881
|
+
const typeDefinition = {
|
|
1882
|
+
file: path
|
|
1883
|
+
};
|
|
1884
|
+
if (isSetString.isSetString(meta.properties.name)) {
|
|
1885
|
+
typeDefinition.name = meta.properties.name;
|
|
1886
|
+
}
|
|
1887
|
+
if (isSetString.isSetString(meta.properties["input.file"]) || isSetString.isSetString(meta.properties["input.name"])) {
|
|
1888
|
+
typeDefinition.input ??= {};
|
|
1889
|
+
if (isSetString.isSetString(meta.properties["input.file"])) {
|
|
1890
|
+
typeDefinition.input.file = meta.properties["input.file"];
|
|
1891
|
+
}
|
|
1892
|
+
if (isSetString.isSetString(meta.properties["input.name"])) {
|
|
1893
|
+
typeDefinition.input.name = meta.properties["input.name"];
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
if (isSetString.isSetString(meta.properties.output)) {
|
|
1897
|
+
typeDefinition.output = meta.properties.output;
|
|
1898
|
+
}
|
|
1899
|
+
return typeDefinition;
|
|
1900
|
+
}
|
|
1901
|
+
return null;
|
|
1902
|
+
}).filter(Boolean);
|
|
1903
|
+
context.debug(`Loaded ${context.entry.length} entry type definitions from VFS metadata.`);
|
|
1904
|
+
}
|
|
1905
|
+
return result;
|
|
1878
1906
|
}
|
|
1879
1907
|
/**
|
|
1880
1908
|
* Synchronously creates a virtual file system (VFS) that is backed up to a Cap'n Proto message buffer.
|
|
@@ -2727,7 +2755,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2727
2755
|
#buildId = uuid.uuid();
|
|
2728
2756
|
#releaseId = uuid.uuid();
|
|
2729
2757
|
#timestamp = Date.now();
|
|
2730
|
-
#entry = null;
|
|
2731
2758
|
#fs;
|
|
2732
2759
|
#tsconfig;
|
|
2733
2760
|
#program;
|
|
@@ -2814,6 +2841,10 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2814
2841
|
*/
|
|
2815
2842
|
resolver;
|
|
2816
2843
|
/**
|
|
2844
|
+
* An internal object containing the added resolved entry type definitions for the project.
|
|
2845
|
+
*/
|
|
2846
|
+
_entry = null;
|
|
2847
|
+
/**
|
|
2817
2848
|
* The resolved configuration options
|
|
2818
2849
|
*/
|
|
2819
2850
|
resolvePatterns = [];
|
|
@@ -2843,13 +2874,13 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2843
2874
|
* The resolved entry type definitions for the project
|
|
2844
2875
|
*/
|
|
2845
2876
|
get entry() {
|
|
2846
|
-
return resolveEntriesSync(this, !this
|
|
2877
|
+
return resolveEntriesSync(this, !this._entry || this._entry.length === 0 ? toArray.toArray(this.config.entry) : this._entry);
|
|
2847
2878
|
}
|
|
2848
2879
|
/**
|
|
2849
2880
|
* Sets the resolved entry type definitions for the project
|
|
2850
2881
|
*/
|
|
2851
2882
|
set entry(value) {
|
|
2852
|
-
this
|
|
2883
|
+
this._entry = value;
|
|
2853
2884
|
}
|
|
2854
2885
|
/**
|
|
2855
2886
|
* The TypeScript configuration parsed from the tsconfig file
|
|
@@ -3306,8 +3337,8 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3306
3337
|
*/
|
|
3307
3338
|
async emitEntry(code, path, options = {}) {
|
|
3308
3339
|
const entryPath = append.appendPath(replace.replacePath(replace.replacePath(replace.replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3309
|
-
this
|
|
3310
|
-
this
|
|
3340
|
+
this._entry ??= [];
|
|
3341
|
+
this._entry.push({
|
|
3311
3342
|
name: options.name,
|
|
3312
3343
|
file: entryPath,
|
|
3313
3344
|
input: options.input,
|
|
@@ -3336,8 +3367,8 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3336
3367
|
*/
|
|
3337
3368
|
emitEntrySync(code, path, options = {}) {
|
|
3338
3369
|
const entryPath = append.appendPath(replace.replacePath(replace.replacePath(replace.replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3339
|
-
this
|
|
3340
|
-
this
|
|
3370
|
+
this._entry ??= [];
|
|
3371
|
+
this._entry.push({
|
|
3341
3372
|
name: options?.name,
|
|
3342
3373
|
file: entryPath,
|
|
3343
3374
|
input: options?.input,
|
|
@@ -4948,5 +4979,5 @@ exports.combineContexts = combineContexts;
|
|
|
4948
4979
|
exports.createLog = createLog;
|
|
4949
4980
|
exports.extendLog = extendLog;
|
|
4950
4981
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
4951
|
-
//# sourceMappingURL=chunk-
|
|
4952
|
-
//# sourceMappingURL=chunk-
|
|
4982
|
+
//# sourceMappingURL=chunk-J7FOWGCH.cjs.map
|
|
4983
|
+
//# sourceMappingURL=chunk-J7FOWGCH.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkLQZK77AH_cjs = require('./chunk-LQZK77AH.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(chunkLQZK77AH_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-KRQKJHEH.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-KRQKJHEH.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJ7FOWGCH_cjs = require('./chunk-J7FOWGCH.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 = chunkJ7FOWGCH_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 chunkJ7FOWGCH_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-LQZK77AH.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-LQZK77AH.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkLQZK77AH_cjs = require('./chunk-LQZK77AH.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(chunkLQZK77AH_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-OZZ65IVY.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-OZZ65IVY.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkLQZK77AH_cjs = require('./chunk-LQZK77AH.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkLQZK77AH_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-P3RYMCAA.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-P3RYMCAA.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-7Q4TUBXJ.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-QVZ32P2J.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-QVZ32P2J.js.map
|
|
@@ -1837,15 +1837,43 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1837
1837
|
const buffer = await readFileBuffer(joinPaths$1(context.dataPath, "fs.bin"));
|
|
1838
1838
|
const message2 = new $.Message(buffer, false);
|
|
1839
1839
|
const fs = message2.getRoot(FileSystem);
|
|
1840
|
-
const
|
|
1840
|
+
const result2 = new _VirtualFileSystem(context, fs);
|
|
1841
1841
|
if (fs._hasStorage() && fs.storage.length > 0) {
|
|
1842
1842
|
await Promise.all(fs.storage.values().map(async (file) => {
|
|
1843
|
-
await
|
|
1843
|
+
await result2.write(file.path, file.code);
|
|
1844
1844
|
}));
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
1847
|
const message = new $.Message();
|
|
1848
|
-
|
|
1848
|
+
const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
|
|
1849
|
+
if (result.metadata) {
|
|
1850
|
+
context.entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
|
|
1851
|
+
if (meta.properties) {
|
|
1852
|
+
const typeDefinition = {
|
|
1853
|
+
file: path
|
|
1854
|
+
};
|
|
1855
|
+
if (isSetString(meta.properties.name)) {
|
|
1856
|
+
typeDefinition.name = meta.properties.name;
|
|
1857
|
+
}
|
|
1858
|
+
if (isSetString(meta.properties["input.file"]) || isSetString(meta.properties["input.name"])) {
|
|
1859
|
+
typeDefinition.input ??= {};
|
|
1860
|
+
if (isSetString(meta.properties["input.file"])) {
|
|
1861
|
+
typeDefinition.input.file = meta.properties["input.file"];
|
|
1862
|
+
}
|
|
1863
|
+
if (isSetString(meta.properties["input.name"])) {
|
|
1864
|
+
typeDefinition.input.name = meta.properties["input.name"];
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
if (isSetString(meta.properties.output)) {
|
|
1868
|
+
typeDefinition.output = meta.properties.output;
|
|
1869
|
+
}
|
|
1870
|
+
return typeDefinition;
|
|
1871
|
+
}
|
|
1872
|
+
return null;
|
|
1873
|
+
}).filter(Boolean);
|
|
1874
|
+
context.debug(`Loaded ${context.entry.length} entry type definitions from VFS metadata.`);
|
|
1875
|
+
}
|
|
1876
|
+
return result;
|
|
1849
1877
|
}
|
|
1850
1878
|
/**
|
|
1851
1879
|
* Synchronously creates a virtual file system (VFS) that is backed up to a Cap'n Proto message buffer.
|
|
@@ -2698,7 +2726,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2698
2726
|
#buildId = uuid();
|
|
2699
2727
|
#releaseId = uuid();
|
|
2700
2728
|
#timestamp = Date.now();
|
|
2701
|
-
#entry = null;
|
|
2702
2729
|
#fs;
|
|
2703
2730
|
#tsconfig;
|
|
2704
2731
|
#program;
|
|
@@ -2785,6 +2812,10 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2785
2812
|
*/
|
|
2786
2813
|
resolver;
|
|
2787
2814
|
/**
|
|
2815
|
+
* An internal object containing the added resolved entry type definitions for the project.
|
|
2816
|
+
*/
|
|
2817
|
+
_entry = null;
|
|
2818
|
+
/**
|
|
2788
2819
|
* The resolved configuration options
|
|
2789
2820
|
*/
|
|
2790
2821
|
resolvePatterns = [];
|
|
@@ -2814,13 +2845,13 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2814
2845
|
* The resolved entry type definitions for the project
|
|
2815
2846
|
*/
|
|
2816
2847
|
get entry() {
|
|
2817
|
-
return resolveEntriesSync(this, !this
|
|
2848
|
+
return resolveEntriesSync(this, !this._entry || this._entry.length === 0 ? toArray(this.config.entry) : this._entry);
|
|
2818
2849
|
}
|
|
2819
2850
|
/**
|
|
2820
2851
|
* Sets the resolved entry type definitions for the project
|
|
2821
2852
|
*/
|
|
2822
2853
|
set entry(value) {
|
|
2823
|
-
this
|
|
2854
|
+
this._entry = value;
|
|
2824
2855
|
}
|
|
2825
2856
|
/**
|
|
2826
2857
|
* The TypeScript configuration parsed from the tsconfig file
|
|
@@ -3277,8 +3308,8 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3277
3308
|
*/
|
|
3278
3309
|
async emitEntry(code, path, options = {}) {
|
|
3279
3310
|
const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3280
|
-
this
|
|
3281
|
-
this
|
|
3311
|
+
this._entry ??= [];
|
|
3312
|
+
this._entry.push({
|
|
3282
3313
|
name: options.name,
|
|
3283
3314
|
file: entryPath,
|
|
3284
3315
|
input: options.input,
|
|
@@ -3307,8 +3338,8 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3307
3338
|
*/
|
|
3308
3339
|
emitEntrySync(code, path, options = {}) {
|
|
3309
3340
|
const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3310
|
-
this
|
|
3311
|
-
this
|
|
3341
|
+
this._entry ??= [];
|
|
3342
|
+
this._entry.push({
|
|
3312
3343
|
name: options?.name,
|
|
3313
3344
|
file: entryPath,
|
|
3314
3345
|
input: options?.input,
|
|
@@ -4909,5 +4940,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4909
4940
|
};
|
|
4910
4941
|
|
|
4911
4942
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
|
|
4912
|
-
//# sourceMappingURL=chunk-
|
|
4913
|
-
//# sourceMappingURL=chunk-
|
|
4943
|
+
//# sourceMappingURL=chunk-STSTFZT2.js.map
|
|
4944
|
+
//# sourceMappingURL=chunk-STSTFZT2.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-7Q4TUBXJ.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-Y6A4FTVN.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-Y6A4FTVN.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 chunkOZZ65IVY_cjs = require('./chunk-OZZ65IVY.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-LQZK77AH.cjs');
|
|
8
|
+
require('./chunk-J7FOWGCH.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 chunkOZZ65IVY_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkOZZ65IVY_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkOZZ65IVY_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-AQG66EUK.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-7Q4TUBXJ.js';
|
|
4
|
+
import './chunk-STSTFZT2.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 chunkLQZK77AH_cjs = require('./chunk-LQZK77AH.cjs');
|
|
6
|
+
require('./chunk-J7FOWGCH.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(chunkLQZK77AH_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-7Q4TUBXJ.js';
|
|
2
|
+
import './chunk-STSTFZT2.js';
|
|
3
3
|
import './chunk-PQXP7XQK.js';
|
|
4
4
|
import './chunk-NITQ5IYP.js';
|
|
5
5
|
import './chunk-2MYPFASJ.js';
|
package/dist/index.cjs
CHANGED
|
@@ -13,7 +13,7 @@ require('./chunk-4JCNAKOE.cjs');
|
|
|
13
13
|
require('./chunk-D6GGZQLC.cjs');
|
|
14
14
|
var chunkA7AUGAHH_cjs = require('./chunk-A7AUGAHH.cjs');
|
|
15
15
|
var chunk42ZHOCZJ_cjs = require('./chunk-42ZHOCZJ.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkJ7FOWGCH_cjs = require('./chunk-J7FOWGCH.cjs');
|
|
17
17
|
var chunkB6DVCLP5_cjs = require('./chunk-B6DVCLP5.cjs');
|
|
18
18
|
var chunkV5WOGN7O_cjs = require('./chunk-V5WOGN7O.cjs');
|
|
19
19
|
var chunkZ6ARQDHR_cjs = require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -27,10 +27,10 @@ chunkPK6SKIKE_cjs.__name(defineConfig, "defineConfig");
|
|
|
27
27
|
async function createPowerlines(options = {}) {
|
|
28
28
|
options.root ??= process.cwd();
|
|
29
29
|
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(options.root);
|
|
30
|
-
return
|
|
30
|
+
return chunkJ7FOWGCH_cjs.PowerlinesAPI.from(workspaceRoot, options);
|
|
31
31
|
}
|
|
32
32
|
chunkPK6SKIKE_cjs.__name(createPowerlines, "createPowerlines");
|
|
33
|
-
var index_default =
|
|
33
|
+
var index_default = chunkJ7FOWGCH_cjs.PowerlinesAPI;
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "STORAGE_PRESETS", {
|
|
36
36
|
enumerable: true,
|
|
@@ -50,31 +50,31 @@ Object.defineProperty(exports, "HOOKS_LIST_ORDERS", {
|
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FileId", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkJ7FOWGCH_cjs.FileId; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FileMetadata", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkJ7FOWGCH_cjs.FileMetadata; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkJ7FOWGCH_cjs.FileMetadata_KeyValuePair; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FileStorage", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkJ7FOWGCH_cjs.FileStorage; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FileSystem", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkJ7FOWGCH_cjs.FileSystem; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkJ7FOWGCH_cjs.PowerlinesAPI; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "_capnpFileId", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkJ7FOWGCH_cjs._capnpFileId; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "KNOWN_PLUGIN_FIELDS", {
|
|
80
80
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ import './chunk-OYASPHNL.js';
|
|
|
9
9
|
import './chunk-OD4BINRW.js';
|
|
10
10
|
export { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from './chunk-KXRVVFNK.js';
|
|
11
11
|
export { HOOKS_LIST_ORDERS } from './chunk-CCJQBJKQ.js';
|
|
12
|
-
import { PowerlinesAPI } from './chunk-
|
|
13
|
-
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-
|
|
12
|
+
import { PowerlinesAPI } from './chunk-STSTFZT2.js';
|
|
13
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-STSTFZT2.js';
|
|
14
14
|
export { KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS } from './chunk-PQXP7XQK.js';
|
|
15
15
|
export { BUILDER_VARIANTS, UNPLUGIN_BUILDER_VARIANTS } from './chunk-NITQ5IYP.js';
|
|
16
16
|
export { SUPPORTED_COMMANDS } from './chunk-2MYPFASJ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isUnpluginBuilderVariant } from './chunk-254IMO3A.js';
|
|
2
|
-
import { PowerlinesContext, isPluginConfig, isPlugin, PLUGIN_NON_HOOK_FIELDS, isPluginHookField, isPluginHook, addPluginHook, isUnpluginHookField, isUnpluginHookKey } from './chunk-
|
|
2
|
+
import { PowerlinesContext, isPluginConfig, isPlugin, PLUGIN_NON_HOOK_FIELDS, isPluginHookField, isPluginHook, addPluginHook, isUnpluginHookField, isUnpluginHookKey } from './chunk-LD73LMAE.js';
|
|
3
3
|
import { createPluginContext } from './chunk-7PD2L3PS.js';
|
|
4
4
|
import { __name } from './chunk-7QVYU63E.js';
|
|
5
5
|
import { resolvePackage } from '@stryke/fs/resolve';
|
|
@@ -228,5 +228,5 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends P
|
|
|
228
228
|
};
|
|
229
229
|
|
|
230
230
|
export { PowerlinesEnvironmentContext };
|
|
231
|
-
//# sourceMappingURL=chunk-
|
|
232
|
-
//# sourceMappingURL=chunk-
|
|
231
|
+
//# sourceMappingURL=chunk-2L77PLFS.js.map
|
|
232
|
+
//# sourceMappingURL=chunk-2L77PLFS.js.map
|