@powerlines/plugin-tsc 0.2.130 → 0.2.132

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 (57) 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/type-check.cjs +21 -2
  7. package/dist/helpers/type-check.d.cts +11 -2
  8. package/dist/helpers/type-check.d.mts +11 -2
  9. package/dist/helpers/type-check.mjs +19 -1
  10. package/dist/index.cjs +12 -36
  11. package/dist/index.d.cts +3 -5
  12. package/dist/index.d.mts +5 -5
  13. package/dist/index.mjs +7 -4
  14. package/dist/powerlines/src/types/babel.d.mts +2 -0
  15. package/dist/powerlines/src/types/build.d.cts +145 -0
  16. package/dist/powerlines/src/types/build.d.mts +145 -0
  17. package/dist/powerlines/src/types/commands.d.cts +8 -0
  18. package/dist/powerlines/src/types/commands.d.mts +9 -0
  19. package/dist/powerlines/src/types/config.d.cts +376 -0
  20. package/dist/powerlines/src/types/config.d.mts +376 -0
  21. package/dist/powerlines/src/types/context.d.cts +403 -0
  22. package/dist/powerlines/src/types/context.d.mts +403 -0
  23. package/dist/powerlines/src/types/fs.d.cts +486 -0
  24. package/dist/powerlines/src/types/fs.d.mts +486 -0
  25. package/dist/powerlines/src/types/plugin.d.cts +231 -0
  26. package/dist/powerlines/src/types/plugin.d.mts +231 -0
  27. package/dist/powerlines/src/types/resolved.d.cts +81 -0
  28. package/dist/powerlines/src/types/resolved.d.mts +81 -0
  29. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  30. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  31. package/dist/types/index.cjs +0 -2
  32. package/dist/types/index.d.cts +1 -3
  33. package/dist/types/index.d.mts +1 -3
  34. package/dist/types/index.mjs +0 -3
  35. package/dist/types/plugin.cjs +0 -1
  36. package/dist/types/plugin.d.cts +36 -2
  37. package/dist/types/plugin.d.mts +36 -2
  38. package/dist/types/plugin.mjs +0 -2
  39. package/package.json +5 -4
  40. package/dist/context-Wc7vQcpF.d.cts +0 -1749
  41. package/dist/context-YG82wM_K.d.mts +0 -1749
  42. package/dist/helpers-B15z10jN.mjs +0 -1
  43. package/dist/helpers-LF26RHol.cjs +0 -0
  44. package/dist/index-CUbWeWHc.d.mts +0 -1
  45. package/dist/index-D6CnpA_r.d.cts +0 -1
  46. package/dist/index-DL0uimUT.d.mts +0 -1
  47. package/dist/index-DWPDThxu.d.cts +0 -1
  48. package/dist/plugin-B8O1Fqy6.d.mts +0 -35
  49. package/dist/plugin-DjevpZ1o.d.cts +0 -35
  50. package/dist/plugin-ifZVa20V.mjs +0 -1
  51. package/dist/plugin-pBKbb5K9.cjs +0 -0
  52. package/dist/type-check-BM6tW_xw.cjs +0 -27
  53. package/dist/type-check-Bkbb5EkH.mjs +0 -21
  54. package/dist/type-check-COd0vfQK.d.cts +0 -12
  55. package/dist/type-check-DrcpU2r1.d.mts +0 -12
  56. package/dist/types-U3zd8PTP.mjs +0 -1
  57. package/dist/types-o3zWarRp.cjs +0 -0
@@ -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,4 +1,2 @@
1
- import "../context-Wc7vQcpF.cjs";
2
- import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "../plugin-DjevpZ1o.cjs";
3
- import "../index-DWPDThxu.cjs";
1
+ import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "./plugin.cjs";
4
2
  export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig };
@@ -1,4 +1,2 @@
1
- import "../context-YG82wM_K.mjs";
2
- import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "../plugin-B8O1Fqy6.mjs";
3
- import "../index-CUbWeWHc.mjs";
1
+ import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "./plugin.mjs";
4
2
  export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig };
