@powerlines/plugin-tsc 0.2.405 → 0.2.407

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/index.cjs CHANGED
@@ -2,11 +2,11 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
2
2
  const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
3
  const require_helpers_type_check = require('./helpers/type-check.cjs');
4
4
  require('./helpers/index.cjs');
5
- let _stryke_path_find = require("@stryke/path/find");
6
5
  let defu = require("defu");
7
- defu = require_runtime.__toESM(defu);
6
+ defu = require_runtime.__toESM(defu, 1);
7
+ let powerlines_plugin_utils = require("powerlines/plugin-utils");
8
8
  let typescript = require("typescript");
9
- typescript = require_runtime.__toESM(typescript);
9
+ typescript = require_runtime.__toESM(typescript, 1);
10
10
 
11
11
  //#region src/index.ts
12
12
  /**
@@ -20,34 +20,43 @@ const plugin = (options = {}) => {
20
20
  name: "tsc",
21
21
  config() {
22
22
  this.trace("Merging TypeScript Compiler plugin configuration");
23
- return { tsc: (0, defu.default)(options ?? {}, { typeCheck: false }) };
23
+ return { tsc: (0, defu.default)(options ?? {}, {
24
+ typeCheck: false,
25
+ filter: { id: {
26
+ include: /\.(?:[cm]?ts|tsx)(?=\s*$)/i,
27
+ exclude: /\.(?:d|spec|test)\.(?:[cm]?ts|tsx)(?=\s*$)/i
28
+ } }
29
+ }) };
24
30
  },
25
31
  async lint() {
26
32
  if (this.config.tsc.typeCheck) await require_helpers_type_check.typeCheck(this);
27
33
  },
28
- async transform(code, id) {
29
- if ((0, _stryke_path_find.findFileExtensionSafe)(id).toLowerCase() !== "ts" || id.endsWith(".d.ts")) return {
30
- code,
31
- id
32
- };
33
- const result = typescript.default.transpileModule(code, {
34
- ...this.config.tsc,
35
- compilerOptions: {
36
- ...this.tsconfig.options,
37
- ...this.config.tsc.compilerOptions
38
- },
39
- fileName: id
40
- });
41
- if (result.diagnostics && result.diagnostics.length > 0 && result.diagnostics?.some((diagnostic) => diagnostic.category === typescript.default.DiagnosticCategory.Error)) throw new Error(`TypeScript Compiler - TypeScript transpilation errors in file: ${id}\n${typescript.default.formatDiagnostics(result.diagnostics, {
42
- getCanonicalFileName: (fileName) => typescript.default.sys.useCaseSensitiveFileNames ? fileName : fileName.toLowerCase(),
43
- getCurrentDirectory: () => typescript.default.sys.getCurrentDirectory(),
44
- getNewLine: () => typescript.default.sys.newLine
45
- })}`);
46
- if (!result.outputText) throw new Error(`TypeScript Compiler - No output generated for file during TypeScript transpilation: ${id}`);
47
- return {
48
- code: result.outputText,
49
- id
50
- };
34
+ transform: {
35
+ filter: { id: { exclude: /\.(?:[cm]?js|jsx)(?=\s*$)/i } },
36
+ async handler(code, id) {
37
+ if (!(0, powerlines_plugin_utils.createFilterForTransform)(this.config.tsc.filter?.id, this.config.tsc.filter?.code)?.(id, code)) return {
38
+ code,
39
+ id
40
+ };
41
+ const result = typescript.default.transpileModule(code, {
42
+ ...this.config.tsc,
43
+ compilerOptions: {
44
+ ...this.tsconfig.options,
45
+ ...this.config.tsc.compilerOptions
46
+ },
47
+ fileName: id
48
+ });
49
+ if (result.diagnostics && result.diagnostics.length > 0 && result.diagnostics?.some((diagnostic) => diagnostic.category === typescript.default.DiagnosticCategory.Error)) throw new Error(`TypeScript Compiler - TypeScript transpilation errors in file: ${id}\n${typescript.default.formatDiagnostics(result.diagnostics, {
50
+ getCanonicalFileName: (fileName) => typescript.default.sys.useCaseSensitiveFileNames ? fileName : fileName.toLowerCase(),
51
+ getCurrentDirectory: () => typescript.default.sys.getCurrentDirectory(),
52
+ getNewLine: () => typescript.default.sys.newLine
53
+ })}`);
54
+ if (!result.outputText) throw new Error(`TypeScript Compiler - No output generated for file during TypeScript transpilation: ${id}`);
55
+ return {
56
+ code: result.outputText,
57
+ id
58
+ };
59
+ }
51
60
  }
52
61
  };
53
62
  };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { typeCheck } from "./helpers/type-check.mjs";
2
2
  import "./helpers/index.mjs";
3
- import { findFileExtensionSafe } from "@stryke/path/find";
4
3
  import defu from "defu";
4
+ import { createFilterForTransform } from "powerlines/plugin-utils";
5
5
  import ts from "typescript";
6
6
 
7
7
  //#region src/index.ts
@@ -16,34 +16,43 @@ const plugin = (options = {}) => {
16
16
  name: "tsc",
17
17
  config() {
18
18
  this.trace("Merging TypeScript Compiler plugin configuration");
19
- return { tsc: defu(options ?? {}, { typeCheck: false }) };
19
+ return { tsc: defu(options ?? {}, {
20
+ typeCheck: false,
21
+ filter: { id: {
22
+ include: /\.(?:[cm]?ts|tsx)(?=\s*$)/i,
23
+ exclude: /\.(?:d|spec|test)\.(?:[cm]?ts|tsx)(?=\s*$)/i
24
+ } }
25
+ }) };
20
26
  },
21
27
  async lint() {
22
28
  if (this.config.tsc.typeCheck) await typeCheck(this);
23
29
  },
24
- async transform(code, id) {
25
- if (findFileExtensionSafe(id).toLowerCase() !== "ts" || id.endsWith(".d.ts")) return {
26
- code,
27
- id
28
- };
29
- const result = ts.transpileModule(code, {
30
- ...this.config.tsc,
31
- compilerOptions: {
32
- ...this.tsconfig.options,
33
- ...this.config.tsc.compilerOptions
34
- },
35
- fileName: id
36
- });
37
- if (result.diagnostics && result.diagnostics.length > 0 && result.diagnostics?.some((diagnostic) => diagnostic.category === ts.DiagnosticCategory.Error)) throw new Error(`TypeScript Compiler - TypeScript transpilation errors in file: ${id}\n${ts.formatDiagnostics(result.diagnostics, {
38
- getCanonicalFileName: (fileName) => ts.sys.useCaseSensitiveFileNames ? fileName : fileName.toLowerCase(),
39
- getCurrentDirectory: () => ts.sys.getCurrentDirectory(),
40
- getNewLine: () => ts.sys.newLine
41
- })}`);
42
- if (!result.outputText) throw new Error(`TypeScript Compiler - No output generated for file during TypeScript transpilation: ${id}`);
43
- return {
44
- code: result.outputText,
45
- id
46
- };
30
+ transform: {
31
+ filter: { id: { exclude: /\.(?:[cm]?js|jsx)(?=\s*$)/i } },
32
+ async handler(code, id) {
33
+ if (!createFilterForTransform(this.config.tsc.filter?.id, this.config.tsc.filter?.code)?.(id, code)) return {
34
+ code,
35
+ id
36
+ };
37
+ const result = ts.transpileModule(code, {
38
+ ...this.config.tsc,
39
+ compilerOptions: {
40
+ ...this.tsconfig.options,
41
+ ...this.config.tsc.compilerOptions
42
+ },
43
+ fileName: id
44
+ });
45
+ if (result.diagnostics && result.diagnostics.length > 0 && result.diagnostics?.some((diagnostic) => diagnostic.category === ts.DiagnosticCategory.Error)) throw new Error(`TypeScript Compiler - TypeScript transpilation errors in file: ${id}\n${ts.formatDiagnostics(result.diagnostics, {
46
+ getCanonicalFileName: (fileName) => ts.sys.useCaseSensitiveFileNames ? fileName : fileName.toLowerCase(),
47
+ getCurrentDirectory: () => ts.sys.getCurrentDirectory(),
48
+ getNewLine: () => ts.sys.newLine
49
+ })}`);
50
+ if (!result.outputText) throw new Error(`TypeScript Compiler - No output generated for file during TypeScript transpilation: ${id}`);
51
+ return {
52
+ code: result.outputText,
53
+ id
54
+ };
55
+ }
47
56
  }
48
57
  };
49
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { findFileExtensionSafe } from \"@stryke/path/find\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport ts from \"typescript\";\nimport { typeCheck } from \"./helpers/type-check\";\nimport {\n TypeScriptCompilerPluginContext,\n TypeScriptCompilerPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n tsc?: TypeScriptCompilerPluginOptions;\n }\n}\n\n/**\n * TypeScript Compiler plugin for Powerlines.\n *\n * @param options - The TypeScript Compiler plugin user configuration options.\n * @returns A Powerlines plugin that integrates TypeScript Compiler transformations.\n */\nexport const plugin = <\n TContext extends TypeScriptCompilerPluginContext =\n TypeScriptCompilerPluginContext\n>(\n options: TypeScriptCompilerPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsc\",\n config() {\n this.trace(\"Merging TypeScript Compiler plugin configuration\");\n\n return {\n tsc: defu(options ?? {}, {\n typeCheck: false\n })\n };\n },\n async lint() {\n if (this.config.tsc.typeCheck) {\n await typeCheck(this);\n }\n },\n async transform(code: string, id: string) {\n if (\n findFileExtensionSafe(id).toLowerCase() !== \"ts\" ||\n id.endsWith(\".d.ts\")\n ) {\n return { code, id };\n }\n\n const result = ts.transpileModule(code, {\n ...this.config.tsc,\n compilerOptions: {\n ...this.tsconfig.options,\n ...this.config.tsc.compilerOptions\n },\n fileName: id\n });\n if (\n result.diagnostics &&\n result.diagnostics.length > 0 &&\n result.diagnostics?.some(\n diagnostic => diagnostic.category === ts.DiagnosticCategory.Error\n )\n ) {\n throw new Error(\n `TypeScript Compiler - TypeScript transpilation errors in file: ${id}\\n${ts.formatDiagnostics(\n result.diagnostics,\n {\n getCanonicalFileName: fileName =>\n ts.sys.useCaseSensitiveFileNames\n ? fileName\n : fileName.toLowerCase(),\n getCurrentDirectory: () => ts.sys.getCurrentDirectory(),\n getNewLine: () => ts.sys.newLine\n }\n )}`\n );\n }\n\n if (!result.outputText) {\n throw new Error(\n `TypeScript Compiler - No output generated for file during TypeScript transpilation: ${id}`\n );\n }\n\n return { code: result.outputText, id };\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AA2CA,MAAa,UAIX,UAA2C,EAAE,KACxB;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MAAM,mDAAmD;AAE9D,UAAO,EACL,KAAK,KAAK,WAAW,EAAE,EAAE,EACvB,WAAW,OACZ,CAAC,EACH;;EAEH,MAAM,OAAO;AACX,OAAI,KAAK,OAAO,IAAI,UAClB,OAAM,UAAU,KAAK;;EAGzB,MAAM,UAAU,MAAc,IAAY;AACxC,OACE,sBAAsB,GAAG,CAAC,aAAa,KAAK,QAC5C,GAAG,SAAS,QAAQ,CAEpB,QAAO;IAAE;IAAM;IAAI;GAGrB,MAAM,SAAS,GAAG,gBAAgB,MAAM;IACtC,GAAG,KAAK,OAAO;IACf,iBAAiB;KACf,GAAG,KAAK,SAAS;KACjB,GAAG,KAAK,OAAO,IAAI;KACpB;IACD,UAAU;IACX,CAAC;AACF,OACE,OAAO,eACP,OAAO,YAAY,SAAS,KAC5B,OAAO,aAAa,MAClB,eAAc,WAAW,aAAa,GAAG,mBAAmB,MAC7D,CAED,OAAM,IAAI,MACR,kEAAkE,GAAG,IAAI,GAAG,kBAC1E,OAAO,aACP;IACE,uBAAsB,aACpB,GAAG,IAAI,4BACH,WACA,SAAS,aAAa;IAC5B,2BAA2B,GAAG,IAAI,qBAAqB;IACvD,kBAAkB,GAAG,IAAI;IAC1B,CACF,GACF;AAGH,OAAI,CAAC,OAAO,WACV,OAAM,IAAI,MACR,uFAAuF,KACxF;AAGH,UAAO;IAAE,MAAM,OAAO;IAAY;IAAI;;EAEzC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { createFilterForTransform } from \"powerlines/plugin-utils\";\nimport ts from \"typescript\";\nimport { typeCheck } from \"./helpers/type-check\";\nimport {\n TypeScriptCompilerPluginContext,\n TypeScriptCompilerPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n tsc?: TypeScriptCompilerPluginOptions;\n }\n}\n\n/**\n * TypeScript Compiler plugin for Powerlines.\n *\n * @param options - The TypeScript Compiler plugin user configuration options.\n * @returns A Powerlines plugin that integrates TypeScript Compiler transformations.\n */\nexport const plugin = <\n TContext extends TypeScriptCompilerPluginContext =\n TypeScriptCompilerPluginContext\n>(\n options: TypeScriptCompilerPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsc\",\n config() {\n this.trace(\"Merging TypeScript Compiler plugin configuration\");\n\n return {\n tsc: defu(options ?? {}, {\n typeCheck: false,\n filter: {\n id: {\n include: /\\.(?:[cm]?ts|tsx)(?=\\s*$)/i,\n exclude: /\\.(?:d|spec|test)\\.(?:[cm]?ts|tsx)(?=\\s*$)/i\n }\n }\n })\n };\n },\n async lint() {\n if (this.config.tsc.typeCheck) {\n await typeCheck(this);\n }\n },\n transform: {\n filter: {\n id: { exclude: /\\.(?:[cm]?js|jsx)(?=\\s*$)/i }\n },\n async handler(code: string, id: string) {\n if (\n !createFilterForTransform(\n this.config.tsc.filter?.id,\n this.config.tsc.filter?.code\n )?.(id, code)\n ) {\n return { code, id };\n }\n\n const result = ts.transpileModule(code, {\n ...this.config.tsc,\n compilerOptions: {\n ...this.tsconfig.options,\n ...this.config.tsc.compilerOptions\n },\n fileName: id\n });\n if (\n result.diagnostics &&\n result.diagnostics.length > 0 &&\n result.diagnostics?.some(\n diagnostic => diagnostic.category === ts.DiagnosticCategory.Error\n )\n ) {\n throw new Error(\n `TypeScript Compiler - TypeScript transpilation errors in file: ${id}\\n${ts.formatDiagnostics(\n result.diagnostics,\n {\n getCanonicalFileName: fileName =>\n ts.sys.useCaseSensitiveFileNames\n ? fileName\n : fileName.toLowerCase(),\n getCurrentDirectory: () => ts.sys.getCurrentDirectory(),\n getNewLine: () => ts.sys.newLine\n }\n )}`\n );\n }\n\n if (!result.outputText) {\n throw new Error(\n `TypeScript Compiler - No output generated for file during TypeScript transpilation: ${id}`\n );\n }\n\n return { code: result.outputText, id };\n }\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AA2CA,MAAa,UAIX,UAA2C,EAAE,KACxB;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MAAM,mDAAmD;AAE9D,UAAO,EACL,KAAK,KAAK,WAAW,EAAE,EAAE;IACvB,WAAW;IACX,QAAQ,EACN,IAAI;KACF,SAAS;KACT,SAAS;KACV,EACF;IACF,CAAC,EACH;;EAEH,MAAM,OAAO;AACX,OAAI,KAAK,OAAO,IAAI,UAClB,OAAM,UAAU,KAAK;;EAGzB,WAAW;GACT,QAAQ,EACN,IAAI,EAAE,SAAS,8BAA8B,EAC9C;GACD,MAAM,QAAQ,MAAc,IAAY;AACtC,QACE,CAAC,yBACC,KAAK,OAAO,IAAI,QAAQ,IACxB,KAAK,OAAO,IAAI,QAAQ,KACzB,GAAG,IAAI,KAAK,CAEb,QAAO;KAAE;KAAM;KAAI;IAGrB,MAAM,SAAS,GAAG,gBAAgB,MAAM;KACtC,GAAG,KAAK,OAAO;KACf,iBAAiB;MACf,GAAG,KAAK,SAAS;MACjB,GAAG,KAAK,OAAO,IAAI;MACpB;KACD,UAAU;KACX,CAAC;AACF,QACE,OAAO,eACP,OAAO,YAAY,SAAS,KAC5B,OAAO,aAAa,MAClB,eAAc,WAAW,aAAa,GAAG,mBAAmB,MAC7D,CAED,OAAM,IAAI,MACR,kEAAkE,GAAG,IAAI,GAAG,kBAC1E,OAAO,aACP;KACE,uBAAsB,aACpB,GAAG,IAAI,4BACH,WACA,SAAS,aAAa;KAC5B,2BAA2B,GAAG,IAAI,qBAAqB;KACvD,kBAAkB,GAAG,IAAI;KAC1B,CACF,GACF;AAGH,QAAI,CAAC,OAAO,WACV,OAAM,IAAI,MACR,uFAAuF,KACxF;AAGH,WAAO;KAAE,MAAM,OAAO;KAAY;KAAI;;GAEzC;EACF"}
@@ -1,8 +1,15 @@
1
1
  import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
