@powerlines/plugin-tsc 0.2.65 → 0.2.67

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 +1 -0
  2. package/dist/helpers/index.cjs +1 -1
  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 -1
  6. package/dist/helpers/type-check.cjs +4 -1
  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 +4 -1
  10. package/dist/index.cjs +1 -1
  11. package/dist/index.d.cts +3 -5
  12. package/dist/index.d.mts +5 -5
  13. package/dist/index.mjs +1 -1
  14. package/dist/powerlines/src/types/build.d.cts +139 -0
  15. package/dist/powerlines/src/types/build.d.mts +139 -0
  16. package/dist/powerlines/src/types/commands.d.cts +8 -0
  17. package/dist/powerlines/src/types/commands.d.mts +9 -0
  18. package/dist/powerlines/src/types/config.d.cts +345 -0
  19. package/dist/powerlines/src/types/config.d.mts +345 -0
  20. package/dist/powerlines/src/types/context.d.cts +347 -0
  21. package/dist/powerlines/src/types/context.d.mts +348 -0
  22. package/dist/powerlines/src/types/fs.d.cts +458 -0
  23. package/dist/powerlines/src/types/fs.d.mts +458 -0
  24. package/dist/powerlines/src/types/hooks.d.mts +1 -0
  25. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  26. package/dist/powerlines/src/types/plugin.d.mts +232 -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 -1
  32. package/dist/types/index.d.cts +1 -3
  33. package/dist/types/index.d.mts +1 -3
  34. package/dist/types/index.mjs +1 -1
  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 +1 -1
  39. package/package.json +4 -4
  40. package/dist/context-BsDNgeyd.d.cts +0 -1639
  41. package/dist/context-FqGDC4yL.d.mts +0 -1639
  42. package/dist/helpers-CRPRhztf.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-BjiGfRHE.mjs +0 -1
  49. package/dist/plugin-Cv0rPxd6.d.mts +0 -35
  50. package/dist/plugin-WrB3-CRk.d.cts +0 -35
  51. package/dist/plugin-pBKbb5K9.cjs +0 -0
  52. package/dist/type-check-BXIV9uoc.d.mts +0 -12
  53. package/dist/type-check-CB7ycyqL.d.cts +0 -12
  54. package/dist/type-check-CbXMF6b-.cjs +0 -4
  55. package/dist/type-check-VZ8glHmD.mjs +0 -4
  56. package/dist/types-n6NgD0QK.mjs +0 -1
  57. package/dist/types-o3zWarRp.cjs +0 -0
