@powerlines/plugin-rolldown 0.7.133 → 0.7.134

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.
Files changed (132) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +29 -0
  2. package/dist/helpers/index.cjs +2 -3
  3. package/dist/helpers/index.d.cts +1 -3
  4. package/dist/helpers/index.d.mts +1 -3
  5. package/dist/helpers/index.mjs +1 -2
  6. package/dist/helpers/unplugin.cjs +11 -2
  7. package/dist/helpers/unplugin.d.cts +6 -2
  8. package/dist/helpers/unplugin.d.mts +6 -2
  9. package/dist/helpers/unplugin.mjs +9 -1
  10. package/dist/index.cjs +7 -150
  11. package/dist/index.d.cts +3 -4
  12. package/dist/index.d.mts +5 -5
  13. package/dist/index.mjs +3 -143
  14. package/dist/powerlines/schemas/fs.cjs +226 -0
  15. package/dist/powerlines/schemas/fs.mjs +224 -0
  16. package/dist/powerlines/src/api.cjs +580 -0
  17. package/dist/powerlines/src/api.mjs +578 -0
  18. package/dist/powerlines/src/internal/babel/module-resolver-plugin.cjs +86 -0
  19. package/dist/powerlines/src/internal/babel/module-resolver-plugin.mjs +84 -0
  20. package/dist/powerlines/src/internal/helpers/environment.cjs +52 -0
  21. package/dist/powerlines/src/internal/helpers/environment.mjs +48 -0
  22. package/dist/powerlines/src/internal/helpers/generate-types.cjs +51 -0
  23. package/dist/powerlines/src/internal/helpers/generate-types.mjs +49 -0
  24. package/dist/powerlines/src/internal/helpers/hooks.cjs +63 -0
  25. package/dist/powerlines/src/internal/helpers/hooks.mjs +61 -0
  26. package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +25 -0
  27. package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +24 -0
  28. package/dist/powerlines/src/internal/helpers/install.cjs +37 -0
  29. package/dist/powerlines/src/internal/helpers/install.mjs +36 -0
  30. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +98 -0
  31. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +94 -0
  32. package/dist/powerlines/src/internal/helpers/resolver.cjs +43 -0
  33. package/dist/powerlines/src/internal/helpers/resolver.mjs +41 -0
  34. package/dist/powerlines/src/lib/build/rolldown.cjs +125 -0
  35. package/dist/powerlines/src/lib/build/rolldown.mjs +119 -0
  36. package/dist/powerlines/src/lib/build/rollup.cjs +45 -0
  37. package/dist/powerlines/src/lib/build/rollup.mjs +39 -0
  38. package/dist/powerlines/src/lib/config-file.cjs +79 -0
  39. package/dist/powerlines/src/lib/config-file.mjs +76 -0
  40. package/dist/powerlines/src/lib/contexts/api-context.cjs +184 -0
  41. package/dist/powerlines/src/lib/contexts/api-context.mjs +182 -0
  42. package/dist/powerlines/src/lib/contexts/context.cjs +933 -0
  43. package/dist/powerlines/src/lib/contexts/context.mjs +931 -0
  44. package/dist/powerlines/src/lib/contexts/environment-context.cjs +160 -0
  45. package/dist/powerlines/src/lib/contexts/environment-context.mjs +159 -0
  46. package/dist/powerlines/src/lib/contexts/plugin-context.cjs +75 -0
  47. package/dist/powerlines/src/lib/contexts/plugin-context.mjs +74 -0
  48. package/dist/powerlines/src/lib/entry.cjs +69 -0
  49. package/dist/powerlines/src/lib/entry.mjs +67 -0
  50. package/dist/powerlines/src/lib/fs/helpers.cjs +85 -0
  51. package/dist/powerlines/src/lib/fs/helpers.mjs +81 -0
  52. package/dist/powerlines/src/lib/fs/storage/base.cjs +196 -0
  53. package/dist/powerlines/src/lib/fs/storage/base.mjs +195 -0
  54. package/dist/powerlines/src/lib/fs/storage/file-system.cjs +170 -0
  55. package/dist/powerlines/src/lib/fs/storage/file-system.mjs +169 -0
  56. package/dist/powerlines/src/lib/fs/storage/virtual.cjs +88 -0
  57. package/dist/powerlines/src/lib/fs/storage/virtual.mjs +87 -0
  58. package/dist/powerlines/src/lib/fs/vfs.cjs +830 -0
  59. package/dist/powerlines/src/lib/fs/vfs.mjs +828 -0
  60. package/dist/powerlines/src/lib/logger.cjs +58 -0
  61. package/dist/powerlines/src/lib/logger.mjs +55 -0
  62. package/dist/powerlines/src/lib/typescript/ts-morph.cjs +104 -0
  63. package/dist/powerlines/src/lib/typescript/ts-morph.mjs +102 -0
  64. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +149 -0
  65. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +144 -0
  66. package/dist/powerlines/src/lib/unplugin/factory.cjs +6 -0
  67. package/dist/powerlines/src/lib/unplugin/factory.mjs +8 -0
  68. package/dist/powerlines/src/lib/unplugin/helpers.cjs +17 -0
  69. package/dist/powerlines/src/lib/unplugin/helpers.mjs +16 -0
  70. package/dist/powerlines/src/lib/unplugin/index.cjs +3 -0
  71. package/dist/powerlines/src/lib/unplugin/index.mjs +5 -0
  72. package/dist/powerlines/src/lib/unplugin/plugin.cjs +128 -0
  73. package/dist/powerlines/src/lib/unplugin/plugin.mjs +127 -0
  74. package/dist/powerlines/src/lib/utilities/file-header.cjs +22 -0
  75. package/dist/powerlines/src/lib/utilities/file-header.mjs +21 -0
  76. package/dist/powerlines/src/lib/utilities/meta.cjs +45 -0
  77. package/dist/powerlines/src/lib/utilities/meta.mjs +41 -0
  78. package/dist/powerlines/src/lib/utilities/source-file.cjs +22 -0
  79. package/dist/powerlines/src/lib/utilities/source-file.mjs +21 -0
  80. package/dist/powerlines/src/plugin-utils/helpers.cjs +148 -0
  81. package/dist/powerlines/src/plugin-utils/helpers.mjs +138 -0
  82. package/dist/powerlines/src/plugin-utils/paths.cjs +36 -0
  83. package/dist/powerlines/src/plugin-utils/paths.mjs +35 -0
  84. package/dist/powerlines/src/types/babel.d.mts +4 -0
  85. package/dist/powerlines/src/types/build.cjs +15 -0
  86. package/dist/powerlines/src/types/build.d.cts +149 -0
  87. package/dist/powerlines/src/types/build.d.mts +149 -0
  88. package/dist/powerlines/src/types/build.mjs +14 -0
  89. package/dist/powerlines/src/types/commands.cjs +16 -0
  90. package/dist/powerlines/src/types/commands.d.cts +8 -0
  91. package/dist/powerlines/src/types/commands.d.mts +9 -0
  92. package/dist/powerlines/src/types/commands.mjs +15 -0
  93. package/dist/powerlines/src/types/config.d.cts +377 -0
  94. package/dist/powerlines/src/types/config.d.mts +379 -0
  95. package/dist/powerlines/src/types/context.d.cts +403 -0
  96. package/dist/powerlines/src/types/context.d.mts +405 -0
  97. package/dist/powerlines/src/types/fs.d.cts +486 -0
  98. package/dist/powerlines/src/types/fs.d.mts +486 -0
  99. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  100. package/dist/powerlines/src/types/plugin.cjs +32 -0
  101. package/dist/powerlines/src/types/plugin.d.cts +231 -0
  102. package/dist/powerlines/src/types/plugin.d.mts +231 -0
  103. package/dist/powerlines/src/types/plugin.mjs +31 -0
  104. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  105. package/dist/powerlines/src/types/resolved.d.mts +83 -0
  106. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  107. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  108. package/dist/types/index.cjs +0 -2
  109. package/dist/types/index.d.cts +1 -2
  110. package/dist/types/index.d.mts +1 -2
  111. package/dist/types/index.mjs +0 -3
  112. package/dist/types/plugin.cjs +0 -1
  113. package/dist/types/plugin.d.cts +12 -1
  114. package/dist/types/plugin.d.mts +12 -1
  115. package/dist/types/plugin.mjs +0 -2
  116. package/package.json +5 -5
  117. package/dist/helpers-B15z10jN.mjs +0 -1
  118. package/dist/helpers-LF26RHol.cjs +0 -0
  119. package/dist/index-9iG2qHLe.d.mts +0 -1
  120. package/dist/index-D4ELpJXS.d.cts +0 -1
  121. package/dist/index-D6CnpA_r.d.cts +0 -1
  122. package/dist/index-DL0uimUT.d.mts +0 -1
  123. package/dist/plugin-B25Ri0YU.d.cts +0 -1769
  124. package/dist/plugin-DeXHG8Uc.d.mts +0 -1771
  125. package/dist/plugin-ifZVa20V.mjs +0 -1
  126. package/dist/plugin-pBKbb5K9.cjs +0 -0
  127. package/dist/types-U3zd8PTP.mjs +0 -1
  128. package/dist/types-o3zWarRp.cjs +0 -0
  129. package/dist/unplugin-BEFbB8JG.d.cts +0 -7
  130. package/dist/unplugin-BSSvRm8U.cjs +0 -4661
  131. package/dist/unplugin-BqoQMFR6.mjs +0 -4617
  132. package/dist/unplugin-CR_ujYMD.d.mts +0 -7