2
2
  import ts from "typescript";
3
+ import { HookFilter } from "unplugin";
3
4
 
4
5
  //#region src/types/plugin.d.ts
5
6
  type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
7
+ /**
8
+ * Filter configuration to determine which files should be processed by the plugin's transformation hook.
9
+ *
10
+ * @defaultValue \{ id: /\.(?:(?:(?<dts>d)\.)?(?<type>[cm])?ts|tsx)(?=\\s*$)/ \}
11
+ */
12
+ filter?: HookFilter;
6
13
  /**
7
14
  * Whether to perform type checking during the `lint` task.
8
15
  *
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,+BAAA,GAAkC,OAAA,CAC5C,IAAA,CAAK,EAAA,CAAG,gBAAA;;AADV;;;;EAQE,SAAA;AAAA;AAAA,UAGe,kCAAA,SAA2C,UAAA;EAC1D,GAAA,EAAK,OAAA,CAAQ,IAAA,CAAK,+BAAA,kBAChB,QAAA,CAAS,IAAA,CAAK,+BAAA;AAAA;AAAA,UAGD,sCAAA,SAA+C,cAAA;EAfzD;;;EAmBL,GAAA,EAAK,OAAA,CAAQ,IAAA,CAAK,+BAAA,kBAChB,QAAA,CAAS,IAAA,CAAK,+BAAA;AAAA;AAAA,KAGN,+BAAA,yBACc,sCAAA,GACtB,sCAAA,IACA,aAAA,CAAc,eAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;KAsBY,+BAAA,GAAkC,OAAA,CAC5C,IAAA,CAAK,EAAA,CAAG,gBAAA;;AADV;;;;EAQE,MAAA,GAAS,UAAA;EARmC;;;;;EAe5C,SAAA;AAAA;AAAA,UAGe,kCAAA,SAA2C,UAAA;EAC1D,GAAA,EAAK,OAAA,CAAQ,IAAA,CAAK,+BAAA,kBAChB,QAAA,CAAS,IAAA,CAAK,+BAAA;AAAA;AAAA,UAGD,sCAAA,SAA+C,cAAA;EARrD;;AAGX;EASE,GAAA,EAAK,OAAA,CAAQ,IAAA,CAAK,+BAAA,kBAChB,QAAA,CAAS,IAAA,CAAK,+BAAA;AAAA;AAAA,KAGN,+BAAA,yBACc,sCAAA,GACtB,sCAAA,IACA,aAAA,CAAc,eAAA"}
@@ -1,8 +1,15 @@
1
1
  import ts from "typescript";
2
2
  import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
+ import { HookFilter } from "unplugin";
3
4
 
4
5
  //#region src/types/plugin.d.ts
5
6
  type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
7
+ /**
8
+ * Filter configuration to determine which files should be processed by the plugin's transformation hook.
9
+ *
10
+ * @defaultValue \{ id: /\.(?:(?:(?<dts>d)\.)?(?<type>[cm])?ts|tsx)(?=\\s*$)/ \}
11
+ */
12
+ filter?: HookFilter;
6
13
  /**
7
14
  * Whether to perform type checking during the `lint` task.
8
15
  *
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,+BAAA,GAAkC,OAAA,CAC5C,IAAA,CAAK,EAAA,CAAG,gBAAA;;AADV;;;;EAQE,SAAA;AAAA;AAAA,UAGe,kCAAA,SAA2C,UAAA;EAC1D,GAAA,EAAK,OAAA,CAAQ,IAAA,CAAK,+BAAA,kBAChB,QAAA,CAAS,IAAA,CAAK,+BAAA;AAAA;AAAA,UAGD,sCAAA,SAA+C,cAAA;EAfzD;;;EAmBL,GAAA,EAAK,OAAA,CAAQ,IAAA,CAAK,+BAAA,kBAChB,QAAA,CAAS,IAAA,CAAK,+BAAA;AAAA;AAAA,KAGN,+BAAA,yBACc,sCAAA,GACtB,sCAAA,IACA,aAAA,CAAc,eAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;KAsBY,+BAAA,GAAkC,OAAA,CAC5C,IAAA,CAAK,EAAA,CAAG,gBAAA;;AADV;;;;EAQE,MAAA,GAAS,UAAA;EARmC;;;;;EAe5C,SAAA;AAAA;AAAA,UAGe,kCAAA,SAA2C,UAAA;EAC1D,GAAA,EAAK,OAAA,CAAQ,IAAA,CAAK,+BAAA,kBAChB,QAAA,CAAS,IAAA,CAAK,+BAAA;AAAA;AAAA,UAGD,sCAAA,SAA+C,cAAA;EARrD;;AAGX;EASE,GAAA,EAAK,OAAA,CAAQ,IAAA,CAAK,+BAAA,kBAChB,QAAA,CAAS,IAAA,CAAK,+BAAA;AAAA;AAAA,KAGN,+BAAA,yBACc,sCAAA,GACtB,sCAAA,IACA,aAAA,CAAc,eAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsc",
3
- "version": "0.2.405",
3
+ "version": "0.2.407",
4
4
  "type": "module",
5
5
  "description": "A package containing the TypeScript compiler plugin for Powerlines.",
6
6
  "repository": {
@@ -120,13 +120,14 @@
120
120
  "dependencies": {
121
121
  "@stryke/path": "^0.27.4",
122
122
  "defu": "^6.1.7",
123
- "powerlines": "^0.42.38",
123
+ "powerlines": "^0.42.40",
124
+ "unplugin": "^3.0.0",
124
125
  "typescript": "^5.9.3"
125
126
  },
126
127
  "devDependencies": {
127
- "@powerlines/plugin-plugin": "^0.12.348",
128
+ "@powerlines/plugin-plugin": "^0.12.350",
128
129
  "@types/node": "^25.6.0"
129
130
  },
130
131
  "publishConfig": { "access": "public" },
131
- "gitHead": "9cec72510580fd8ee2cafc64ccae8ca65e7746a4"
132
+ "gitHead": "53fe118324ce5a30936fc934f219781021d72844"
132
133
  }