@@ -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 { };
@@ -1 +0,0 @@
1
- export{};
@@ -1,35 +0,0 @@
1
- import { a as ResolvedConfig, n as PluginContext, r as UserConfig } from "./context-FqGDC4yL.mjs";
2
- import ts from "typescript";
3
-
4
- //#region src/types/plugin.d.ts
5
- type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
6
- /**
7
- * Whether to perform type checking during the `lint` task.
8
- *
9
- * @defaultValue false
10
- */
11
- typeCheck?: boolean;
12
- };
13
- interface TypeScriptCompilerPluginUserConfig extends UserConfig {
14
- transform: {
15
- /**
16
- * TypeScript Compiler transformation options
17
- */
18
- tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
19
- };
20
- }
21
- interface TypeScriptCompilerPluginResolvedConfig extends ResolvedConfig {
22
- transform: {
23
- /**
24
- * Resolved TypeScript Compiler transformation options
25
- */
26
- tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
27
- };
28
- }
29
- type TypeScriptCompilerPluginContext<TResolvedConfig extends TypeScriptCompilerPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig> = PluginContext<TResolvedConfig>;
30
- declare type __ΩTypeScriptCompilerPluginOptions = any[];
31
- declare type __ΩTypeScriptCompilerPluginUserConfig = any[];
32
- declare type __ΩTypeScriptCompilerPluginResolvedConfig = any[];
33
- declare type __ΩTypeScriptCompilerPluginContext = any[];
34
- //#endregion
35
- export { __ΩTypeScriptCompilerPluginContext as a, __ΩTypeScriptCompilerPluginUserConfig as c, TypeScriptCompilerPluginUserConfig as i, TypeScriptCompilerPluginOptions as n, __ΩTypeScriptCompilerPluginOptions as o, TypeScriptCompilerPluginResolvedConfig as r, __ΩTypeScriptCompilerPluginResolvedConfig as s, TypeScriptCompilerPluginContext as t };
@@ -1,35 +0,0 @@
1
- import { a as ResolvedConfig, n as PluginContext, r as UserConfig } from "./context-BsDNgeyd.cjs";
2
- import ts from "typescript";
3
-
4
- //#region src/types/plugin.d.ts
5
- type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
6
- /**
7
- * Whether to perform type checking during the `lint` task.
8
- *
9
- * @defaultValue false
10
- */
11
- typeCheck?: boolean;
12
- };
13
- interface TypeScriptCompilerPluginUserConfig extends UserConfig {
14
- transform: {
15
- /**
16
- * TypeScript Compiler transformation options
17
- */
18
- tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
19
- };
20
- }
21
- interface TypeScriptCompilerPluginResolvedConfig extends ResolvedConfig {
22
- transform: {
23
- /**
24
- * Resolved TypeScript Compiler transformation options
25
- */
26
- tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
27
- };
28
- }
29
- type TypeScriptCompilerPluginContext<TResolvedConfig extends TypeScriptCompilerPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig> = PluginContext<TResolvedConfig>;
30
- declare type __ΩTypeScriptCompilerPluginOptions = any[];
31
- declare type __ΩTypeScriptCompilerPluginUserConfig = any[];
32
- declare type __ΩTypeScriptCompilerPluginResolvedConfig = any[];
33
- declare type __ΩTypeScriptCompilerPluginContext = any[];
34
- //#endregion
35
- export { __ΩTypeScriptCompilerPluginContext as a, __ΩTypeScriptCompilerPluginUserConfig as c, TypeScriptCompilerPluginUserConfig as i, TypeScriptCompilerPluginOptions as n, __ΩTypeScriptCompilerPluginOptions as o, TypeScriptCompilerPluginResolvedConfig as r, __ΩTypeScriptCompilerPluginResolvedConfig as s, TypeScriptCompilerPluginContext as t };
File without changes
@@ -1,12 +0,0 @@
1
- import { t as Context } from "./context-FqGDC4yL.mjs";
2
-
3
- //#region src/helpers/type-check.d.ts
4
-
5
- /**
6
- * Perform type checks on the provided sources using TypeScript's compiler API.
7
- *
8
- * @param context - The build context containing information about the current build.
9
- */
10
- declare function typeCheck(context: Context): Promise<void>;
11
- //#endregion
12
- export { typeCheck as t };
@@ -1,12 +0,0 @@
1
- import { t as Context } from "./context-BsDNgeyd.cjs";
2
-
3
- //#region src/helpers/type-check.d.ts
4
-
5
- /**
6
- * Perform type checks on the provided sources using TypeScript's compiler API.
7
- *
8
- * @param context - The build context containing information about the current build.
9
- */
10
- declare function typeCheck(context: Context): Promise<void>;
11
- //#endregion
12
- export { typeCheck as t };
@@ -1,4 +0,0 @@
1
- const e=require(`./index.cjs`);let t=require(`typescript`);async function n(e){let n=e.program.emitToMemory(),r=[];n.getDiagnostics().forEach(e=>{e.getSourceFile()?.getBaseName()?r.push(`${e.getSourceFile()?.getBaseName()} (${(e.getLineNumber()??0)+1}): ${(0,t.flattenDiagnosticMessageText)(e.getMessageText().toString(),`
2
- `)}`):r.push((0,t.flattenDiagnosticMessageText)(e.getMessageText().toString(),`
3
- `))});let i=r.join(`
4
- `);if(i)throw Error(`TypeScript compilation failed: \n\n${i.length>5e3?`${i.slice(0,5e3)}...`:i}`)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -1,4 +0,0 @@
1
- import{flattenDiagnosticMessageText as e}from"typescript";async function t(t){let n=t.program.emitToMemory(),r=[];n.getDiagnostics().forEach(t=>{t.getSourceFile()?.getBaseName()?r.push(`${t.getSourceFile()?.getBaseName()} (${(t.getLineNumber()??0)+1}): ${e(t.getMessageText().toString(),`
2
- `)}`):r.push(e(t.getMessageText().toString(),`
3
- `))});let i=r.join(`
4
- `);if(i)throw Error(`TypeScript compilation failed: \n\n${i.length>5e3?`${i.slice(0,5e3)}...`:i}`)}export{t};
@@ -1 +0,0 @@
1
- export{};
File without changes