@@ -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,3 +1,37 @@
1
- import "../context-Wc7vQcpF.cjs";
2
- import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "../plugin-DjevpZ1o.cjs";
1
+ import { ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
2
+ import { UserConfig } from "../powerlines/src/types/config.cjs";
3
+ import { PluginContext } from "../powerlines/src/types/context.cjs";
4
+ import ts from "typescript";
5
+
6
+ //#region src/types/plugin.d.ts
7
+ type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
8
+ /**
9
+ * Whether to perform type checking during the `lint` task.
10
+ *
11
+ * @defaultValue false
12
+ */
13
+ typeCheck?: boolean;
14
+ };
15
+ interface TypeScriptCompilerPluginUserConfig extends UserConfig {
16
+ transform: {
17
+ /**
18
+ * TypeScript Compiler transformation options
19
+ */
20
+ tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
21
+ };
22
+ }
23
+ interface TypeScriptCompilerPluginResolvedConfig extends ResolvedConfig {
24
+ transform: {
25
+ /**
26
+ * Resolved TypeScript Compiler transformation options
27
+ */
28
+ tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
29
+ };
30
+ }
31
+ type TypeScriptCompilerPluginContext<TResolvedConfig extends TypeScriptCompilerPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig> = PluginContext<TResolvedConfig>;
32
+ declare type __ΩTypeScriptCompilerPluginOptions = any[];
33
+ declare type __ΩTypeScriptCompilerPluginUserConfig = any[];
34
+ declare type __ΩTypeScriptCompilerPluginResolvedConfig = any[];
35
+ declare type __ΩTypeScriptCompilerPluginContext = any[];
36
+ //#endregion
3
37
  export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig };
@@ -1,3 +1,37 @@
1
- import "../context-YG82wM_K.mjs";
2
- import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "../plugin-B8O1Fqy6.mjs";
1
+ import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
2
+ import { UserConfig } from "../powerlines/src/types/config.mjs";
3
+ import { PluginContext } from "../powerlines/src/types/context.mjs";
4
+ import ts from "typescript";
5
+
6
+ //#region src/types/plugin.d.ts
7
+ type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
8
+ /**
9
+ * Whether to perform type checking during the `lint` task.
10
+ *
11
+ * @defaultValue false
12
+ */
13
+ typeCheck?: boolean;
14
+ };
15
+ interface TypeScriptCompilerPluginUserConfig extends UserConfig {
16
+ transform: {
17
+ /**
18
+ * TypeScript Compiler transformation options
19
+ */
20
+ tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
21
+ };
22
+ }
23
+ interface TypeScriptCompilerPluginResolvedConfig extends ResolvedConfig {
24
+ transform: {
25
+ /**
26
+ * Resolved TypeScript Compiler transformation options
27
+ */
28
+ tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
29
+ };
30
+ }
31
+ type TypeScriptCompilerPluginContext<TResolvedConfig extends TypeScriptCompilerPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig> = PluginContext<TResolvedConfig>;
32
+ declare type __ΩTypeScriptCompilerPluginOptions = any[];
33
+ declare type __ΩTypeScriptCompilerPluginUserConfig = any[];
34
+ declare type __ΩTypeScriptCompilerPluginResolvedConfig = any[];
35
+ declare type __ΩTypeScriptCompilerPluginContext = any[];
36
+ //#endregion
3
37
  export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig };
@@ -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-tsc",
3
- "version": "0.2.130",
3
+ "version": "0.2.132",
4
4
  "type": "module",
5
5
  "description": "A package containing the TypeScript compiler plugin for Powerlines.",
6
6
  "repository": {
@@ -146,13 +146,14 @@
146
146
  "keywords": ["tsc", "powerlines", "storm-software", "powerlines-plugin"],
147
147
  "dependencies": {
148
148
  "defu": "^6.1.4",
149
- "powerlines": "^0.36.26",
149
+ "@stryke/path": "^0.24.1",
150
+ "powerlines": "^0.36.28",
150
151
  "typescript": "^5.9.3"
151
152
  },
152
153
  "devDependencies": {
153
- "@powerlines/nx": "^0.11.52",
154
+ "@powerlines/nx": "^0.11.54",
154
155
  "@types/node": "^24.10.4"
155
156
  },
156
157
  "publishConfig": { "access": "public" },
157
- "gitHead": "a703a2dd9be6175a67a9bf4847d0217be4e920af"
158
+ "gitHead": "6891ff1330798e807c4caef6134df09d9f57686d"
158
159
  }