powerlines 0.23.10 → 0.24.0
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-5H3zEedD.d.ts → api-C32Buv5_.d.ts} +1 -1
- package/dist/{api-B77aqxGC.d.cts → api-wzd5AREv.d.cts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +4 -2
- package/dist/api.d.ts +4 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +3 -1
- package/dist/astro.d.ts +3 -1
- package/dist/astro.js +3 -3
- package/dist/chunk-2TWFBWKA.cjs +133 -0
- package/dist/{chunk-3W5CN3M3.js → chunk-7V3LWCLB.js} +1 -1
- package/dist/chunk-EXQM3KGH.js +130 -0
- package/dist/{chunk-4EIGDACJ.cjs → chunk-FGH3MZTQ.cjs} +523 -649
- package/dist/{chunk-SNHUEYEP.cjs → chunk-FPB2O7FD.cjs} +2 -2
- package/dist/{chunk-ZIWN73GA.js → chunk-H74SWU2C.js} +1 -1
- package/dist/{chunk-WBC2XOMT.cjs → chunk-HTGCHSLH.cjs} +2 -2
- package/dist/{chunk-PR3JGGAL.cjs → chunk-TIBYAWZZ.cjs} +2 -2
- package/dist/{chunk-SS5AXCGJ.js → chunk-ZEE73BCY.js} +1 -1
- package/dist/{chunk-MUNYXQYT.js → chunk-ZT2J55YE.js} +526 -649
- package/dist/config.d.cts +3 -1
- package/dist/config.d.ts +3 -1
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +3 -1
- package/dist/esbuild.d.ts +3 -1
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +3 -1
- package/dist/farm.d.ts +3 -1
- package/dist/farm.js +2 -2
- package/dist/index.cjs +11 -23
- package/dist/index.d.cts +6 -135
- package/dist/index.d.ts +6 -135
- package/dist/index.js +2 -2
- package/dist/lib/{api-Cm51oVbC.d.cts → api-BRMITKt-.d.cts} +1 -1
- package/dist/lib/{api-mja4jirh.d.ts → api-CDUN9en8.d.ts} +1 -1
- package/dist/lib/build/esbuild.d.cts +3 -1
- package/dist/lib/build/esbuild.d.ts +3 -1
- package/dist/lib/build/index.d.cts +5 -3
- package/dist/lib/build/index.d.ts +5 -3
- package/dist/lib/build/rolldown.d.cts +3 -1
- package/dist/lib/build/rolldown.d.ts +3 -1
- package/dist/lib/build/rollup.d.cts +3 -1
- package/dist/lib/build/rollup.d.ts +3 -1
- package/dist/lib/build/rspack.d.cts +3 -1
- package/dist/lib/build/rspack.d.ts +3 -1
- package/dist/lib/build/tsup.d.cts +3 -1
- package/dist/lib/build/tsup.d.ts +3 -1
- package/dist/lib/build/unbuild.d.cts +5 -3
- package/dist/lib/build/unbuild.d.ts +5 -3
- package/dist/lib/build/vite.d.cts +3 -1
- package/dist/lib/build/vite.d.ts +3 -1
- package/dist/lib/build/webpack.d.cts +3 -1
- package/dist/lib/build/webpack.d.ts +3 -1
- package/dist/lib/{chunk-52VDUP5J.js → chunk-6I5PL7H2.js} +5 -17
- package/dist/lib/{chunk-UPVFKXB7.cjs → chunk-6PPZCPME.cjs} +1 -2
- package/dist/lib/{chunk-HNOAMIRO.js → chunk-7CVPZOH4.js} +2 -2
- package/dist/lib/{chunk-SEWUUTNA.js → chunk-A2NFSQ5K.js} +1 -1
- package/dist/lib/{chunk-I6TJUFA6.cjs → chunk-AA6RBP44.cjs} +10 -10
- package/dist/lib/{chunk-VDPCG3RR.js → chunk-CGRHZJY5.js} +41 -82
- package/dist/lib/{chunk-OJ5XFCZN.js → chunk-DFW5FGEO.js} +1 -1
- package/dist/lib/{chunk-VL63QEPF.cjs → chunk-DUZJ7ZF2.cjs} +2 -2
- package/dist/lib/{chunk-EFYMNU53.cjs → chunk-EV357RFB.cjs} +5 -17
- package/dist/lib/{chunk-54XNJQTH.js → chunk-HAXL7QE7.js} +3 -3
- package/dist/lib/{chunk-XG4CC73V.js → chunk-KFWMKDJQ.js} +391 -589
- package/dist/lib/{chunk-RBSNQFLF.cjs → chunk-MS3CD2U6.cjs} +49 -91
- package/dist/lib/{chunk-QABAD5RE.cjs → chunk-RNHKEPFD.cjs} +387 -586
- package/dist/lib/{chunk-4EIXDLFP.cjs → chunk-SAS5EPBD.cjs} +7 -5
- package/dist/lib/{chunk-EUDKQWSB.js → chunk-VHLINWXG.js} +1 -2
- package/dist/lib/{chunk-VLOUSKRX.cjs → chunk-VMLQATMA.cjs} +4 -4
- package/dist/lib/{chunk-IBPA3VN5.cjs → chunk-WUYK74EH.cjs} +3 -3
- package/dist/lib/{chunk-RD5AUWXN.js → chunk-YQ3ODCHV.js} +7 -5
- package/dist/lib/{config-BnJpgcGr.d.cts → config-D8KrE7SZ.d.cts} +109 -35
- package/dist/lib/{config-7Q2dBjJE.d.ts → config-DBIFdRoq.d.ts} +109 -35
- package/dist/lib/config-file.d.cts +3 -1
- package/dist/lib/config-file.d.ts +3 -1
- package/dist/lib/contexts/api-context.cjs +5 -4
- package/dist/lib/contexts/api-context.d.cts +5 -3
- package/dist/lib/contexts/api-context.d.ts +5 -3
- package/dist/lib/contexts/api-context.js +4 -3
- package/dist/lib/contexts/context.cjs +3 -2
- package/dist/lib/contexts/context.d.cts +47 -4
- package/dist/lib/contexts/context.d.ts +47 -4
- package/dist/lib/contexts/context.js +2 -1
- package/dist/lib/contexts/environment-context.cjs +4 -3
- package/dist/lib/contexts/environment-context.d.cts +5 -3
- package/dist/lib/contexts/environment-context.d.ts +5 -3
- package/dist/lib/contexts/environment-context.js +3 -2
- package/dist/lib/contexts/index.cjs +7 -6
- package/dist/lib/contexts/index.d.cts +5 -3
- package/dist/lib/contexts/index.d.ts +5 -3
- package/dist/lib/contexts/index.js +4 -3
- package/dist/lib/contexts/plugin-context.d.cts +5 -3
- package/dist/lib/contexts/plugin-context.d.ts +5 -3
- package/dist/lib/entry.d.cts +3 -1
- package/dist/lib/entry.d.ts +3 -1
- package/dist/lib/index.cjs +39 -45
- package/dist/lib/index.d.cts +67 -48
- package/dist/lib/index.d.ts +67 -48
- package/dist/lib/index.js +12 -14
- package/dist/lib/{internal-BEygquYh.d.ts → internal-1qCyw7bA.d.ts} +2 -2
- package/dist/lib/{internal-BeR8fOB1.d.cts → internal-CaGANOWK.d.cts} +2 -2
- package/dist/lib/logger.d.cts +3 -1
- package/dist/lib/logger.d.ts +3 -1
- package/dist/lib/typescript/compiler-host.cjs +7 -7
- package/dist/lib/typescript/compiler-host.d.cts +3 -1
- package/dist/lib/typescript/compiler-host.d.ts +3 -1
- package/dist/lib/typescript/compiler-host.js +6 -6
- package/dist/lib/typescript/import-transformer.cjs +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +3 -1
- package/dist/lib/typescript/import-transformer.d.ts +3 -1
- package/dist/lib/typescript/import-transformer.js +1 -1
- package/dist/lib/typescript/index.cjs +8 -8
- package/dist/lib/typescript/index.d.cts +3 -2
- package/dist/lib/typescript/index.d.ts +3 -2
- package/dist/lib/typescript/index.js +2 -2
- package/dist/lib/typescript/program.cjs +6 -6
- package/dist/lib/typescript/program.d.cts +3 -1
- package/dist/lib/typescript/program.d.ts +3 -1
- package/dist/lib/typescript/program.js +1 -1
- package/dist/lib/typescript/ts-morph.cjs +2 -2
- package/dist/lib/typescript/ts-morph.d.cts +5 -3
- package/dist/lib/typescript/ts-morph.d.ts +5 -3
- package/dist/lib/typescript/ts-morph.js +1 -1
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.d.cts +5 -3
- package/dist/lib/unplugin/factory.d.ts +5 -3
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/helpers.d.cts +3 -1
- package/dist/lib/unplugin/helpers.d.ts +3 -1
- package/dist/lib/unplugin/index.cjs +11 -11
- package/dist/lib/unplugin/index.d.cts +6 -4
- package/dist/lib/unplugin/index.d.ts +6 -4
- package/dist/lib/unplugin/index.js +7 -7
- package/dist/lib/unplugin/plugin.cjs +2 -3
- package/dist/lib/unplugin/plugin.d.cts +6 -4
- package/dist/lib/unplugin/plugin.d.ts +6 -4
- package/dist/lib/unplugin/plugin.js +1 -2
- package/dist/lib/{unplugin-CbbNDduM.d.ts → unplugin-CEeJqADD.d.ts} +2 -2
- package/dist/lib/{unplugin-ppAOzR__.d.cts → unplugin-bUSyjd0S.d.cts} +2 -2
- package/dist/lib/utilities/bundle.cjs +2 -3
- package/dist/lib/utilities/bundle.d.cts +3 -1
- package/dist/lib/utilities/bundle.d.ts +3 -1
- package/dist/lib/utilities/bundle.js +1 -2
- package/dist/lib/utilities/cache.d.cts +3 -1
- package/dist/lib/utilities/cache.d.ts +3 -1
- package/dist/lib/utilities/file-header.d.cts +3 -1
- package/dist/lib/utilities/file-header.d.ts +3 -1
- package/dist/lib/utilities/index.cjs +14 -19
- package/dist/lib/utilities/index.d.cts +3 -2
- package/dist/lib/utilities/index.d.ts +3 -2
- package/dist/lib/utilities/index.js +4 -5
- package/dist/lib/utilities/meta.d.cts +3 -1
- package/dist/lib/utilities/meta.d.ts +3 -1
- package/dist/lib/utilities/resolve.cjs +3 -4
- package/dist/lib/utilities/resolve.d.cts +3 -1
- package/dist/lib/utilities/resolve.d.ts +3 -1
- package/dist/lib/utilities/resolve.js +2 -3
- package/dist/lib/utilities/source-file.d.cts +3 -1
- package/dist/lib/utilities/source-file.d.ts +3 -1
- package/dist/lib/utilities/source-map.d.cts +3 -1
- package/dist/lib/utilities/source-map.d.ts +3 -1
- package/dist/lib/utilities/worker.d.cts +3 -1
- package/dist/lib/utilities/worker.d.ts +3 -1
- package/dist/lib/utilities/write-file.d.cts +3 -1
- package/dist/lib/utilities/write-file.d.ts +3 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +6 -6
- package/dist/nuxt.js +4 -4
- package/dist/plugin-utils/{context-Cg11S-CE.d.cts → context-BITGF5LZ.d.cts} +118 -39
- package/dist/plugin-utils/{context-Cg11S-CE.d.ts → context-BITGF5LZ.d.ts} +118 -39
- package/dist/plugin-utils/context-helpers.d.cts +4 -1
- package/dist/plugin-utils/context-helpers.d.ts +4 -1
- package/dist/plugin-utils/enforce.d.cts +4 -1
- package/dist/plugin-utils/enforce.d.ts +4 -1
- package/dist/plugin-utils/extend.d.cts +4 -1
- package/dist/plugin-utils/extend.d.ts +4 -1
- package/dist/plugin-utils/get-config-path.d.cts +4 -1
- package/dist/plugin-utils/get-config-path.d.ts +4 -1
- package/dist/plugin-utils/helpers.d.cts +4 -1
- package/dist/plugin-utils/helpers.d.ts +4 -1
- package/dist/plugin-utils/index.d.cts +4 -1
- package/dist/plugin-utils/index.d.ts +4 -1
- package/dist/plugin-utils/merge.d.cts +4 -1
- package/dist/plugin-utils/merge.d.ts +4 -1
- package/dist/plugin-utils/paths.d.cts +4 -1
- package/dist/plugin-utils/paths.d.ts +4 -1
- package/dist/{resolved-B3BSdXCt.d.ts → resolved-BABoCnXm.d.ts} +43 -1
- package/dist/{resolved-DGrpILrS.d.cts → resolved-CSqGKlA5.d.cts} +43 -1
- package/dist/rolldown.cjs +3 -3
- package/dist/rolldown.d.cts +3 -1
- package/dist/rolldown.d.ts +3 -1
- package/dist/rolldown.js +2 -2
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +3 -1
- package/dist/rollup.d.ts +3 -1
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +3 -1
- package/dist/rspack.d.ts +3 -1
- package/dist/rspack.js +2 -2
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/types/api.d.cts +4 -2
- package/dist/types/api.d.ts +4 -2
- package/dist/types/babel.d.cts +3 -1
- package/dist/types/babel.d.ts +3 -1
- package/dist/types/commands.d.cts +3 -1
- package/dist/types/commands.d.ts +3 -1
- package/dist/types/config.d.cts +3 -1
- package/dist/types/config.d.ts +3 -1
- package/dist/types/context.d.cts +3 -1
- package/dist/types/context.d.ts +3 -1
- package/dist/types/fs.d.cts +68 -36
- package/dist/types/fs.d.ts +68 -36
- package/dist/types/hooks.d.cts +3 -1
- package/dist/types/hooks.d.ts +3 -1
- package/dist/types/index.d.cts +5 -3
- package/dist/types/index.d.ts +5 -3
- package/dist/types/internal.d.cts +4 -2
- package/dist/types/internal.d.ts +4 -2
- package/dist/types/plugin.d.cts +3 -1
- package/dist/types/plugin.d.ts +3 -1
- package/dist/types/resolved.d.cts +3 -1
- package/dist/types/resolved.d.ts +3 -1
- package/dist/types/unplugin.d.cts +4 -2
- package/dist/types/unplugin.d.ts +4 -2
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +3 -1
- package/dist/unloader.d.ts +3 -1
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +12 -28
- package/dist/unplugin.d.cts +104 -31
- package/dist/unplugin.d.ts +104 -31
- package/dist/unplugin.js +10 -23
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +3 -1
- package/dist/vite.d.ts +3 -1
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +3 -1
- package/dist/webpack.d.ts +3 -1
- package/dist/webpack.js +3 -3
- package/package.json +16 -15
- package/schemas/fs.capnp +35 -38
- package/dist/chunk-4TBQYHPZ.cjs +0 -234
- package/dist/chunk-7G7OFGGH.js +0 -230
- package/dist/lib/chunk-G7S5PIAC.js +0 -89
- package/dist/lib/chunk-MZJWK36Q.cjs +0 -37
- package/dist/lib/chunk-NWAD7K4D.js +0 -35
- package/dist/lib/chunk-ZBDVQVUK.cjs +0 -91
- package/dist/lib/unplugin/resolve-id.cjs +0 -11
- package/dist/lib/unplugin/resolve-id.d.cts +0 -57
- package/dist/lib/unplugin/resolve-id.d.ts +0 -57
- package/dist/lib/unplugin/resolve-id.js +0 -2
- package/dist/lib/utilities/resolve-path.cjs +0 -11
- package/dist/lib/utilities/resolve-path.d.cts +0 -40
- package/dist/lib/utilities/resolve-path.d.ts +0 -40
- package/dist/lib/utilities/resolve-path.js +0 -2
- /package/dist/lib/{chunk-HMO3LAYL.js → chunk-I2DQRMX3.js} +0 -0
- /package/dist/lib/{chunk-EJ25PQEL.cjs → chunk-YK4PYVLM.cjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b6 as SelectHooksOptions, ct as ResolvedConfig, ba as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-
|
|
1
|
+
import { b6 as SelectHooksOptions, ct as ResolvedConfig, ba as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-BABoCnXm.js';
|
|
2
2
|
|
|
3
3
|
type CallHookOptions = SelectHooksOptions & ({
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b6 as SelectHooksOptions, ct as ResolvedConfig, ba as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-
|
|
1
|
+
import { b6 as SelectHooksOptions, ct as ResolvedConfig, ba as APIContext, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-CSqGKlA5.cjs';
|
|
2
2
|
|
|
3
3
|
type CallHookOptions = SelectHooksOptions & ({
|
|
4
4
|
/**
|
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFGH3MZTQ_cjs = require('./chunk-FGH3MZTQ.cjs');
|
|
4
4
|
require('./chunk-ETKZMGLN.cjs');
|
|
5
5
|
require('./chunk-PAMSESZV.cjs');
|
|
6
6
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -10,5 +10,5 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkFGH3MZTQ_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { ct as ResolvedConfig, ba as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-wzd5AREv.cjs';
|
|
2
|
+
import { ct as ResolvedConfig, ba as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-CSqGKlA5.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -26,9 +26,11 @@ import 'jiti';
|
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
28
|
import 'semver';
|
|
29
|
+
import 'ts-morph';
|
|
29
30
|
import 'unimport';
|
|
30
31
|
import 'unplugin';
|
|
31
32
|
import './types/fs.cjs';
|
|
33
|
+
import '@stryke/fs/resolve';
|
|
32
34
|
import 'node:fs';
|
|
33
35
|
import '@stryke/types/array';
|
|
34
36
|
import './types/tsconfig.cjs';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as API, C as CallHookOptions } from './api-
|
|
2
|
-
import { ct as ResolvedConfig, ba as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-
|
|
1
|
+
import { A as API, C as CallHookOptions } from './api-C32Buv5_.js';
|
|
2
|
+
import { ct as ResolvedConfig, ba as APIContext, a2 as InitialUserConfig, a8 as PrepareInlineConfig, a6 as NewInlineConfig, a7 as CleanInlineConfig, a9 as BuildInlineConfig, aa as LintInlineConfig, ab as DocsInlineConfig, ac as DeployInlineConfig, bC as HookKeys, bd as PluginContext, bc as EnvironmentContext, bJ as InferHookParameters, bI as InferHookReturnType } from './resolved-BABoCnXm.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -26,9 +26,11 @@ import 'jiti';
|
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
28
|
import 'semver';
|
|
29
|
+
import 'ts-morph';
|
|
29
30
|
import 'unimport';
|
|
30
31
|
import 'unplugin';
|
|
31
32
|
import './types/fs.js';
|
|
33
|
+
import '@stryke/fs/resolve';
|
|
32
34
|
import 'node:fs';
|
|
33
35
|
import '@stryke/types/array';
|
|
34
36
|
import './types/tsconfig.js';
|
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 chunkFPB2O7FD_cjs = require('./chunk-FPB2O7FD.cjs');
|
|
6
6
|
require('./chunk-5IBA5HC2.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-2TWFBWKA.cjs');
|
|
8
|
+
require('./chunk-FGH3MZTQ.cjs');
|
|
9
9
|
require('./chunk-ETKZMGLN.cjs');
|
|
10
10
|
require('./chunk-PAMSESZV.cjs');
|
|
11
11
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -15,7 +15,7 @@ var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
|
15
15
|
var astro = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((config) => ({
|
|
16
16
|
vite: {
|
|
17
17
|
plugins: [
|
|
18
|
-
|
|
18
|
+
chunkFPB2O7FD_cjs.vite_default(config)
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
}), "astro");
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cu as ViteResolvedConfig } from './resolved-
|
|
2
|
+
import { cu as ViteResolvedConfig } from './resolved-CSqGKlA5.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -26,9 +26,11 @@ import 'jiti';
|
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
28
|
import 'semver';
|
|
29
|
+
import 'ts-morph';
|
|
29
30
|
import 'unimport';
|
|
30
31
|
import 'unplugin';
|
|
31
32
|
import './types/fs.cjs';
|
|
33
|
+
import '@stryke/fs/resolve';
|
|
32
34
|
import 'node:fs';
|
|
33
35
|
import '@stryke/types/array';
|
|
34
36
|
import './types/tsconfig.cjs';
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AstroUserConfig } from 'astro';
|
|
2
|
-
import { cu as ViteResolvedConfig } from './resolved-
|
|
2
|
+
import { cu as ViteResolvedConfig } from './resolved-BABoCnXm.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/configuration';
|
|
5
5
|
import '@stryke/types/file';
|
|
@@ -26,9 +26,11 @@ import 'jiti';
|
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'memfs';
|
|
28
28
|
import 'semver';
|
|
29
|
+
import 'ts-morph';
|
|
29
30
|
import 'unimport';
|
|
30
31
|
import 'unplugin';
|
|
31
32
|
import './types/fs.js';
|
|
33
|
+
import '@stryke/fs/resolve';
|
|
32
34
|
import 'node:fs';
|
|
33
35
|
import '@stryke/types/array';
|
|
34
36
|
import './types/tsconfig.js';
|
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-7V3LWCLB.js';
|
|
2
2
|
import './chunk-VBR53KGY.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-EXQM3KGH.js';
|
|
4
|
+
import './chunk-ZT2J55YE.js';
|
|
5
5
|
import './chunk-JQCWV4DT.js';
|
|
6
6
|
import './chunk-JKBJF3UI.js';
|
|
7
7
|
import './chunk-VT7NVLLU.js';
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkFGH3MZTQ_cjs = require('./chunk-FGH3MZTQ.cjs');
|
|
4
|
+
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
|
+
var types = require('@storm-software/config-tools/types');
|
|
6
|
+
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
7
|
+
require('@stryke/fs/read-file');
|
|
8
|
+
var isSetObject = require('@stryke/type-checks/is-set-object');
|
|
9
|
+
var isString = require('@stryke/type-checks/is-string');
|
|
10
|
+
require('magic-string');
|
|
11
|
+
|
|
12
|
+
function getString(code) {
|
|
13
|
+
if (!code) {
|
|
14
|
+
return "";
|
|
15
|
+
}
|
|
16
|
+
if (isString.isString(code)) {
|
|
17
|
+
return code;
|
|
18
|
+
}
|
|
19
|
+
if (isSetObject.isSetObject(code) && "code" in code) {
|
|
20
|
+
return code.code;
|
|
21
|
+
}
|
|
22
|
+
return code.toString();
|
|
23
|
+
}
|
|
24
|
+
chunkUSNT2KNT_cjs.__name(getString, "getString");
|
|
25
|
+
|
|
26
|
+
// src/lib/unplugin/factory.ts
|
|
27
|
+
function createUnpluginFactory(variant, decorate) {
|
|
28
|
+
return (config, meta) => {
|
|
29
|
+
const log = chunkFGH3MZTQ_cjs.createLog("unplugin", config);
|
|
30
|
+
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
31
|
+
try {
|
|
32
|
+
const userConfig = {
|
|
33
|
+
...config,
|
|
34
|
+
variant,
|
|
35
|
+
unplugin: meta
|
|
36
|
+
};
|
|
37
|
+
let api;
|
|
38
|
+
async function buildStart() {
|
|
39
|
+
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
40
|
+
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(process.cwd());
|
|
41
|
+
api = await chunkFGH3MZTQ_cjs.PowerlinesAPI.from(workspaceRoot, userConfig);
|
|
42
|
+
log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
|
|
43
|
+
await api.prepare({
|
|
44
|
+
command: "build"
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
chunkUSNT2KNT_cjs.__name(buildStart, "buildStart");
|
|
48
|
+
async function resolveId(id, importer, options = {
|
|
49
|
+
isEntry: false
|
|
50
|
+
}) {
|
|
51
|
+
return api.context.resolveId(id, importer, options);
|
|
52
|
+
}
|
|
53
|
+
chunkUSNT2KNT_cjs.__name(resolveId, "resolveId");
|
|
54
|
+
async function load(id) {
|
|
55
|
+
const environment = await api.context.getEnvironment();
|
|
56
|
+
let result2 = await api.callPreHook(environment, "load", id);
|
|
57
|
+
if (result2) {
|
|
58
|
+
return result2;
|
|
59
|
+
}
|
|
60
|
+
result2 = await api.callNormalHook(environment, "load", id);
|
|
61
|
+
if (result2) {
|
|
62
|
+
return result2;
|
|
63
|
+
}
|
|
64
|
+
result2 = await environment.load(id);
|
|
65
|
+
if (result2) {
|
|
66
|
+
return result2;
|
|
67
|
+
}
|
|
68
|
+
return api.callPostHook(environment, "load", id);
|
|
69
|
+
}
|
|
70
|
+
chunkUSNT2KNT_cjs.__name(load, "load");
|
|
71
|
+
async function transform(code, id) {
|
|
72
|
+
const environment = await api.context.getEnvironment();
|
|
73
|
+
let transformed = code;
|
|
74
|
+
let result2 = await api.callPreHook(environment, "transform", getString(transformed), id);
|
|
75
|
+
if (result2) {
|
|
76
|
+
transformed = result2;
|
|
77
|
+
}
|
|
78
|
+
result2 = await api.callNormalHook(environment, "transform", getString(transformed), id);
|
|
79
|
+
if (result2) {
|
|
80
|
+
transformed = result2;
|
|
81
|
+
}
|
|
82
|
+
result2 = await api.callPostHook(environment, "transform", getString(transformed), id);
|
|
83
|
+
if (result2) {
|
|
84
|
+
transformed = result2;
|
|
85
|
+
}
|
|
86
|
+
return transformed;
|
|
87
|
+
}
|
|
88
|
+
chunkUSNT2KNT_cjs.__name(transform, "transform");
|
|
89
|
+
async function writeBundle() {
|
|
90
|
+
log(types.LogLevelLabel.DEBUG, "Finalizing Powerlines project output...");
|
|
91
|
+
const environment = await api.context.getEnvironment();
|
|
92
|
+
await api.callHook(environment, "writeBundle");
|
|
93
|
+
}
|
|
94
|
+
chunkUSNT2KNT_cjs.__name(writeBundle, "writeBundle");
|
|
95
|
+
const result = {
|
|
96
|
+
name: "powerlines",
|
|
97
|
+
api,
|
|
98
|
+
resolveId: {
|
|
99
|
+
filter: {
|
|
100
|
+
id: {
|
|
101
|
+
include: [
|
|
102
|
+
/.*/
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
handler: resolveId
|
|
107
|
+
},
|
|
108
|
+
load: {
|
|
109
|
+
filter: {
|
|
110
|
+
id: {
|
|
111
|
+
include: [
|
|
112
|
+
/.*/,
|
|
113
|
+
/^storm:/
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
handler: load
|
|
118
|
+
},
|
|
119
|
+
transform,
|
|
120
|
+
buildStart,
|
|
121
|
+
writeBundle
|
|
122
|
+
};
|
|
123
|
+
return decorate ? decorate(api, result) : result;
|
|
124
|
+
} catch (error) {
|
|
125
|
+
log(types.LogLevelLabel.FATAL, error?.message);
|
|
126
|
+
throw error;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
chunkUSNT2KNT_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
131
|
+
|
|
132
|
+
exports.createUnpluginFactory = createUnpluginFactory;
|
|
133
|
+
exports.getString = getString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-VBR53KGY.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-EXQM3KGH.js';
|
|
3
3
|
import { __name } from './chunk-SHUYVCID.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-ZT2J55YE.js';
|
|
2
|
+
import { __name } from './chunk-SHUYVCID.js';
|
|
3
|
+
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
|
+
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
5
|
+
import '@stryke/fs/read-file';
|
|
6
|
+
import { isSetObject } from '@stryke/type-checks/is-set-object';
|
|
7
|
+
import { isString } from '@stryke/type-checks/is-string';
|
|
8
|
+
import 'magic-string';
|
|
9
|
+
|
|
10
|
+
function getString(code) {
|
|
11
|
+
if (!code) {
|
|
12
|
+
return "";
|
|
13
|
+
}
|
|
14
|
+
if (isString(code)) {
|
|
15
|
+
return code;
|
|
16
|
+
}
|
|
17
|
+
if (isSetObject(code) && "code" in code) {
|
|
18
|
+
return code.code;
|
|
19
|
+
}
|
|
20
|
+
return code.toString();
|
|
21
|
+
}
|
|
22
|
+
__name(getString, "getString");
|
|
23
|
+
|
|
24
|
+
// src/lib/unplugin/factory.ts
|
|
25
|
+
function createUnpluginFactory(variant, decorate) {
|
|
26
|
+
return (config, meta) => {
|
|
27
|
+
const log = createLog("unplugin", config);
|
|
28
|
+
log(LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
29
|
+
try {
|
|
30
|
+
const userConfig = {
|
|
31
|
+
...config,
|
|
32
|
+
variant,
|
|
33
|
+
unplugin: meta
|
|
34
|
+
};
|
|
35
|
+
let api;
|
|
36
|
+
async function buildStart() {
|
|
37
|
+
log(LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
38
|
+
const workspaceRoot = getWorkspaceRoot(process.cwd());
|
|
39
|
+
api = await PowerlinesAPI.from(workspaceRoot, userConfig);
|
|
40
|
+
log(LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
|
|
41
|
+
await api.prepare({
|
|
42
|
+
command: "build"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
__name(buildStart, "buildStart");
|
|
46
|
+
async function resolveId(id, importer, options = {
|
|
47
|
+
isEntry: false
|
|
48
|
+
}) {
|
|
49
|
+
return api.context.resolveId(id, importer, options);
|
|
50
|
+
}
|
|
51
|
+
__name(resolveId, "resolveId");
|
|
52
|
+
async function load(id) {
|
|
53
|
+
const environment = await api.context.getEnvironment();
|
|
54
|
+
let result2 = await api.callPreHook(environment, "load", id);
|
|
55
|
+
if (result2) {
|
|
56
|
+
return result2;
|
|
57
|
+
}
|
|
58
|
+
result2 = await api.callNormalHook(environment, "load", id);
|
|
59
|
+
if (result2) {
|
|
60
|
+
return result2;
|
|
61
|
+
}
|
|
62
|
+
result2 = await environment.load(id);
|
|
63
|
+
if (result2) {
|
|
64
|
+
return result2;
|
|
65
|
+
}
|
|
66
|
+
return api.callPostHook(environment, "load", id);
|
|
67
|
+
}
|
|
68
|
+
__name(load, "load");
|
|
69
|
+
async function transform(code, id) {
|
|
70
|
+
const environment = await api.context.getEnvironment();
|
|
71
|
+
let transformed = code;
|
|
72
|
+
let result2 = await api.callPreHook(environment, "transform", getString(transformed), id);
|
|
73
|
+
if (result2) {
|
|
74
|
+
transformed = result2;
|
|
75
|
+
}
|
|
76
|
+
result2 = await api.callNormalHook(environment, "transform", getString(transformed), id);
|
|
77
|
+
if (result2) {
|
|
78
|
+
transformed = result2;
|
|
79
|
+
}
|
|
80
|
+
result2 = await api.callPostHook(environment, "transform", getString(transformed), id);
|
|
81
|
+
if (result2) {
|
|
82
|
+
transformed = result2;
|
|
83
|
+
}
|
|
84
|
+
return transformed;
|
|
85
|
+
}
|
|
86
|
+
__name(transform, "transform");
|
|
87
|
+
async function writeBundle() {
|
|
88
|
+
log(LogLevelLabel.DEBUG, "Finalizing Powerlines project output...");
|
|
89
|
+
const environment = await api.context.getEnvironment();
|
|
90
|
+
await api.callHook(environment, "writeBundle");
|
|
91
|
+
}
|
|
92
|
+
__name(writeBundle, "writeBundle");
|
|
93
|
+
const result = {
|
|
94
|
+
name: "powerlines",
|
|
95
|
+
api,
|
|
96
|
+
resolveId: {
|
|
97
|
+
filter: {
|
|
98
|
+
id: {
|
|
99
|
+
include: [
|
|
100
|
+
/.*/
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
handler: resolveId
|
|
105
|
+
},
|
|
106
|
+
load: {
|
|
107
|
+
filter: {
|
|
108
|
+
id: {
|
|
109
|
+
include: [
|
|
110
|
+
/.*/,
|
|
111
|
+
/^storm:/
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
handler: load
|
|
116
|
+
},
|
|
117
|
+
transform,
|
|
118
|
+
buildStart,
|
|
119
|
+
writeBundle
|
|
120
|
+
};
|
|
121
|
+
return decorate ? decorate(api, result) : result;
|
|
122
|
+
} catch (error) {
|
|
123
|
+
log(LogLevelLabel.FATAL, error?.message);
|
|
124
|
+
throw error;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
__name(createUnpluginFactory, "createUnpluginFactory");
|
|
129
|
+
|
|
130
|
+
export { createUnpluginFactory, getString };
|