powerlines 0.23.7 → 0.23.10
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-DxPACGY4.d.ts → api-5H3zEedD.d.ts} +1 -1
- package/dist/{api--9pVSIbm.d.cts → api-B77aqxGC.d.cts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +8 -6
- package/dist/astro.d.ts +8 -6
- package/dist/astro.js +3 -3
- package/dist/{chunk-CSSV6ES3.js → chunk-3W5CN3M3.js} +1 -1
- package/dist/{chunk-V732KPW6.cjs → chunk-4EIGDACJ.cjs} +34 -20
- package/dist/{chunk-32NXGMLQ.cjs → chunk-4TBQYHPZ.cjs} +3 -3
- package/dist/{chunk-QXTSQTX5.js → chunk-7G7OFGGH.js} +1 -1
- package/dist/{chunk-NVNBOUXL.js → chunk-MUNYXQYT.js} +34 -20
- package/dist/{chunk-ZUQDWAUO.cjs → chunk-PR3JGGAL.cjs} +2 -2
- package/dist/{chunk-I7G24RUE.cjs → chunk-SNHUEYEP.cjs} +2 -2
- package/dist/{chunk-6CYDJ53Z.js → chunk-SS5AXCGJ.js} +1 -1
- package/dist/{chunk-4TAIQVJG.cjs → chunk-WBC2XOMT.cjs} +2 -2
- package/dist/{chunk-RQAKTG6M.js → chunk-ZIWN73GA.js} +1 -1
- package/dist/config.d.cts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +5 -4
- package/dist/esbuild.d.ts +5 -4
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +9 -7
- package/dist/farm.d.ts +9 -7
- package/dist/farm.js +2 -2
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/lib/{api-Bwwdt0YR.d.cts → api-Cm51oVbC.d.cts} +1 -1
- package/dist/lib/{api-BJ7F7DmT.d.ts → api-mja4jirh.d.ts} +1 -1
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/index.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +3 -3
- package/dist/lib/build/unbuild.d.ts +3 -3
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/{chunk-7XHBIYIN.cjs → chunk-7VJ42H2I.cjs} +0 -16
- package/dist/lib/{chunk-YH5GOJS3.js → chunk-FQLZZYYO.js} +1 -16
- package/dist/lib/{chunk-SZH2DJOG.js → chunk-HNOAMIRO.js} +3 -3
- package/dist/lib/{chunk-EJTGOYSI.cjs → chunk-I6TJUFA6.cjs} +10 -10
- package/dist/lib/chunk-K3NBD5LL.cjs +75 -0
- package/dist/lib/{chunk-EN4XP4D5.js → chunk-OJ5XFCZN.js} +1 -1
- package/dist/lib/{chunk-NVUXGMU5.cjs → chunk-QABAD5RE.cjs} +32 -9
- package/dist/lib/{chunk-CCGA6ZHZ.cjs → chunk-RBSNQFLF.cjs} +16 -16
- package/dist/lib/{chunk-NDKPSA3I.js → chunk-VDPCG3RR.js} +3 -3
- package/dist/lib/{chunk-27RAXIPT.cjs → chunk-VLOUSKRX.cjs} +6 -6
- package/dist/lib/chunk-XBM7FHNK.js +68 -0
- package/dist/lib/{chunk-764HUXP3.js → chunk-XG4CC73V.js} +27 -4
- package/dist/lib/{config-CFZYRPQj.d.ts → config-7Q2dBjJE.d.ts} +6 -0
- package/dist/lib/{config-CxONCKEx.d.cts → config-BnJpgcGr.d.cts} +6 -0
- package/dist/lib/config-file.cjs +3 -3
- package/dist/lib/config-file.d.cts +3 -2
- package/dist/lib/config-file.d.ts +3 -2
- package/dist/lib/config-file.js +1 -1
- package/dist/lib/contexts/api-context.cjs +6 -6
- package/dist/lib/contexts/api-context.d.cts +3 -3
- package/dist/lib/contexts/api-context.d.ts +3 -3
- package/dist/lib/contexts/api-context.js +5 -5
- package/dist/lib/contexts/context.cjs +4 -4
- package/dist/lib/contexts/context.d.cts +10 -3
- package/dist/lib/contexts/context.d.ts +10 -3
- package/dist/lib/contexts/context.js +3 -3
- package/dist/lib/contexts/environment-context.cjs +5 -5
- package/dist/lib/contexts/environment-context.d.cts +3 -3
- package/dist/lib/contexts/environment-context.d.ts +3 -3
- package/dist/lib/contexts/environment-context.js +4 -4
- package/dist/lib/contexts/index.cjs +8 -8
- package/dist/lib/contexts/index.d.cts +3 -3
- package/dist/lib/contexts/index.d.ts +3 -3
- package/dist/lib/contexts/index.js +5 -5
- package/dist/lib/contexts/plugin-context.d.cts +3 -3
- package/dist/lib/contexts/plugin-context.d.ts +3 -3
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/index.cjs +19 -23
- package/dist/lib/index.d.cts +5 -5
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +6 -6
- package/dist/lib/{internal-kEzuoIrl.d.ts → internal-BEygquYh.d.ts} +2 -2
- package/dist/lib/{internal-9D9Up5pT.d.cts → internal-BeR8fOB1.d.cts} +2 -2
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +1 -1
- package/dist/lib/typescript/compiler-host.d.ts +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/program.d.cts +1 -1
- package/dist/lib/typescript/program.d.ts +1 -1
- package/dist/lib/typescript/ts-morph.d.cts +1 -1
- package/dist/lib/typescript/ts-morph.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +7 -7
- package/dist/lib/unplugin/factory.d.cts +3 -3
- package/dist/lib/unplugin/factory.d.ts +3 -3
- package/dist/lib/unplugin/factory.js +6 -6
- package/dist/lib/unplugin/helpers.d.cts +1 -1
- package/dist/lib/unplugin/helpers.d.ts +1 -1
- package/dist/lib/unplugin/index.cjs +7 -7
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.ts +3 -3
- package/dist/lib/unplugin/index.js +6 -6
- package/dist/lib/unplugin/plugin.d.cts +3 -3
- package/dist/lib/unplugin/plugin.d.ts +3 -3
- package/dist/lib/unplugin/resolve-id.d.cts +1 -1
- package/dist/lib/unplugin/resolve-id.d.ts +1 -1
- package/dist/lib/{unplugin-tmNrQvUk.d.ts → unplugin-CbbNDduM.d.ts} +2 -2
- package/dist/lib/{unplugin-BdLs3dwd.d.cts → unplugin-ppAOzR__.d.cts} +2 -2
- package/dist/lib/utilities/bundle.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/index.cjs +7 -11
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.ts +2 -2
- package/dist/lib/utilities/index.js +1 -1
- package/dist/lib/utilities/meta.cjs +7 -11
- package/dist/lib/utilities/meta.d.cts +2 -3
- package/dist/lib/utilities/meta.d.ts +2 -3
- package/dist/lib/utilities/meta.js +1 -1
- package/dist/lib/utilities/resolve-path.d.cts +1 -1
- package/dist/lib/utilities/resolve-path.d.ts +1 -1
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.d.cts +12 -6
- package/dist/nuxt.d.ts +12 -6
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{context-DRFZE3XI.d.ts → context-Cg11S-CE.d.cts} +6 -0
- package/dist/plugin-utils/{context-DRFZE3XI.d.cts → context-Cg11S-CE.d.ts} +6 -0
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.ts +1 -1
- package/dist/plugin-utils/enforce.d.cts +1 -1
- package/dist/plugin-utils/enforce.d.ts +1 -1
- package/dist/plugin-utils/extend.d.cts +1 -1
- package/dist/plugin-utils/extend.d.ts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.ts +1 -1
- package/dist/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +1 -1
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/{resolved-DKFZ11S7.d.ts → resolved-B3BSdXCt.d.ts} +13 -1
- package/dist/{resolved-C00CJgsk.d.cts → resolved-DGrpILrS.d.cts} +13 -1
- package/dist/rolldown.cjs +3 -3
- package/dist/rolldown.d.cts +3 -3
- package/dist/rolldown.d.ts +3 -3
- package/dist/rolldown.js +2 -2
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +3 -3
- package/dist/rollup.d.ts +3 -3
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +3 -3
- package/dist/rspack.d.ts +3 -3
- package/dist/rspack.js +2 -2
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.d.cts +3 -2
- package/dist/tsup.d.ts +3 -2
- package/dist/tsup.js +3 -3
- package/dist/types/api.d.cts +2 -2
- package/dist/types/api.d.ts +2 -2
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/internal.d.cts +2 -2
- package/dist/types/internal.d.ts +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +2 -2
- package/dist/types/unplugin.d.ts +2 -2
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +5 -4
- package/dist/unloader.d.ts +5 -4
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +7 -7
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +3 -3
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +5 -4
- package/dist/vite.d.ts +5 -4
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +3 -3
- package/dist/webpack.d.ts +3 -3
- package/dist/webpack.js +3 -3
- package/package.json +10 -9
- package/dist/lib/chunk-XW5TELHB.cjs +0 -67
- package/dist/lib/chunk-ZPIKFR7Z.js +0 -60
package/dist/unplugin.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk4TBQYHPZ_cjs = require('./chunk-4TBQYHPZ.cjs');
|
|
4
|
+
var chunk4EIGDACJ_cjs = require('./chunk-4EIGDACJ.cjs');
|
|
5
5
|
require('./chunk-ETKZMGLN.cjs');
|
|
6
6
|
require('./chunk-PAMSESZV.cjs');
|
|
7
7
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -21,7 +21,7 @@ chunkUSNT2KNT_cjs.__name(combineContexts, "combineContexts");
|
|
|
21
21
|
function createUnplugin(context, options = {}) {
|
|
22
22
|
const ctx = context;
|
|
23
23
|
return () => {
|
|
24
|
-
const log =
|
|
24
|
+
const log = chunk4EIGDACJ_cjs.extendLog(ctx.log, "unplugin");
|
|
25
25
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
26
26
|
try {
|
|
27
27
|
async function buildStart() {
|
|
@@ -51,7 +51,7 @@ function createUnplugin(context, options = {}) {
|
|
|
51
51
|
if (result) {
|
|
52
52
|
return result;
|
|
53
53
|
}
|
|
54
|
-
result = await
|
|
54
|
+
result = await chunk4TBQYHPZ_cjs.handleResolveId(ctx, {
|
|
55
55
|
id,
|
|
56
56
|
importer,
|
|
57
57
|
options: opts
|
|
@@ -124,7 +124,7 @@ export * from "${isString.isString(resolved) ? resolved : resolved.id}";
|
|
|
124
124
|
let transformed = code;
|
|
125
125
|
for (const handler of ctx.$$internal.environment.selectHooks("transform")) {
|
|
126
126
|
const result = await handler.apply(combineContexts(ctx, this), [
|
|
127
|
-
|
|
127
|
+
chunk4TBQYHPZ_cjs.getString(transformed),
|
|
128
128
|
id
|
|
129
129
|
]);
|
|
130
130
|
if (result) {
|
|
@@ -189,10 +189,10 @@ chunkUSNT2KNT_cjs.__name(createUnplugin, "createUnplugin");
|
|
|
189
189
|
|
|
190
190
|
Object.defineProperty(exports, "createUnpluginFactory", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunk4TBQYHPZ_cjs.createUnpluginFactory; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "handleResolveId", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunk4TBQYHPZ_cjs.handleResolveId; }
|
|
197
197
|
});
|
|
198
198
|
exports.createUnplugin = createUnplugin;
|
package/dist/unplugin.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './api.cjs';
|
|
2
2
|
import { UnpluginBuildVariant } from './types/build.cjs';
|
|
3
|
-
import {
|
|
3
|
+
import { b9 as Context, cD as InferResolvedConfig, bd as PluginContext } from './resolved-DGrpILrS.cjs';
|
|
4
4
|
import { PowerlinesUnpluginOptions, InferUnpluginOptions, PowerlinesUnpluginFactory } from './types/unplugin.cjs';
|
|
5
5
|
import { ExternalIdResult } from 'unplugin';
|
|
6
|
-
import './api
|
|
6
|
+
import './api-B77aqxGC.cjs';
|
|
7
7
|
import '@stryke/types/base';
|
|
8
8
|
import '@stryke/types/configuration';
|
|
9
9
|
import '@stryke/types/file';
|
package/dist/unplugin.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PowerlinesAPI } from './api.js';
|
|
2
2
|
import { UnpluginBuildVariant } from './types/build.js';
|
|
3
|
-
import {
|
|
3
|
+
import { b9 as Context, cD as InferResolvedConfig, bd as PluginContext } from './resolved-B3BSdXCt.js';
|
|
4
4
|
import { PowerlinesUnpluginOptions, InferUnpluginOptions, PowerlinesUnpluginFactory } from './types/unplugin.js';
|
|
5
5
|
import { ExternalIdResult } from 'unplugin';
|
|
6
|
-
import './api-
|
|
6
|
+
import './api-5H3zEedD.js';
|
|
7
7
|
import '@stryke/types/base';
|
|
8
8
|
import '@stryke/types/configuration';
|
|
9
9
|
import '@stryke/types/file';
|
package/dist/unplugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { handleResolveId, getString } from './chunk-
|
|
2
|
-
export { createUnpluginFactory, handleResolveId } from './chunk-
|
|
3
|
-
import { extendLog } from './chunk-
|
|
1
|
+
import { handleResolveId, getString } from './chunk-7G7OFGGH.js';
|
|
2
|
+
export { createUnpluginFactory, handleResolveId } from './chunk-7G7OFGGH.js';
|
|
3
|
+
import { extendLog } from './chunk-MUNYXQYT.js';
|
|
4
4
|
import './chunk-JQCWV4DT.js';
|
|
5
5
|
import './chunk-JKBJF3UI.js';
|
|
6
6
|
import './chunk-VT7NVLLU.js';
|
package/dist/vite.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkSNHUEYEP_cjs = require('./chunk-SNHUEYEP.cjs');
|
|
6
6
|
require('./chunk-5IBA5HC2.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-4TBQYHPZ.cjs');
|
|
8
|
+
require('./chunk-4EIGDACJ.cjs');
|
|
9
9
|
require('./chunk-ETKZMGLN.cjs');
|
|
10
10
|
require('./chunk-PAMSESZV.cjs');
|
|
11
11
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -15,13 +15,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkSNHUEYEP_cjs.vite_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "module.exports", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkSNHUEYEP_cjs.vite; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "vite", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkSNHUEYEP_cjs.vite; }
|
|
27
27
|
});
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _vite from 'vite';
|
|
2
|
-
import { X as ViteUserConfig } from './resolved-
|
|
2
|
+
import { X as ViteUserConfig } from './resolved-DGrpILrS.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,11 +42,12 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
44
44
|
* // vite.config.ts
|
|
45
|
-
* import powerlines from "powerlines/vite"
|
|
45
|
+
* import powerlines from "powerlines/vite";
|
|
46
46
|
*
|
|
47
47
|
* export default defineConfig({
|
|
48
|
-
* plugins: [powerlines()],
|
|
49
|
-
* })
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
|
+
* });
|
|
50
|
+
*
|
|
50
51
|
* ```
|
|
51
52
|
*/
|
|
52
53
|
declare const vite: (options: Partial<ViteUserConfig>) => _vite.Plugin<any> | _vite.Plugin<any>[];
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _vite from 'vite';
|
|
2
|
-
import { X as ViteUserConfig } from './resolved-
|
|
2
|
+
import { X as ViteUserConfig } from './resolved-B3BSdXCt.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,11 +42,12 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```ts
|
|
44
44
|
* // vite.config.ts
|
|
45
|
-
* import powerlines from "powerlines/vite"
|
|
45
|
+
* import powerlines from "powerlines/vite";
|
|
46
46
|
*
|
|
47
47
|
* export default defineConfig({
|
|
48
|
-
* plugins: [powerlines()],
|
|
49
|
-
* })
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
|
+
* });
|
|
50
|
+
*
|
|
50
51
|
* ```
|
|
51
52
|
*/
|
|
52
53
|
declare const vite: (options: Partial<ViteUserConfig>) => _vite.Plugin<any> | _vite.Plugin<any>[];
|
package/dist/vite.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { vite_default as default, vite as "module.exports", vite } from './chunk-
|
|
1
|
+
export { vite_default as default, vite as "module.exports", vite } from './chunk-3W5CN3M3.js';
|
|
2
2
|
import './chunk-VBR53KGY.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-7G7OFGGH.js';
|
|
4
|
+
import './chunk-MUNYXQYT.js';
|
|
5
5
|
import './chunk-JQCWV4DT.js';
|
|
6
6
|
import './chunk-JKBJF3UI.js';
|
|
7
7
|
import './chunk-VT7NVLLU.js';
|
package/dist/webpack.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunkWBC2XOMT_cjs = require('./chunk-WBC2XOMT.cjs');
|
|
6
|
+
require('./chunk-4TBQYHPZ.cjs');
|
|
7
|
+
require('./chunk-4EIGDACJ.cjs');
|
|
8
8
|
require('./chunk-ETKZMGLN.cjs');
|
|
9
9
|
require('./chunk-PAMSESZV.cjs');
|
|
10
10
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -14,13 +14,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkWBC2XOMT_cjs.webpack_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkWBC2XOMT_cjs.webpack; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "webpack", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkWBC2XOMT_cjs.webpack; }
|
|
26
26
|
});
|
package/dist/webpack.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _webpack from 'webpack';
|
|
2
|
-
import { M as WebpackUserConfig } from './resolved-
|
|
2
|
+
import { M as WebpackUserConfig } from './resolved-DGrpILrS.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,10 +42,10 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```js
|
|
44
44
|
* // webpack.config.js
|
|
45
|
-
* import powerlines from
|
|
45
|
+
* import powerlines from "powerlines/webpack";
|
|
46
46
|
*
|
|
47
47
|
* export default {
|
|
48
|
-
* plugins: [powerlines()],
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
49
|
* }
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _webpack from 'webpack';
|
|
2
|
-
import { M as WebpackUserConfig } from './resolved-
|
|
2
|
+
import { M as WebpackUserConfig } from './resolved-B3BSdXCt.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -42,10 +42,10 @@ import 'typescript';
|
|
|
42
42
|
* @example
|
|
43
43
|
* ```js
|
|
44
44
|
* // webpack.config.js
|
|
45
|
-
* import powerlines from
|
|
45
|
+
* import powerlines from "powerlines/webpack";
|
|
46
46
|
*
|
|
47
47
|
* export default {
|
|
48
|
-
* plugins: [powerlines()],
|
|
48
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
49
49
|
* }
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
package/dist/webpack.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { webpack_default as default, webpack as "module.exports", webpack } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { webpack_default as default, webpack as "module.exports", webpack } from './chunk-SS5AXCGJ.js';
|
|
2
|
+
import './chunk-7G7OFGGH.js';
|
|
3
|
+
import './chunk-MUNYXQYT.js';
|
|
4
4
|
import './chunk-JQCWV4DT.js';
|
|
5
5
|
import './chunk-JKBJF3UI.js';
|
|
6
6
|
import './chunk-VT7NVLLU.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerlines",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The \"any framework\" framework that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
|
|
6
6
|
"repository": {
|
|
@@ -507,12 +507,12 @@
|
|
|
507
507
|
"@rollup/plugin-replace": "^6.0.3",
|
|
508
508
|
"@rollup/plugin-babel": "^6.1.0",
|
|
509
509
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
510
|
-
"@storm-software/build-tools": "^0.158.
|
|
511
|
-
"@storm-software/config": "^1.134.
|
|
512
|
-
"@storm-software/config-tools": "^1.188.
|
|
513
|
-
"@storm-software/esbuild": "^0.53.
|
|
514
|
-
"@storm-software/tsup": "^0.2.
|
|
515
|
-
"@storm-software/unbuild": "^0.57.
|
|
510
|
+
"@storm-software/build-tools": "^0.158.48",
|
|
511
|
+
"@storm-software/config": "^1.134.48",
|
|
512
|
+
"@storm-software/config-tools": "^1.188.48",
|
|
513
|
+
"@storm-software/esbuild": "^0.53.48",
|
|
514
|
+
"@storm-software/tsup": "^0.2.46",
|
|
515
|
+
"@storm-software/unbuild": "^0.57.48",
|
|
516
516
|
"@stryke/capnp": "^0.12.21",
|
|
517
517
|
"@stryke/convert": "^0.6.2",
|
|
518
518
|
"@stryke/env": "^0.20.14",
|
|
@@ -538,6 +538,7 @@
|
|
|
538
538
|
"jest-worker": "^30.2.0",
|
|
539
539
|
"jiti": "^2.6.1",
|
|
540
540
|
"magic-string": "^0.30.21",
|
|
541
|
+
"mlly": "^1.8.0",
|
|
541
542
|
"prettier": "^3.6.2",
|
|
542
543
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
543
544
|
"ts-morph": "^27.0.2",
|
|
@@ -550,7 +551,7 @@
|
|
|
550
551
|
},
|
|
551
552
|
"devDependencies": {
|
|
552
553
|
"@microsoft/tsdoc": "^0.15.1",
|
|
553
|
-
"@storm-software/testing-tools": "^1.119.
|
|
554
|
+
"@storm-software/testing-tools": "^1.119.48",
|
|
554
555
|
"@stryke/types": "^0.10.2",
|
|
555
556
|
"@types/babel__core": "^7.20.5",
|
|
556
557
|
"@types/babel__helper-module-imports": "^7.18.3",
|
|
@@ -566,5 +567,5 @@
|
|
|
566
567
|
"typescript": "^5.9.3"
|
|
567
568
|
},
|
|
568
569
|
"publishConfig": { "access": "public" },
|
|
569
|
-
"gitHead": "
|
|
570
|
+
"gitHead": "5a6b8349dc29bf9e496ed5dee32c6cfb8d9bff4e"
|
|
570
571
|
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
4
|
-
var getConfig = require('@storm-software/config-tools/get-config');
|
|
5
|
-
var exists = require('@stryke/fs/exists');
|
|
6
|
-
var joinPaths = require('@stryke/path/join-paths');
|
|
7
|
-
var isFunction = require('@stryke/type-checks/is-function');
|
|
8
|
-
var isSetObject = require('@stryke/type-checks/is-set-object');
|
|
9
|
-
var c12 = require('c12');
|
|
10
|
-
var defu = require('defu');
|
|
11
|
-
|
|
12
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
|
|
14
|
-
var defu__default = /*#__PURE__*/_interopDefault(defu);
|
|
15
|
-
|
|
16
|
-
async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
17
|
-
return defu__default.default({
|
|
18
|
-
workspaceRoot
|
|
19
|
-
}, await getConfig.getWorkspaceConfig(true, {
|
|
20
|
-
cwd,
|
|
21
|
-
workspaceRoot,
|
|
22
|
-
useDefault: true
|
|
23
|
-
}));
|
|
24
|
-
}
|
|
25
|
-
chunkUSNT2KNT_cjs.__name(loadWorkspaceConfig, "loadWorkspaceConfig");
|
|
26
|
-
async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
27
|
-
let resolvedUserConfig = {};
|
|
28
|
-
const resolvedUserConfigFile = configFile && exists.existsSync(configFile) ? configFile : configFile && exists.existsSync(joinPaths.joinPaths(projectRoot, configFile)) ? joinPaths.joinPaths(projectRoot, configFile) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.ts`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.js`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.mts`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.mjs`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.mjs`) : void 0;
|
|
29
|
-
if (resolvedUserConfigFile) {
|
|
30
|
-
const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
|
|
31
|
-
if (resolved) {
|
|
32
|
-
let config = {};
|
|
33
|
-
if (isFunction.isFunction(resolved)) {
|
|
34
|
-
config = await Promise.resolve(resolved({
|
|
35
|
-
command,
|
|
36
|
-
mode: mode || "production",
|
|
37
|
-
isSsrBuild: false,
|
|
38
|
-
isPreview: false
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
if (isSetObject.isSetObject(config)) {
|
|
42
|
-
resolvedUserConfig = {
|
|
43
|
-
...config,
|
|
44
|
-
config,
|
|
45
|
-
configFile: resolvedUserConfigFile
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
const result = await c12.loadConfig({
|
|
51
|
-
cwd: projectRoot,
|
|
52
|
-
name: framework,
|
|
53
|
-
envName: mode,
|
|
54
|
-
globalRc: true,
|
|
55
|
-
packageJson: true,
|
|
56
|
-
dotenv: true,
|
|
57
|
-
jiti
|
|
58
|
-
});
|
|
59
|
-
return defu__default.default(resolvedUserConfig, isSetObject.isSetObject(result?.config) ? {
|
|
60
|
-
...result.config,
|
|
61
|
-
...result
|
|
62
|
-
} : {});
|
|
63
|
-
}
|
|
64
|
-
chunkUSNT2KNT_cjs.__name(loadUserConfigFile, "loadUserConfigFile");
|
|
65
|
-
|
|
66
|
-
exports.loadUserConfigFile = loadUserConfigFile;
|
|
67
|
-
exports.loadWorkspaceConfig = loadWorkspaceConfig;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { __name } from './chunk-SHUYVCID.js';
|
|
2
|
-
import { getWorkspaceConfig } from '@storm-software/config-tools/get-config';
|
|
3
|
-
import { existsSync } from '@stryke/fs/exists';
|
|
4
|
-
import { joinPaths } from '@stryke/path/join-paths';
|
|
5
|
-
import { isFunction } from '@stryke/type-checks/is-function';
|
|
6
|
-
import { isSetObject } from '@stryke/type-checks/is-set-object';
|
|
7
|
-
import { loadConfig } from 'c12';
|
|
8
|
-
import defu from 'defu';
|
|
9
|
-
|
|
10
|
-
async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
11
|
-
return defu({
|
|
12
|
-
workspaceRoot
|
|
13
|
-
}, await getWorkspaceConfig(true, {
|
|
14
|
-
cwd,
|
|
15
|
-
workspaceRoot,
|
|
16
|
-
useDefault: true
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
__name(loadWorkspaceConfig, "loadWorkspaceConfig");
|
|
20
|
-
async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
21
|
-
let resolvedUserConfig = {};
|
|
22
|
-
const resolvedUserConfigFile = configFile && existsSync(configFile) ? configFile : configFile && existsSync(joinPaths(projectRoot, configFile)) ? joinPaths(projectRoot, configFile) : existsSync(joinPaths(projectRoot, `${framework}.config.ts`)) ? joinPaths(projectRoot, `${framework}.config.ts`) : existsSync(joinPaths(projectRoot, `${framework}.config.js`)) ? joinPaths(projectRoot, `${framework}.config.js`) : existsSync(joinPaths(projectRoot, `${framework}.config.mts`)) ? joinPaths(projectRoot, `${framework}.config.mts`) : existsSync(joinPaths(projectRoot, `${framework}.config.mjs`)) ? joinPaths(projectRoot, `${framework}.config.mjs`) : void 0;
|
|
23
|
-
if (resolvedUserConfigFile) {
|
|
24
|
-
const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
|
|
25
|
-
if (resolved) {
|
|
26
|
-
let config = {};
|
|
27
|
-
if (isFunction(resolved)) {
|
|
28
|
-
config = await Promise.resolve(resolved({
|
|
29
|
-
command,
|
|
30
|
-
mode: mode || "production",
|
|
31
|
-
isSsrBuild: false,
|
|
32
|
-
isPreview: false
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
if (isSetObject(config)) {
|
|
36
|
-
resolvedUserConfig = {
|
|
37
|
-
...config,
|
|
38
|
-
config,
|
|
39
|
-
configFile: resolvedUserConfigFile
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
const result = await loadConfig({
|
|
45
|
-
cwd: projectRoot,
|
|
46
|
-
name: framework,
|
|
47
|
-
envName: mode,
|
|
48
|
-
globalRc: true,
|
|
49
|
-
packageJson: true,
|
|
50
|
-
dotenv: true,
|
|
51
|
-
jiti
|
|
52
|
-
});
|
|
53
|
-
return defu(resolvedUserConfig, isSetObject(result?.config) ? {
|
|
54
|
-
...result.config,
|
|
55
|
-
...result
|
|
56
|
-
} : {});
|
|
57
|
-
}
|
|
58
|
-
__name(loadUserConfigFile, "loadUserConfigFile");
|
|
59
|
-
|
|
60
|
-
export { loadUserConfigFile, loadWorkspaceConfig };
|