@@ -0,0 +1,69 @@
1
+ import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
2
+ import ts from "typescript";
3
+
4
+ //#region ../powerlines/src/types/tsconfig.d.ts
5
+ type ReflectionMode = "default" | "explicit" | "never";
6
+ type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
7
+ /**
8
+ * Defines the level of reflection to be used during the transpilation process.
9
+ *
10
+ * @remarks
11
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
12
+ * - `minimal` - Only the essential type information is captured.
13
+ * - `normal` - Additional type information is captured, including some contextual data.
14
+ * - `verbose` - All available type information is captured, including detailed contextual data.
15
+ */
16
+ type ReflectionLevel = "minimal" | "normal" | "verbose";
17
+ interface DeepkitOptions {
18
+ /**
19
+ * Either true to activate reflection for all files compiled using this tsconfig,
20
+ * or a list of globs/file paths relative to this tsconfig.json.
21
+ * Globs/file paths can be prefixed with a ! to exclude them.
22
+ */
23
+ reflection?: RawReflectionMode;
24
+ /**
25
+ * Defines the level of reflection to be used during the transpilation process.
26
+ *
27
+ * @remarks
28
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
29
+ * - `minimal` - Only the essential type information is captured.
30
+ * - `normal` - Additional type information is captured, including some contextual data.
31
+ * - `verbose` - All available type information is captured, including detailed contextual data.
32
+ */
33
+ reflectionLevel?: ReflectionLevel;
34
+ }
35
+ type TSCompilerOptions = CompilerOptions & DeepkitOptions;
36
+ /**
37
+ * The TypeScript compiler configuration.
38
+ *
39
+ * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
40
+ */
41
+ interface TSConfig extends Omit<TsConfigJson, "reflection"> {
42
+ /**
43
+ * Either true to activate reflection for all files compiled using this tsconfig,
44
+ * or a list of globs/file paths relative to this tsconfig.json.
45
+ * Globs/file paths can be prefixed with a ! to exclude them.
46
+ */
47
+ reflection?: RawReflectionMode;
48
+ /**
49
+ * Defines the level of reflection to be used during the transpilation process.
50
+ *
51
+ * @remarks
52
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
53
+ * - `minimal` - Only the essential type information is captured.
54
+ * - `normal` - Additional type information is captured, including some contextual data.
55
+ * - `verbose` - All available type information is captured, including detailed contextual data.
56
+ */
57
+ reflectionLevel?: ReflectionLevel;
58
+ /**
59
+ * Instructs the TypeScript compiler how to compile `.ts` files.
60
+ */
61
+ compilerOptions?: TSCompilerOptions;
62
+ }
63
+ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
64
+ originalTsconfigJson: TsConfigJson;
65
+ tsconfigJson: TSConfig;
66
+ tsconfigFilePath: string;
67
+ };
68
+ //#endregion
69
+ export { ParsedTypeScriptConfig, TSConfig };
@@ -0,0 +1,69 @@
1
+ import ts from "typescript";
2
+ import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
3
+
4
+ //#region ../powerlines/src/types/tsconfig.d.ts
5
+ type ReflectionMode = "default" | "explicit" | "never";
6
+ type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
7
+ /**
8
+ * Defines the level of reflection to be used during the transpilation process.
9
+ *
10
+ * @remarks
11
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
12
+ * - `minimal` - Only the essential type information is captured.
13
+ * - `normal` - Additional type information is captured, including some contextual data.
14
+ * - `verbose` - All available type information is captured, including detailed contextual data.
15
+ */
16
+ type ReflectionLevel = "minimal" | "normal" | "verbose";
17
+ interface DeepkitOptions {
18
+ /**
19
+ * Either true to activate reflection for all files compiled using this tsconfig,
20
+ * or a list of globs/file paths relative to this tsconfig.json.
21
+ * Globs/file paths can be prefixed with a ! to exclude them.
22
+ */
23
+ reflection?: RawReflectionMode;
24
+ /**
25
+ * Defines the level of reflection to be used during the transpilation process.
26
+ *
27
+ * @remarks
28
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
29
+ * - `minimal` - Only the essential type information is captured.
30
+ * - `normal` - Additional type information is captured, including some contextual data.
31
+ * - `verbose` - All available type information is captured, including detailed contextual data.
32
+ */
33
+ reflectionLevel?: ReflectionLevel;
34
+ }
35
+ type TSCompilerOptions = CompilerOptions & DeepkitOptions;
36
+ /**
37
+ * The TypeScript compiler configuration.
38
+ *
39
+ * @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
40
+ */
41
+ interface TSConfig extends Omit<TsConfigJson, "reflection"> {
42
+ /**
43
+ * Either true to activate reflection for all files compiled using this tsconfig,
44
+ * or a list of globs/file paths relative to this tsconfig.json.
45
+ * Globs/file paths can be prefixed with a ! to exclude them.
46
+ */
47
+ reflection?: RawReflectionMode;
48
+ /**
49
+ * Defines the level of reflection to be used during the transpilation process.
50
+ *
51
+ * @remarks
52
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
53
+ * - `minimal` - Only the essential type information is captured.
54
+ * - `normal` - Additional type information is captured, including some contextual data.
55
+ * - `verbose` - All available type information is captured, including detailed contextual data.
56
+ */
57
+ reflectionLevel?: ReflectionLevel;
58
+ /**
59
+ * Instructs the TypeScript compiler how to compile `.ts` files.
60
+ */
61
+ compilerOptions?: TSCompilerOptions;
62
+ }
63
+ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
64
+ originalTsconfigJson: TsConfigJson;
65
+ tsconfigJson: TSConfig;
66
+ tsconfigFilePath: string;
67
+ };
68
+ //#endregion
69
+ export { ParsedTypeScriptConfig, TSConfig };
@@ -1,2 +0,0 @@
1
- require('../plugin-pBKbb5K9.cjs');
2
- require('../types-o3zWarRp.cjs');
@@ -1,3 +1,2 @@
1
- import { a as __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-B25Ri0YU.cjs";
2
- import "../index-D4ELpJXS.cjs";
1
+ import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig } from "./plugin.cjs";
3
2
  export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig };
