powerlines 0.37.28 → 0.37.30
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-CRIGFGWB.js → chunk-2CQDJX6M.js} +3 -3
- package/dist/{chunk-GSVAZFVI.js → chunk-4JQPEMXH.js} +3 -3
- package/dist/{chunk-ZN3S5QJO.cjs → chunk-52KPCXIK.cjs} +5 -5
- package/dist/{chunk-IG4525PW.cjs → chunk-5ENLYVSO.cjs} +4 -4
- package/dist/chunk-7VPSEJKY.cjs +12 -0
- package/dist/{chunk-ITJIBCTV.js → chunk-E6S3W74I.js} +3 -3
- package/dist/chunk-MBOC2GGZ.cjs +12 -0
- package/dist/{chunk-QQVX5M5T.js → chunk-MQ6WRPXN.js} +3 -3
- package/dist/{chunk-VS527VFM.cjs → chunk-NJHY3UUE.cjs} +4 -4
- package/dist/{chunk-RF2JJTY5.js → chunk-QXPCHWBR.js} +3 -3
- package/dist/{chunk-DZP66IJA.cjs → chunk-RGBI7UX7.cjs} +15 -15
- package/dist/{chunk-RHCSG474.js → chunk-YL3OE2WO.js} +15 -15
- 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-S4AGK7G4.js → chunk-7CCOJFAV.js} +4 -4
- package/dist/lib/{chunk-S4AGK7G4.js.map → chunk-7CCOJFAV.js.map} +1 -1
- package/dist/lib/{chunk-QY5NHTSO.js → chunk-AJ4BVNZQ.js} +3 -3
- package/dist/lib/{chunk-QY5NHTSO.js.map → chunk-AJ4BVNZQ.js.map} +1 -1
- package/dist/lib/{chunk-7KET3OLG.cjs → chunk-BCHMMSWE.cjs} +16 -16
- package/dist/lib/{chunk-7KET3OLG.cjs.map → chunk-BCHMMSWE.cjs.map} +1 -1
- package/dist/lib/{chunk-LGKO3XJH.cjs → chunk-IRY6M7JO.cjs} +15 -15
- package/dist/lib/chunk-IRY6M7JO.cjs.map +1 -0
- package/dist/lib/{chunk-5RLNKSYH.cjs → chunk-JD3NTKZV.cjs} +5 -5
- package/dist/lib/{chunk-5RLNKSYH.cjs.map → chunk-JD3NTKZV.cjs.map} +1 -1
- package/dist/lib/{chunk-6UR7IC2X.js → chunk-LLHPKFHC.js} +15 -15
- package/dist/lib/chunk-LLHPKFHC.js.map +1 -0
- package/dist/lib/{chunk-NNZBDAIE.js → chunk-NFUIYX77.js} +3 -3
- package/dist/lib/{chunk-NNZBDAIE.js.map → chunk-NFUIYX77.js.map} +1 -1
- package/dist/lib/{chunk-JZMHMWDE.cjs → chunk-NGM47YES.cjs} +6 -6
- package/dist/lib/{chunk-JZMHMWDE.cjs.map → chunk-NGM47YES.cjs.map} +1 -1
- package/dist/lib/{chunk-GJDIXV7E.cjs → chunk-NLYJSUUY.cjs} +19 -19
- package/dist/lib/{chunk-GJDIXV7E.cjs.map → chunk-NLYJSUUY.cjs.map} +1 -1
- package/dist/lib/{chunk-2SM7UCAY.js → chunk-W2573LNZ.js} +4 -4
- package/dist/lib/{chunk-2SM7UCAY.js.map → chunk-W2573LNZ.js.map} +1 -1
- 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.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.d.cts +3 -3
- package/dist/lib/fs/vfs.d.ts +3 -3
- 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 +8 -8
- package/dist/chunk-4KTNNA5D.cjs +0 -12
- package/dist/chunk-IC7FKHSQ.cjs +0 -12
- package/dist/lib/chunk-6UR7IC2X.js.map +0 -1
- package/dist/lib/chunk-LGKO3XJH.cjs.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRGBI7UX7_cjs = require('./chunk-RGBI7UX7.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 chunkRGBI7UX7_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 chunk5ENLYVSO_cjs = require('./chunk-5ENLYVSO.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-52KPCXIK.cjs');
|
|
8
|
+
require('./chunk-RGBI7UX7.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
|
+
chunk5ENLYVSO_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-MQ6WRPXN.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-4JQPEMXH.js';
|
|
4
|
+
import './chunk-YL3OE2WO.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-4JQPEMXH.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-2CQDJX6M.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-2CQDJX6M.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-YL3OE2WO.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-4JQPEMXH.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-4JQPEMXH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRGBI7UX7_cjs = require('./chunk-RGBI7UX7.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 = chunkRGBI7UX7_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 chunkRGBI7UX7_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-52KPCXIK.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-52KPCXIK.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 chunk52KPCXIK_cjs = require('./chunk-52KPCXIK.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(chunk52KPCXIK_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-5ENLYVSO.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-5ENLYVSO.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk52KPCXIK_cjs = require('./chunk-52KPCXIK.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunk52KPCXIK_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-7VPSEJKY.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-7VPSEJKY.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-4JQPEMXH.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-E6S3W74I.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-E6S3W74I.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk52KPCXIK_cjs = require('./chunk-52KPCXIK.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunk52KPCXIK_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-MBOC2GGZ.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-MBOC2GGZ.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-4JQPEMXH.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-MQ6WRPXN.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-MQ6WRPXN.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 chunk52KPCXIK_cjs = require('./chunk-52KPCXIK.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(chunk52KPCXIK_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-NJHY3UUE.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-NJHY3UUE.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-4JQPEMXH.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-QXPCHWBR.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-QXPCHWBR.js.map
|
|
@@ -2029,7 +2029,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2029
2029
|
return this.#normalizeId(prop) in target;
|
|
2030
2030
|
}, "has"),
|
|
2031
2031
|
ownKeys: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target) => {
|
|
2032
|
-
return Reflect.ownKeys(target).map((key) => this.#normalizeId(key));
|
|
2032
|
+
return getUnique.getUnique(Reflect.ownKeys(target).map((key) => this.#normalizeId(key)));
|
|
2033
2033
|
}, "ownKeys")
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
@@ -2053,7 +2053,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2053
2053
|
return this.#normalizePath(prop) in target;
|
|
2054
2054
|
}, "has"),
|
|
2055
2055
|
ownKeys: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target) => {
|
|
2056
|
-
return Reflect.ownKeys(target).map((key) => this.#normalizePath(key));
|
|
2056
|
+
return getUnique.getUnique(Reflect.ownKeys(target).map((key) => this.#normalizePath(key)));
|
|
2057
2057
|
}, "ownKeys")
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
@@ -2077,7 +2077,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2077
2077
|
return this.#normalizeId(prop) in target;
|
|
2078
2078
|
}, "has"),
|
|
2079
2079
|
ownKeys: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target) => {
|
|
2080
|
-
return Reflect.ownKeys(target).map((key) => this.#normalizeId(key));
|
|
2080
|
+
return getUnique.getUnique(Reflect.ownKeys(target).map((key) => this.#normalizeId(key)));
|
|
2081
2081
|
}, "ownKeys")
|
|
2082
2082
|
});
|
|
2083
2083
|
}
|
|
@@ -2130,7 +2130,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2130
2130
|
ret[metadata.id] = {
|
|
2131
2131
|
id: metadata.id,
|
|
2132
2132
|
type: metadata.type,
|
|
2133
|
-
timestamp: metadata.timestamp
|
|
2133
|
+
timestamp: metadata.timestamp ?? Date.now(),
|
|
2134
2134
|
properties: metadata._hasProperties() ? metadata.properties.values().reduce((ret2, item) => {
|
|
2135
2135
|
ret2[item.key] = item.value;
|
|
2136
2136
|
return ret2;
|
|
@@ -2530,14 +2530,14 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2530
2530
|
}
|
|
2531
2531
|
this.#log(types.LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes.prettyBytes(new buffer$1.Blob(toArray.toArray(code)).size)})`);
|
|
2532
2532
|
const id = this.#normalizeId(meta.id || relativeKey);
|
|
2533
|
-
this
|
|
2533
|
+
this.metadata[id] = {
|
|
2534
2534
|
type: "normal",
|
|
2535
2535
|
timestamp: Date.now(),
|
|
2536
|
-
...this
|
|
2536
|
+
...this.metadata[id] ?? {},
|
|
2537
2537
|
...meta
|
|
2538
2538
|
};
|
|
2539
|
-
this
|
|
2540
|
-
this
|
|
2539
|
+
this.paths[id] = this.#normalizePath(relativeKey);
|
|
2540
|
+
this.ids[relativeKey] = id;
|
|
2541
2541
|
return adapter.set(relativeKey, code);
|
|
2542
2542
|
}
|
|
2543
2543
|
/**
|
|
@@ -2552,14 +2552,14 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2552
2552
|
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2553
2553
|
this.#log(types.LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes.prettyBytes(new buffer$1.Blob(toArray.toArray(data)).size)})`);
|
|
2554
2554
|
const id = this.#normalizeId(meta.id || relativeKey);
|
|
2555
|
-
this
|
|
2555
|
+
this.metadata[id] = {
|
|
2556
2556
|
type: "normal",
|
|
2557
2557
|
timestamp: Date.now(),
|
|
2558
|
-
...this
|
|
2558
|
+
...this.metadata[id] ?? {},
|
|
2559
2559
|
...meta
|
|
2560
2560
|
};
|
|
2561
|
-
this
|
|
2562
|
-
this
|
|
2561
|
+
this.paths[id] = this.#normalizePath(relativeKey);
|
|
2562
|
+
this.ids[relativeKey] = id;
|
|
2563
2563
|
return adapter.setSync(relativeKey, data);
|
|
2564
2564
|
}
|
|
2565
2565
|
/**
|
|
@@ -2798,7 +2798,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2798
2798
|
const fileMetadata = metadata.get(index);
|
|
2799
2799
|
fileMetadata.id = id;
|
|
2800
2800
|
fileMetadata.type = value.type;
|
|
2801
|
-
fileMetadata.timestamp = value.timestamp ??
|
|
2801
|
+
fileMetadata.timestamp = value.timestamp ?? Date.now();
|
|
2802
2802
|
if (value.properties) {
|
|
2803
2803
|
const props = fileMetadata._initProperties(Object.keys(value.properties).length);
|
|
2804
2804
|
Object.entries(value.properties).filter(([, val]) => isSetString.isSetString(val)).forEach(([key, val], index2) => {
|
|
@@ -5115,5 +5115,5 @@ exports.combineContexts = combineContexts;
|
|
|
5115
5115
|
exports.createLog = createLog;
|
|
5116
5116
|
exports.extendLog = extendLog;
|
|
5117
5117
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
5118
|
-
//# sourceMappingURL=chunk-
|
|
5119
|
-
//# sourceMappingURL=chunk-
|
|
5118
|
+
//# sourceMappingURL=chunk-RGBI7UX7.cjs.map
|
|
5119
|
+
//# sourceMappingURL=chunk-RGBI7UX7.cjs.map
|
|
@@ -2000,7 +2000,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2000
2000
|
return this.#normalizeId(prop) in target;
|
|
2001
2001
|
}, "has"),
|
|
2002
2002
|
ownKeys: /* @__PURE__ */ __name((target) => {
|
|
2003
|
-
return Reflect.ownKeys(target).map((key) => this.#normalizeId(key));
|
|
2003
|
+
return getUnique(Reflect.ownKeys(target).map((key) => this.#normalizeId(key)));
|
|
2004
2004
|
}, "ownKeys")
|
|
2005
2005
|
});
|
|
2006
2006
|
}
|
|
@@ -2024,7 +2024,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2024
2024
|
return this.#normalizePath(prop) in target;
|
|
2025
2025
|
}, "has"),
|
|
2026
2026
|
ownKeys: /* @__PURE__ */ __name((target) => {
|
|
2027
|
-
return Reflect.ownKeys(target).map((key) => this.#normalizePath(key));
|
|
2027
|
+
return getUnique(Reflect.ownKeys(target).map((key) => this.#normalizePath(key)));
|
|
2028
2028
|
}, "ownKeys")
|
|
2029
2029
|
});
|
|
2030
2030
|
}
|
|
@@ -2048,7 +2048,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2048
2048
|
return this.#normalizeId(prop) in target;
|
|
2049
2049
|
}, "has"),
|
|
2050
2050
|
ownKeys: /* @__PURE__ */ __name((target) => {
|
|
2051
|
-
return Reflect.ownKeys(target).map((key) => this.#normalizeId(key));
|
|
2051
|
+
return getUnique(Reflect.ownKeys(target).map((key) => this.#normalizeId(key)));
|
|
2052
2052
|
}, "ownKeys")
|
|
2053
2053
|
});
|
|
2054
2054
|
}
|
|
@@ -2101,7 +2101,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2101
2101
|
ret[metadata.id] = {
|
|
2102
2102
|
id: metadata.id,
|
|
2103
2103
|
type: metadata.type,
|
|
2104
|
-
timestamp: metadata.timestamp
|
|
2104
|
+
timestamp: metadata.timestamp ?? Date.now(),
|
|
2105
2105
|
properties: metadata._hasProperties() ? metadata.properties.values().reduce((ret2, item) => {
|
|
2106
2106
|
ret2[item.key] = item.value;
|
|
2107
2107
|
return ret2;
|
|
@@ -2501,14 +2501,14 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2501
2501
|
}
|
|
2502
2502
|
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(code)).size)})`);
|
|
2503
2503
|
const id = this.#normalizeId(meta.id || relativeKey);
|
|
2504
|
-
this
|
|
2504
|
+
this.metadata[id] = {
|
|
2505
2505
|
type: "normal",
|
|
2506
2506
|
timestamp: Date.now(),
|
|
2507
|
-
...this
|
|
2507
|
+
...this.metadata[id] ?? {},
|
|
2508
2508
|
...meta
|
|
2509
2509
|
};
|
|
2510
|
-
this
|
|
2511
|
-
this
|
|
2510
|
+
this.paths[id] = this.#normalizePath(relativeKey);
|
|
2511
|
+
this.ids[relativeKey] = id;
|
|
2512
2512
|
return adapter.set(relativeKey, code);
|
|
2513
2513
|
}
|
|
2514
2514
|
/**
|
|
@@ -2523,14 +2523,14 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2523
2523
|
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2524
2524
|
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(data)).size)})`);
|
|
2525
2525
|
const id = this.#normalizeId(meta.id || relativeKey);
|
|
2526
|
-
this
|
|
2526
|
+
this.metadata[id] = {
|
|
2527
2527
|
type: "normal",
|
|
2528
2528
|
timestamp: Date.now(),
|
|
2529
|
-
...this
|
|
2529
|
+
...this.metadata[id] ?? {},
|
|
2530
2530
|
...meta
|
|
2531
2531
|
};
|
|
2532
|
-
this
|
|
2533
|
-
this
|
|
2532
|
+
this.paths[id] = this.#normalizePath(relativeKey);
|
|
2533
|
+
this.ids[relativeKey] = id;
|
|
2534
2534
|
return adapter.setSync(relativeKey, data);
|
|
2535
2535
|
}
|
|
2536
2536
|
/**
|
|
@@ -2769,7 +2769,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2769
2769
|
const fileMetadata = metadata.get(index);
|
|
2770
2770
|
fileMetadata.id = id;
|
|
2771
2771
|
fileMetadata.type = value.type;
|
|
2772
|
-
fileMetadata.timestamp = value.timestamp ??
|
|
2772
|
+
fileMetadata.timestamp = value.timestamp ?? Date.now();
|
|
2773
2773
|
if (value.properties) {
|
|
2774
2774
|
const props = fileMetadata._initProperties(Object.keys(value.properties).length);
|
|
2775
2775
|
Object.entries(value.properties).filter(([, val]) => isSetString(val)).forEach(([key, val], index2) => {
|
|
@@ -5076,5 +5076,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
5076
5076
|
};
|
|
5077
5077
|
|
|
5078
5078
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
|
|
5079
|
-
//# sourceMappingURL=chunk-
|
|
5080
|
-
//# sourceMappingURL=chunk-
|
|
5079
|
+
//# sourceMappingURL=chunk-YL3OE2WO.js.map
|
|
5080
|
+
//# sourceMappingURL=chunk-YL3OE2WO.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 chunkNJHY3UUE_cjs = require('./chunk-NJHY3UUE.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-52KPCXIK.cjs');
|
|
8
|
+
require('./chunk-RGBI7UX7.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 chunkNJHY3UUE_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkNJHY3UUE_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkNJHY3UUE_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-QXPCHWBR.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-4JQPEMXH.js';
|
|
4
|
+
import './chunk-YL3OE2WO.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 chunk52KPCXIK_cjs = require('./chunk-52KPCXIK.cjs');
|
|
6
|
+
require('./chunk-RGBI7UX7.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(chunk52KPCXIK_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-4JQPEMXH.js';
|
|
2
|
+
import './chunk-YL3OE2WO.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 chunkRGBI7UX7_cjs = require('./chunk-RGBI7UX7.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 chunkRGBI7UX7_cjs.PowerlinesAPI.from(workspaceRoot, options);
|
|
31
31
|
}
|
|
32
32
|
chunkPK6SKIKE_cjs.__name(createPowerlines, "createPowerlines");
|
|
33
|
-
var index_default =
|
|
33
|
+
var index_default = chunkRGBI7UX7_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 chunkRGBI7UX7_cjs.FileId; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FileMetadata", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkRGBI7UX7_cjs.FileMetadata; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkRGBI7UX7_cjs.FileMetadata_KeyValuePair; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FileStorage", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkRGBI7UX7_cjs.FileStorage; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FileSystem", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkRGBI7UX7_cjs.FileSystem; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkRGBI7UX7_cjs.PowerlinesAPI; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "_capnpFileId", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkRGBI7UX7_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-YL3OE2WO.js';
|
|
13
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-YL3OE2WO.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
|
-
import { PowerlinesEnvironmentContext } from './chunk-
|
|
2
|
-
import { PowerlinesContext } from './chunk-
|
|
1
|
+
import { PowerlinesEnvironmentContext } from './chunk-NFUIYX77.js';
|
|
2
|
+
import { PowerlinesContext } from './chunk-AJ4BVNZQ.js';
|
|
3
3
|
import { GLOBAL_ENVIRONMENT, DEFAULT_ENVIRONMENT } from './chunk-BZ5L2CVR.js';
|
|
4
4
|
import { loadWorkspaceConfig } from './chunk-Q25ZPXA7.js';
|
|
5
5
|
import { __name } from './chunk-7QVYU63E.js';
|
|
@@ -253,5 +253,5 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
|
|
|
253
253
|
};
|
|
254
254
|
|
|
255
255
|
export { PowerlinesAPIContext };
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
257
|
-
//# sourceMappingURL=chunk-
|
|
256
|
+
//# sourceMappingURL=chunk-7CCOJFAV.js.map
|
|
257
|
+
//# sourceMappingURL=chunk-7CCOJFAV.js.map
|