@powerlines/plugin-tsc 0.2.66 → 0.2.68
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/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +1 -3
- package/dist/helpers/index.d.mts +1 -3
- package/dist/helpers/index.mjs +1 -1
- package/dist/helpers/type-check.cjs +4 -1
- package/dist/helpers/type-check.d.cts +11 -2
- package/dist/helpers/type-check.d.mts +11 -2
- package/dist/helpers/type-check.mjs +4 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +1 -1
- package/dist/powerlines/src/types/build.d.cts +139 -0
- package/dist/powerlines/src/types/build.d.mts +139 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +345 -0
- package/dist/powerlines/src/types/config.d.mts +345 -0
- package/dist/powerlines/src/types/context.d.cts +347 -0
- package/dist/powerlines/src/types/context.d.mts +348 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +1 -0
- package/dist/powerlines/src/types/plugin.d.cts +232 -0
- package/dist/powerlines/src/types/plugin.d.mts +232 -0
- package/dist/powerlines/src/types/resolved.d.cts +81 -0
- package/dist/powerlines/src/types/resolved.d.mts +81 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +1 -3
- package/dist/types/index.d.mts +1 -3
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +36 -2
- package/dist/types/plugin.d.mts +36 -2
- package/dist/types/plugin.mjs +1 -1
- package/package.json +4 -4
- package/dist/context-BWX-QSub.d.mts +0 -1636
- package/dist/context-D_zVRwKd.d.cts +0 -1636
- package/dist/helpers-CRPRhztf.mjs +0 -1
- package/dist/helpers-LF26RHol.cjs +0 -0
- package/dist/index-CUbWeWHc.d.mts +0 -1
- package/dist/index-D6CnpA_r.d.cts +0 -1
- package/dist/index-DL0uimUT.d.mts +0 -1
- package/dist/index-DWPDThxu.d.cts +0 -1
- package/dist/plugin-BjiGfRHE.mjs +0 -1
- package/dist/plugin-C4E6xLQB.d.mts +0 -35
- package/dist/plugin-DUluyNI2.d.cts +0 -35
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/type-check-C8A8lFiv.d.cts +0 -12
- package/dist/type-check-CbXMF6b-.cjs +0 -4
- package/dist/type-check-DFsQqE6T.d.mts +0 -12
- package/dist/type-check-VZ8glHmD.mjs +0 -4
- package/dist/types-n6NgD0QK.mjs +0 -1
- 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 { };
|
package/dist/plugin-BjiGfRHE.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { a as ResolvedConfig, n as PluginContext, r as UserConfig } from "./context-BWX-QSub.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-D_zVRwKd.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 };
|
package/dist/plugin-pBKbb5K9.cjs
DELETED
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { t as Context } from "./context-D_zVRwKd.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,12 +0,0 @@
|
|
|
1
|
-
import { t as Context } from "./context-BWX-QSub.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,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};
|
package/dist/types-n6NgD0QK.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
package/dist/types-o3zWarRp.cjs
DELETED
|
File without changes
|