@@ -1,3 +1,2 @@
1
- import { a as __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-DeXHG8Uc.mjs";
2
- import "../index-9iG2qHLe.mjs";
1
+ import { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig } from "./plugin.mjs";
3
2
  export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig };
@@ -1,4 +1 @@
1
- import "../plugin-ifZVa20V.mjs";
2
- import "../types-U3zd8PTP.mjs";
3
-
4
1
  export { };
@@ -1 +0,0 @@
1
- require('../plugin-pBKbb5K9.cjs');
@@ -1,2 +1,13 @@
1
- import { a as __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-B25Ri0YU.cjs";
1
+ import { RolldownBuildConfig } from "../powerlines/src/types/build.cjs";
2
+ import { RolldownResolvedConfig } from "../powerlines/src/types/resolved.cjs";
3
+ import { PluginContext } from "../powerlines/src/types/context.cjs";
4
+
5
+ //#region src/types/plugin.d.ts
6
+ type RolldownPluginOptions = Partial<RolldownBuildConfig>;
7
+ type RolldownPluginResolvedConfig = RolldownResolvedConfig;
8
+ type RolldownPluginContext<TResolvedConfig extends RolldownPluginResolvedConfig = RolldownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
9
+ declare type __ΩRolldownPluginOptions = any[];
10
+ declare type __ΩRolldownPluginResolvedConfig = any[];
11
+ declare type __ΩRolldownPluginContext = any[];
12
+ //#endregion
2
13
  export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig };
