powerlines 0.37.44 → 0.37.45
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-UQRCBAVS.js → chunk-3LYYE5EN.js} +3 -3
- package/dist/{chunk-KLVDIUY7.js → chunk-55YNSLNB.js} +3 -3
- package/dist/{chunk-3UXCOD4O.js → chunk-6RPSOJAZ.js} +3 -3
- package/dist/{chunk-KCC6ZVOH.cjs → chunk-7YZHCI6R.cjs} +39 -20
- package/dist/chunk-FPDVCAGF.cjs +12 -0
- package/dist/{chunk-5PUHX2LD.cjs → chunk-HBN3FBUW.cjs} +4 -4
- package/dist/{chunk-HEAFJGIQ.js → chunk-HOMG6EO2.js} +3 -3
- package/dist/{chunk-5DVNYVUC.cjs → chunk-LA5XXKM6.cjs} +4 -4
- package/dist/{chunk-3WIREKNH.js → chunk-QYA2KUZD.js} +3 -3
- package/dist/{chunk-V2LGBQ7I.js → chunk-RHUW2TOW.js} +39 -20
- package/dist/{chunk-WT25CKUZ.cjs → chunk-S4AJRQ5B.cjs} +5 -5
- package/dist/chunk-TMWUCFE4.cjs +12 -0
- 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/esbuild.cjs +5 -5
- package/dist/lib/build/esbuild.js +2 -2
- package/dist/lib/build/index.cjs +12 -12
- package/dist/lib/build/index.js +4 -4
- package/dist/lib/build/tsup.cjs +6 -6
- package/dist/lib/build/tsup.js +3 -3
- package/dist/lib/build/vite.cjs +5 -5
- package/dist/lib/build/vite.js +3 -3
- package/dist/lib/{chunk-7SGO34YW.js → chunk-2OW63XO3.js} +3 -3
- package/dist/lib/{chunk-7SGO34YW.js.map → chunk-2OW63XO3.js.map} +1 -1
- package/dist/lib/{chunk-MF3QRNAH.cjs → chunk-46GTIY7J.cjs} +4 -4
- package/dist/lib/{chunk-MF3QRNAH.cjs.map → chunk-46GTIY7J.cjs.map} +1 -1
- package/dist/lib/{chunk-UNN3W6R6.js → chunk-ABT2BGDN.js} +21 -14
- package/dist/lib/chunk-ABT2BGDN.js.map +1 -0
- package/dist/lib/{chunk-W335QXN6.cjs → chunk-AX3FBF6F.cjs} +4 -4
- package/dist/lib/{chunk-W335QXN6.cjs.map → chunk-AX3FBF6F.cjs.map} +1 -1
- package/dist/lib/{chunk-DLTSMAQU.js → chunk-CMAHCKYS.js} +3 -3
- package/dist/lib/{chunk-DLTSMAQU.js.map → chunk-CMAHCKYS.js.map} +1 -1
- package/dist/lib/{chunk-VQZDGNQY.cjs → chunk-EQRUYU2S.cjs} +20 -13
- package/dist/lib/chunk-EQRUYU2S.cjs.map +1 -0
- package/dist/lib/{chunk-RNTCGHUN.cjs → chunk-GKUDVJPX.cjs} +4 -4
- package/dist/lib/{chunk-RNTCGHUN.cjs.map → chunk-GKUDVJPX.cjs.map} +1 -1
- package/dist/lib/{chunk-NEINAB3V.js → chunk-GQXUYZDF.js} +4 -4
- package/dist/lib/{chunk-NEINAB3V.js.map → chunk-GQXUYZDF.js.map} +1 -1
- package/dist/lib/{chunk-75ZEC2OW.js → chunk-HMFL5QT6.js} +3 -3
- package/dist/lib/{chunk-75ZEC2OW.js.map → chunk-HMFL5QT6.js.map} +1 -1
- package/dist/lib/{chunk-HVVCPRH4.js → chunk-IQXV4B5Z.js} +3 -3
- package/dist/lib/{chunk-HVVCPRH4.js.map → chunk-IQXV4B5Z.js.map} +1 -1
- package/dist/lib/{chunk-AZRQDCQ6.js → chunk-IYGMYKFU.js} +6 -6
- package/dist/lib/chunk-IYGMYKFU.js.map +1 -0
- package/dist/lib/{chunk-ASOA4TMY.js → chunk-KQKA4HWJ.js} +4 -4
- package/dist/lib/{chunk-ASOA4TMY.js.map → chunk-KQKA4HWJ.js.map} +1 -1
- package/dist/lib/{chunk-3DXTB6HW.cjs → chunk-LCVRVKWP.cjs} +4 -4
- package/dist/lib/{chunk-3DXTB6HW.cjs.map → chunk-LCVRVKWP.cjs.map} +1 -1
- package/dist/lib/{chunk-V5QEG5KI.js → chunk-MGJPUTU6.js} +21 -7
- package/dist/lib/chunk-MGJPUTU6.js.map +1 -0
- package/dist/lib/{chunk-ENCMVOF2.cjs → chunk-MWW5SYZW.cjs} +4 -4
- package/dist/lib/{chunk-ENCMVOF2.cjs.map → chunk-MWW5SYZW.cjs.map} +1 -1
- package/dist/lib/{chunk-R6FS4GTA.cjs → chunk-NYKVJUON.cjs} +33 -19
- package/dist/lib/chunk-NYKVJUON.cjs.map +1 -0
- package/dist/lib/{chunk-YQKIPMK7.js → chunk-R7AYD5WD.js} +3 -3
- package/dist/lib/{chunk-YQKIPMK7.js.map → chunk-R7AYD5WD.js.map} +1 -1
- package/dist/lib/{chunk-PI3PHTRX.cjs → chunk-RDH2EJ5I.cjs} +6 -6
- package/dist/lib/{chunk-PI3PHTRX.cjs.map → chunk-RDH2EJ5I.cjs.map} +1 -1
- package/dist/lib/{chunk-DCR5SAMV.cjs → chunk-RHPNB53E.cjs} +8 -8
- package/dist/lib/{chunk-DCR5SAMV.cjs.map → chunk-RHPNB53E.cjs.map} +1 -1
- package/dist/lib/{chunk-SVVX5O6H.js → chunk-VL5H4HKR.js} +3 -3
- package/dist/lib/{chunk-SVVX5O6H.js.map → chunk-VL5H4HKR.js.map} +1 -1
- package/dist/lib/{chunk-WDLQTF7H.cjs → chunk-YGFZHAZB.cjs} +19 -19
- package/dist/lib/{chunk-WDLQTF7H.cjs.map → chunk-YGFZHAZB.cjs.map} +1 -1
- package/dist/lib/{chunk-U2U3JFI4.cjs → chunk-ZQG74VOL.cjs} +6 -6
- package/dist/lib/chunk-ZQG74VOL.cjs.map +1 -0
- package/dist/lib/contexts/api-context.cjs +6 -6
- package/dist/lib/contexts/api-context.js +5 -5
- package/dist/lib/contexts/context.cjs +4 -4
- package/dist/lib/contexts/context.js +3 -3
- package/dist/lib/contexts/environment-context.cjs +5 -5
- package/dist/lib/contexts/environment-context.js +4 -4
- package/dist/lib/contexts/index.cjs +8 -8
- package/dist/lib/contexts/index.js +5 -5
- package/dist/lib/entry.cjs +10 -10
- package/dist/lib/entry.js +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.d.cts +2 -2
- package/dist/lib/fs/vfs.d.ts +2 -2
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/index.cjs +25 -25
- package/dist/lib/index.js +9 -9
- package/dist/lib/unplugin/factory.cjs +7 -7
- package/dist/lib/unplugin/factory.js +6 -6
- package/dist/lib/unplugin/index.cjs +7 -7
- package/dist/lib/unplugin/index.js +6 -6
- package/dist/lib/utilities/bundle.cjs +4 -4
- package/dist/lib/utilities/bundle.js +3 -3
- package/dist/lib/utilities/index.cjs +6 -6
- package/dist/lib/utilities/index.js +4 -4
- package/dist/lib/utilities/resolve.cjs +5 -5
- package/dist/lib/utilities/resolve.js +4 -4
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.js +4 -4
- 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-PHCQPLBN.cjs +0 -12
- package/dist/chunk-Z7MWRPFH.cjs +0 -12
- package/dist/lib/chunk-AZRQDCQ6.js.map +0 -1
- package/dist/lib/chunk-R6FS4GTA.cjs.map +0 -1
- package/dist/lib/chunk-U2U3JFI4.cjs.map +0 -1
- package/dist/lib/chunk-UNN3W6R6.js.map +0 -1
- package/dist/lib/chunk-V5QEG5KI.js.map +0 -1
- package/dist/lib/chunk-VQZDGNQY.cjs.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7YZHCI6R_cjs = require('./chunk-7YZHCI6R.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 chunk7YZHCI6R_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 chunkHBN3FBUW_cjs = require('./chunk-HBN3FBUW.cjs');
|
|
6
6
|
require('./chunk-VBGDN56Q.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-S4AJRQ5B.cjs');
|
|
8
|
+
require('./chunk-7YZHCI6R.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
|
+
chunkHBN3FBUW_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-6RPSOJAZ.js';
|
|
2
2
|
import './chunk-FJHS7DAU.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-3LYYE5EN.js';
|
|
4
|
+
import './chunk-RHUW2TOW.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-RHUW2TOW.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-3LYYE5EN.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-3LYYE5EN.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-3LYYE5EN.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-55YNSLNB.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-55YNSLNB.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-FJHS7DAU.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-3LYYE5EN.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-6RPSOJAZ.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-6RPSOJAZ.js.map
|
|
@@ -11,6 +11,7 @@ var install = require('@stryke/fs/install');
|
|
|
11
11
|
var listFiles = require('@stryke/fs/list-files');
|
|
12
12
|
var packageFns = require('@stryke/fs/package-fns');
|
|
13
13
|
var resolve = require('@stryke/fs/resolve');
|
|
14
|
+
var omit = require('@stryke/helpers/omit');
|
|
14
15
|
var append = require('@stryke/path/append');
|
|
15
16
|
var joinPaths = require('@stryke/path/join-paths');
|
|
16
17
|
var replace = require('@stryke/path/replace');
|
|
@@ -47,7 +48,6 @@ var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
|
47
48
|
var hashFiles = require('@stryke/hash/hash-files');
|
|
48
49
|
var murmurhash = require('@stryke/hash/murmurhash');
|
|
49
50
|
var getUnique = require('@stryke/helpers/get-unique');
|
|
50
|
-
var omit = require('@stryke/helpers/omit');
|
|
51
51
|
var fetch = require('@stryke/http/fetch');
|
|
52
52
|
var join = require('@stryke/path/join');
|
|
53
53
|
var isNull = require('@stryke/type-checks/is-null');
|
|
@@ -61,6 +61,7 @@ var isUndefined = require('@stryke/type-checks/is-undefined');
|
|
|
61
61
|
var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
|
|
62
62
|
var $ = require('@stryke/capnp');
|
|
63
63
|
var buffer = require('@stryke/fs/buffer');
|
|
64
|
+
var correctPath = require('@stryke/path/correct-path');
|
|
64
65
|
var isType = require('@stryke/path/is-type');
|
|
65
66
|
var isRegexp = require('@stryke/type-checks/is-regexp');
|
|
66
67
|
var buffer$1 = require('buffer');
|
|
@@ -70,7 +71,6 @@ var colors = require('@storm-software/config-tools/utilities/colors');
|
|
|
70
71
|
var noop = require('@stryke/helpers/noop');
|
|
71
72
|
var kebabCase = require('@stryke/string-format/kebab-case');
|
|
72
73
|
var prettier = require('prettier');
|
|
73
|
-
var correctPath = require('@stryke/path/correct-path');
|
|
74
74
|
var slash = require('@stryke/path/slash');
|
|
75
75
|
var isFile = require('@stryke/fs/is-file');
|
|
76
76
|
var readFile = require('@stryke/fs/read-file');
|
|
@@ -109,7 +109,7 @@ var $__namespace = /*#__PURE__*/_interopNamespace($);
|
|
|
109
109
|
|
|
110
110
|
// package.json
|
|
111
111
|
var name = "powerlines";
|
|
112
|
-
var version = "0.37.
|
|
112
|
+
var version = "0.37.44";
|
|
113
113
|
var package_default = {
|
|
114
114
|
version};
|
|
115
115
|
function resolveModulePath(nodePath, state) {
|
|
@@ -976,8 +976,8 @@ function resolveEntriesSync(context, typeDefinitions) {
|
|
|
976
976
|
name: typeDefinition.name
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
|
-
return context.fs.
|
|
980
|
-
file,
|
|
979
|
+
return context.fs.globSync(append.appendPath(filePath, context.workspaceConfig.workspaceRoot)).map((file) => resolveEntry(context, {
|
|
980
|
+
file: replace.replacePath(file, context.config.projectRoot),
|
|
981
981
|
name: typeDefinition.name
|
|
982
982
|
}));
|
|
983
983
|
}).flat().filter(Boolean);
|
|
@@ -1880,7 +1880,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1880
1880
|
*/
|
|
1881
1881
|
#getStorages(base = "", includeParent = false) {
|
|
1882
1882
|
const baseKey = this.resolveSync(base) || base;
|
|
1883
|
-
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath.isParentPath(key, baseKey) || includeParent && isParentPath.isParentPath(baseKey, key) || baseKey.includes("*") &&
|
|
1883
|
+
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath.isParentPath(key, baseKey) || includeParent && isParentPath.isParentPath(baseKey, key) || baseKey.includes("*") && (isParentPath.isParentPath(correctPath.stripStars(baseKey), key) || this.#buildRegex(replace.replaceExtension(baseKey)).test(key))).map((key) => ({
|
|
1884
1884
|
relativeBase: baseKey.length > key.length ? baseKey.slice(key.length) : void 0,
|
|
1885
1885
|
base: key,
|
|
1886
1886
|
adapter: this.#storage[key]
|
|
@@ -2214,7 +2214,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2214
2214
|
* @returns An array of file names in the specified path.
|
|
2215
2215
|
*/
|
|
2216
2216
|
listSync(path) {
|
|
2217
|
-
|
|
2217
|
+
let resolvedPath = path;
|
|
2218
|
+
if (resolvedPath.includes("*")) {
|
|
2219
|
+
this.#log(types.LogLevelLabel.WARN, `Invoking "listSync" with a glob pattern is not supported. It is likely you meant to use "globSync". Path: ${path}`);
|
|
2220
|
+
resolvedPath = correctPath.stripStars(resolvedPath);
|
|
2221
|
+
}
|
|
2222
|
+
return getUnique.getUnique(this.#getStorages(resolvedPath, true).map((storage) => storage.adapter.listSync(storage.relativeBase ? storage.base ? append.appendPath(storage.relativeBase, storage.base) : storage.relativeBase : storage.base)).flat().filter(Boolean));
|
|
2218
2223
|
}
|
|
2219
2224
|
/**
|
|
2220
2225
|
* Lists files in a given path.
|
|
@@ -2223,7 +2228,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2223
2228
|
* @returns An array of file names in the specified path.
|
|
2224
2229
|
*/
|
|
2225
2230
|
async list(path) {
|
|
2226
|
-
|
|
2231
|
+
let resolvedPath = path;
|
|
2232
|
+
if (resolvedPath.includes("*")) {
|
|
2233
|
+
this.#log(types.LogLevelLabel.WARN, `Invoking "list" with a glob pattern is not supported. It is likely you meant to use "glob". Path: ${path}`);
|
|
2234
|
+
resolvedPath = correctPath.stripStars(resolvedPath);
|
|
2235
|
+
}
|
|
2236
|
+
return getUnique.getUnique((await Promise.all(this.#getStorages(resolvedPath, true).map(async (storage) => storage.adapter.list(storage.relativeBase ? storage.base ? append.appendPath(storage.relativeBase, storage.base) : storage.relativeBase : storage.base)))).flat().filter(Boolean));
|
|
2227
2237
|
}
|
|
2228
2238
|
/**
|
|
2229
2239
|
* Removes a file in the virtual file system (VFS).
|
|
@@ -2288,10 +2298,8 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2288
2298
|
}
|
|
2289
2299
|
continue;
|
|
2290
2300
|
}
|
|
2291
|
-
const absPattern = isType.isAbsolutePath(normalized) ? normalized : this.#normalizePath(
|
|
2292
|
-
|
|
2293
|
-
const baseDir = firstGlobIdx === -1 ? filePathFns.findFilePath(absPattern) : absPattern.slice(0, Math.max(0, absPattern.lastIndexOf("/", firstGlobIdx)));
|
|
2294
|
-
await Promise.all((await this.list(baseDir && isType.isAbsolutePath(baseDir) ? baseDir : this.#context.workspaceConfig.workspaceRoot)).map(async (file) => {
|
|
2301
|
+
const absPattern = isType.isAbsolutePath(normalized) ? normalized : this.#normalizePath(append.appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2302
|
+
await Promise.all((await this.list(correctPath.stripStars(absPattern))).map(async (file) => {
|
|
2295
2303
|
if (this.#buildRegex(absPattern).test(file)) {
|
|
2296
2304
|
const resolved = this.resolveSync(file);
|
|
2297
2305
|
if (resolved && !results.includes(resolved)) {
|
|
@@ -2323,10 +2331,8 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2323
2331
|
}
|
|
2324
2332
|
continue;
|
|
2325
2333
|
}
|
|
2326
|
-
const absPattern = isType.isAbsolutePath(normalized) ? normalized : this.#normalizePath(
|
|
2327
|
-
const
|
|
2328
|
-
const baseDir = firstGlobIdx === -1 ? filePathFns.findFilePath(absPattern) : absPattern.slice(0, Math.max(0, absPattern.lastIndexOf("/", firstGlobIdx)));
|
|
2329
|
-
const files = this.listSync(baseDir && isType.isAbsolutePath(baseDir) ? baseDir : this.#context.workspaceConfig.workspaceRoot);
|
|
2334
|
+
const absPattern = isType.isAbsolutePath(normalized) ? normalized : this.#normalizePath(append.appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2335
|
+
const files = this.listSync(correctPath.stripStars(absPattern));
|
|
2330
2336
|
for (const file of files) {
|
|
2331
2337
|
if (this.#buildRegex(absPattern).test(file)) {
|
|
2332
2338
|
const resolved = this.resolveSync(file);
|
|
@@ -4470,8 +4476,12 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4470
4476
|
environment: context,
|
|
4471
4477
|
order: "normal"
|
|
4472
4478
|
});
|
|
4473
|
-
|
|
4479
|
+
if (context.entry.length > 0) {
|
|
4480
|
+
context.debug(`The configuration provided ${toArray.toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
|
|
4474
4481
|
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}`);
|
|
4482
|
+
} else {
|
|
4483
|
+
context.warn(`No entry files were found for the ${context.config.title} project. Please ensure this is correct. Powerlines plugins generally require at least one entry point to function properly.`);
|
|
4484
|
+
}
|
|
4475
4485
|
await resolveTsconfig(context);
|
|
4476
4486
|
await installDependencies(context);
|
|
4477
4487
|
await this.callHook("configResolved", {
|
|
@@ -4480,7 +4490,16 @@ ${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.out
|
|
|
4480
4490
|
});
|
|
4481
4491
|
context.trace(`Powerlines configuration has been resolved:
|
|
4482
4492
|
|
|
4483
|
-
${console.formatLogMessage(
|
|
4493
|
+
${console.formatLogMessage({
|
|
4494
|
+
...context.config,
|
|
4495
|
+
userConfig: isSetObject.isSetObject(context.config.userConfig) ? omit.omit(context.config.userConfig, [
|
|
4496
|
+
"plugins"
|
|
4497
|
+
]) : void 0,
|
|
4498
|
+
inlineConfig: isSetObject.isSetObject(context.config.inlineConfig) ? omit.omit(context.config.inlineConfig, [
|
|
4499
|
+
"plugins"
|
|
4500
|
+
]) : void 0,
|
|
4501
|
+
plugins: context.plugins.map((plugin) => plugin.plugin.name)
|
|
4502
|
+
})}`);
|
|
4484
4503
|
if (!context.fs.existsSync(context.cachePath)) {
|
|
4485
4504
|
await helpers.createDirectory(context.cachePath);
|
|
4486
4505
|
}
|
|
@@ -5081,5 +5100,5 @@ exports.extendLog = extendLog;
|
|
|
5081
5100
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
5082
5101
|
exports.name = name;
|
|
5083
5102
|
exports.version = version;
|
|
5084
|
-
//# sourceMappingURL=chunk-
|
|
5085
|
-
//# sourceMappingURL=chunk-
|
|
5103
|
+
//# sourceMappingURL=chunk-7YZHCI6R.cjs.map
|
|
5104
|
+
//# sourceMappingURL=chunk-7YZHCI6R.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkS4AJRQ5B_cjs = require('./chunk-S4AJRQ5B.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkS4AJRQ5B_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-FPDVCAGF.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-FPDVCAGF.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkVBGDN56Q_cjs = require('./chunk-VBGDN56Q.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkS4AJRQ5B_cjs = require('./chunk-S4AJRQ5B.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(chunkS4AJRQ5B_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-HBN3FBUW.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-HBN3FBUW.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-3LYYE5EN.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-HOMG6EO2.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-HOMG6EO2.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkVBGDN56Q_cjs = require('./chunk-VBGDN56Q.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkS4AJRQ5B_cjs = require('./chunk-S4AJRQ5B.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(chunkS4AJRQ5B_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-LA5XXKM6.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-LA5XXKM6.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-FJHS7DAU.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-3LYYE5EN.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-QYA2KUZD.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-QYA2KUZD.js.map
|
|
@@ -9,6 +9,7 @@ import { install } from '@stryke/fs/install';
|
|
|
9
9
|
import { listFilesSync, listFiles } from '@stryke/fs/list-files';
|
|
10
10
|
import { isPackageExists, isPackageListed, doesPackageMatch, getPackageListing } from '@stryke/fs/package-fns';
|
|
11
11
|
import { getResolutionCombinations, resolve as resolve$1, resolveSync, resolvePackage } from '@stryke/fs/resolve';
|
|
12
|
+
import { omit } from '@stryke/helpers/omit';
|
|
12
13
|
import { appendPath } from '@stryke/path/append';
|
|
13
14
|
import { joinPaths as joinPaths$1 } from '@stryke/path/join-paths';
|
|
14
15
|
import { replacePath, replaceExtension } from '@stryke/path/replace';
|
|
@@ -45,7 +46,6 @@ import { relativeToWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
|
45
46
|
import { hashDirectory } from '@stryke/hash/hash-files';
|
|
46
47
|
import { murmurhash } from '@stryke/hash/murmurhash';
|
|
47
48
|
import { getUnique, getUniqueBy } from '@stryke/helpers/get-unique';
|
|
48
|
-
import { omit } from '@stryke/helpers/omit';
|
|
49
49
|
import { fetchRequest } from '@stryke/http/fetch';
|
|
50
50
|
import { joinPaths } from '@stryke/path/join';
|
|
51
51
|
import { isNull } from '@stryke/type-checks/is-null';
|
|
@@ -59,6 +59,7 @@ import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
|
59
59
|
import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
60
60
|
import * as $ from '@stryke/capnp';
|
|
61
61
|
import { readFileBuffer, readFileBufferSync, writeFileBuffer } from '@stryke/fs/buffer';
|
|
62
|
+
import { correctPath, stripStars } from '@stryke/path/correct-path';
|
|
62
63
|
import { isAbsolutePath } from '@stryke/path/is-type';
|
|
63
64
|
import { isRegExp } from '@stryke/type-checks/is-regexp';
|
|
64
65
|
import { Blob as Blob$1 } from 'node:buffer';
|
|
@@ -68,7 +69,6 @@ import { getColor } from '@storm-software/config-tools/utilities/colors';
|
|
|
68
69
|
import { noop } from '@stryke/helpers/noop';
|
|
69
70
|
import { kebabCase } from '@stryke/string-format/kebab-case';
|
|
70
71
|
import { resolveConfig, format as format$1 } from 'prettier';
|
|
71
|
-
import { correctPath } from '@stryke/path/correct-path';
|
|
72
72
|
import { slash } from '@stryke/path/slash';
|
|
73
73
|
import { isDirectory, isFile } from '@stryke/fs/is-file';
|
|
74
74
|
import { readFileSync, readFile } from '@stryke/fs/read-file';
|
|
@@ -80,7 +80,7 @@ import '@stryke/fs/remove-file';
|
|
|
80
80
|
|
|
81
81
|
// package.json
|
|
82
82
|
var name = "powerlines";
|
|
83
|
-
var version = "0.37.
|
|
83
|
+
var version = "0.37.44";
|
|
84
84
|
var package_default = {
|
|
85
85
|
version};
|
|
86
86
|
function resolveModulePath(nodePath, state) {
|
|
@@ -947,8 +947,8 @@ function resolveEntriesSync(context, typeDefinitions) {
|
|
|
947
947
|
name: typeDefinition.name
|
|
948
948
|
});
|
|
949
949
|
}
|
|
950
|
-
return context.fs.
|
|
951
|
-
file,
|
|
950
|
+
return context.fs.globSync(appendPath(filePath, context.workspaceConfig.workspaceRoot)).map((file) => resolveEntry(context, {
|
|
951
|
+
file: replacePath(file, context.config.projectRoot),
|
|
952
952
|
name: typeDefinition.name
|
|
953
953
|
}));
|
|
954
954
|
}).flat().filter(Boolean);
|
|
@@ -1851,7 +1851,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1851
1851
|
*/
|
|
1852
1852
|
#getStorages(base = "", includeParent = false) {
|
|
1853
1853
|
const baseKey = this.resolveSync(base) || base;
|
|
1854
|
-
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath(key, baseKey) || includeParent && isParentPath(baseKey, key) || baseKey.includes("*") &&
|
|
1854
|
+
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath(key, baseKey) || includeParent && isParentPath(baseKey, key) || baseKey.includes("*") && (isParentPath(stripStars(baseKey), key) || this.#buildRegex(replaceExtension(baseKey)).test(key))).map((key) => ({
|
|
1855
1855
|
relativeBase: baseKey.length > key.length ? baseKey.slice(key.length) : void 0,
|
|
1856
1856
|
base: key,
|
|
1857
1857
|
adapter: this.#storage[key]
|
|
@@ -2185,7 +2185,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2185
2185
|
* @returns An array of file names in the specified path.
|
|
2186
2186
|
*/
|
|
2187
2187
|
listSync(path) {
|
|
2188
|
-
|
|
2188
|
+
let resolvedPath = path;
|
|
2189
|
+
if (resolvedPath.includes("*")) {
|
|
2190
|
+
this.#log(LogLevelLabel.WARN, `Invoking "listSync" with a glob pattern is not supported. It is likely you meant to use "globSync". Path: ${path}`);
|
|
2191
|
+
resolvedPath = stripStars(resolvedPath);
|
|
2192
|
+
}
|
|
2193
|
+
return getUnique(this.#getStorages(resolvedPath, true).map((storage) => storage.adapter.listSync(storage.relativeBase ? storage.base ? appendPath(storage.relativeBase, storage.base) : storage.relativeBase : storage.base)).flat().filter(Boolean));
|
|
2189
2194
|
}
|
|
2190
2195
|
/**
|
|
2191
2196
|
* Lists files in a given path.
|
|
@@ -2194,7 +2199,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2194
2199
|
* @returns An array of file names in the specified path.
|
|
2195
2200
|
*/
|
|
2196
2201
|
async list(path) {
|
|
2197
|
-
|
|
2202
|
+
let resolvedPath = path;
|
|
2203
|
+
if (resolvedPath.includes("*")) {
|
|
2204
|
+
this.#log(LogLevelLabel.WARN, `Invoking "list" with a glob pattern is not supported. It is likely you meant to use "glob". Path: ${path}`);
|
|
2205
|
+
resolvedPath = stripStars(resolvedPath);
|
|
2206
|
+
}
|
|
2207
|
+
return getUnique((await Promise.all(this.#getStorages(resolvedPath, true).map(async (storage) => storage.adapter.list(storage.relativeBase ? storage.base ? appendPath(storage.relativeBase, storage.base) : storage.relativeBase : storage.base)))).flat().filter(Boolean));
|
|
2198
2208
|
}
|
|
2199
2209
|
/**
|
|
2200
2210
|
* Removes a file in the virtual file system (VFS).
|
|
@@ -2259,10 +2269,8 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2259
2269
|
}
|
|
2260
2270
|
continue;
|
|
2261
2271
|
}
|
|
2262
|
-
const absPattern = isAbsolutePath(normalized) ? normalized : this.#normalizePath(
|
|
2263
|
-
|
|
2264
|
-
const baseDir = firstGlobIdx === -1 ? findFilePath(absPattern) : absPattern.slice(0, Math.max(0, absPattern.lastIndexOf("/", firstGlobIdx)));
|
|
2265
|
-
await Promise.all((await this.list(baseDir && isAbsolutePath(baseDir) ? baseDir : this.#context.workspaceConfig.workspaceRoot)).map(async (file) => {
|
|
2272
|
+
const absPattern = isAbsolutePath(normalized) ? normalized : this.#normalizePath(appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2273
|
+
await Promise.all((await this.list(stripStars(absPattern))).map(async (file) => {
|
|
2266
2274
|
if (this.#buildRegex(absPattern).test(file)) {
|
|
2267
2275
|
const resolved = this.resolveSync(file);
|
|
2268
2276
|
if (resolved && !results.includes(resolved)) {
|
|
@@ -2294,10 +2302,8 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2294
2302
|
}
|
|
2295
2303
|
continue;
|
|
2296
2304
|
}
|
|
2297
|
-
const absPattern = isAbsolutePath(normalized) ? normalized : this.#normalizePath(
|
|
2298
|
-
const
|
|
2299
|
-
const baseDir = firstGlobIdx === -1 ? findFilePath(absPattern) : absPattern.slice(0, Math.max(0, absPattern.lastIndexOf("/", firstGlobIdx)));
|
|
2300
|
-
const files = this.listSync(baseDir && isAbsolutePath(baseDir) ? baseDir : this.#context.workspaceConfig.workspaceRoot);
|
|
2305
|
+
const absPattern = isAbsolutePath(normalized) ? normalized : this.#normalizePath(appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2306
|
+
const files = this.listSync(stripStars(absPattern));
|
|
2301
2307
|
for (const file of files) {
|
|
2302
2308
|
if (this.#buildRegex(absPattern).test(file)) {
|
|
2303
2309
|
const resolved = this.resolveSync(file);
|
|
@@ -4441,8 +4447,12 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4441
4447
|
environment: context,
|
|
4442
4448
|
order: "normal"
|
|
4443
4449
|
});
|
|
4444
|
-
|
|
4450
|
+
if (context.entry.length > 0) {
|
|
4451
|
+
context.debug(`The configuration provided ${toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
|
|
4445
4452
|
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}`);
|
|
4453
|
+
} else {
|
|
4454
|
+
context.warn(`No entry files were found for the ${context.config.title} project. Please ensure this is correct. Powerlines plugins generally require at least one entry point to function properly.`);
|
|
4455
|
+
}
|
|
4446
4456
|
await resolveTsconfig(context);
|
|
4447
4457
|
await installDependencies(context);
|
|
4448
4458
|
await this.callHook("configResolved", {
|
|
@@ -4451,7 +4461,16 @@ ${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.out
|
|
|
4451
4461
|
});
|
|
4452
4462
|
context.trace(`Powerlines configuration has been resolved:
|
|
4453
4463
|
|
|
4454
|
-
${formatLogMessage(
|
|
4464
|
+
${formatLogMessage({
|
|
4465
|
+
...context.config,
|
|
4466
|
+
userConfig: isSetObject(context.config.userConfig) ? omit(context.config.userConfig, [
|
|
4467
|
+
"plugins"
|
|
4468
|
+
]) : void 0,
|
|
4469
|
+
inlineConfig: isSetObject(context.config.inlineConfig) ? omit(context.config.inlineConfig, [
|
|
4470
|
+
"plugins"
|
|
4471
|
+
]) : void 0,
|
|
4472
|
+
plugins: context.plugins.map((plugin) => plugin.plugin.name)
|
|
4473
|
+
})}`);
|
|
4455
4474
|
if (!context.fs.existsSync(context.cachePath)) {
|
|
4456
4475
|
await createDirectory(context.cachePath);
|
|
4457
4476
|
}
|
|
@@ -5040,5 +5059,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
5040
5059
|
};
|
|
5041
5060
|
|
|
5042
5061
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant, name, version };
|
|
5043
|
-
//# sourceMappingURL=chunk-
|
|
5044
|
-
//# sourceMappingURL=chunk-
|
|
5062
|
+
//# sourceMappingURL=chunk-RHUW2TOW.js.map
|
|
5063
|
+
//# sourceMappingURL=chunk-RHUW2TOW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7YZHCI6R_cjs = require('./chunk-7YZHCI6R.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 = chunk7YZHCI6R_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 chunk7YZHCI6R_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-S4AJRQ5B.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-S4AJRQ5B.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkS4AJRQ5B_cjs = require('./chunk-S4AJRQ5B.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkS4AJRQ5B_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-TMWUCFE4.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-TMWUCFE4.cjs.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 chunkLA5XXKM6_cjs = require('./chunk-LA5XXKM6.cjs');
|
|
6
6
|
require('./chunk-VBGDN56Q.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-S4AJRQ5B.cjs');
|
|
8
|
+
require('./chunk-7YZHCI6R.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 chunkLA5XXKM6_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkLA5XXKM6_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkLA5XXKM6_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-QYA2KUZD.js';
|
|
2
2
|
import './chunk-FJHS7DAU.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-3LYYE5EN.js';
|
|
4
|
+
import './chunk-RHUW2TOW.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 chunkS4AJRQ5B_cjs = require('./chunk-S4AJRQ5B.cjs');
|
|
6
|
+
require('./chunk-7YZHCI6R.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(chunkS4AJRQ5B_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-3LYYE5EN.js';
|
|
2
|
+
import './chunk-RHUW2TOW.js';
|
|
3
3
|
import './chunk-PQXP7XQK.js';
|
|
4
4
|
import './chunk-NITQ5IYP.js';
|
|
5
5
|
import './chunk-2MYPFASJ.js';
|