@@ -1,2 +1,13 @@
1
- import { a as __ΩRolldownPluginOptions, i as __ΩRolldownPluginContext, n as RolldownPluginOptions, o as __ΩRolldownPluginResolvedConfig, r as RolldownPluginResolvedConfig, t as RolldownPluginContext } from "../plugin-DeXHG8Uc.mjs";
1
+ import { RolldownBuildConfig } from "../powerlines/src/types/build.mjs";
2
+ import { RolldownResolvedConfig } from "../powerlines/src/types/resolved.mjs";
3
+ import { PluginContext } from "../powerlines/src/types/context.mjs";
4
+
5
+ //#region src/types/plugin.d.ts
6
+ type RolldownPluginOptions = Partial<RolldownBuildConfig>;
7
+ type RolldownPluginResolvedConfig = RolldownResolvedConfig;
8
+ type RolldownPluginContext<TResolvedConfig extends RolldownPluginResolvedConfig = RolldownPluginResolvedConfig> = PluginContext<TResolvedConfig>;
9
+ declare type __ΩRolldownPluginOptions = any[];
10
+ declare type __ΩRolldownPluginResolvedConfig = any[];
11
+ declare type __ΩRolldownPluginContext = any[];
12
+ //#endregion
2
13
  export { RolldownPluginContext, RolldownPluginOptions, RolldownPluginResolvedConfig, __ΩRolldownPluginContext, __ΩRolldownPluginOptions, __ΩRolldownPluginResolvedConfig };
@@ -1,3 +1 @@
1
- import "../plugin-ifZVa20V.mjs";
2
-
3
1
  export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-rolldown",
3
- "version": "0.7.133",
3
+ "version": "0.7.134",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -152,15 +152,15 @@
152
152
  "@stryke/types": "^0.10.29",
153
153
  "defu": "^6.1.4",
154
154
  "jiti": "^2.6.1",
155
- "powerlines": "^0.36.27",
155
+ "powerlines": "^0.36.28",
156
156
  "rolldown": "1.0.0-beta.53",
157
157
  "unplugin": "3.0.0-beta.3"
158
158
  },
159
159
  "devDependencies": {
160
- "@powerlines/nx": "^0.11.53",
161
- "@powerlines/plugin-plugin": "^0.12.75",
160
+ "@powerlines/nx": "^0.11.54",
161
+ "@powerlines/plugin-plugin": "^0.12.76",
162
162
  "@types/node": "^24.10.4"
163
163
  },
164
164
  "publishConfig": { "access": "public" },
165
- "gitHead": "fbc59ce584fd0f78d90d2dbaa18f9c9267bd3b61"
165
+ "gitHead": "6891ff1330798e807c4caef6134df09d9f57686d"
166
166
  }
@@ -1 +0,0 @@
1
- export { };
File without changes
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };