@powerlines/plugin-tsc 0.2.186 → 0.2.188
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/packages/plugin-tsc/src/helpers/index.cjs +3 -0
- package/dist/{helpers → packages/plugin-tsc/src/helpers}/type-check.cjs +1 -1
- package/dist/{helpers → packages/plugin-tsc/src/helpers}/type-check.d.cts +1 -1
- package/dist/{helpers → packages/plugin-tsc/src/helpers}/type-check.d.mts +1 -1
- package/dist/{types → packages/plugin-tsc/src/types}/plugin.d.cts +3 -3
- package/dist/{types → packages/plugin-tsc/src/types}/plugin.d.mts +3 -3
- package/dist/{index.cjs → src/index.cjs} +5 -5
- package/dist/{index.d.cts → src/index.d.cts} +3 -3
- package/dist/{index.d.mts → src/index.d.mts} +5 -5
- package/dist/{index.mjs → src/index.mjs} +2 -2
- package/package.json +4 -4
- package/dist/helpers/index.cjs +0 -3
- /package/dist/{helpers → packages/plugin-tsc/src/helpers}/index.d.cts +0 -0
- /package/dist/{helpers → packages/plugin-tsc/src/helpers}/index.d.mts +0 -0
- /package/dist/{helpers → packages/plugin-tsc/src/helpers}/index.mjs +0 -0
- /package/dist/{helpers → packages/plugin-tsc/src/helpers}/type-check.mjs +0 -0
- /package/dist/{types → packages/plugin-tsc/src/types}/index.cjs +0 -0
- /package/dist/{types → packages/plugin-tsc/src/types}/index.d.cts +0 -0
- /package/dist/{types → packages/plugin-tsc/src/types}/index.d.mts +0 -0
- /package/dist/{types → packages/plugin-tsc/src/types}/index.mjs +0 -0
- /package/dist/{types → packages/plugin-tsc/src/types}/plugin.cjs +0 -0
- /package/dist/{types → packages/plugin-tsc/src/types}/plugin.mjs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResolvedConfig } from "
|
|
2
|
-
import { UserConfig } from "
|
|
3
|
-
import { PluginContext } from "
|
|
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
4
|
import ts from "typescript";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ResolvedConfig } from "
|
|
2
|
-
import { UserConfig } from "
|
|
3
|
-
import { PluginContext } from "
|
|
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
4
|
import ts from "typescript";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_rolldown_runtime = require('
|
|
3
|
-
const
|
|
4
|
-
require('
|
|
2
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_packages_plugin_tsc_src_helpers_type_check = require('../packages/plugin-tsc/src/helpers/type-check.cjs');
|
|
4
|
+
require('../packages/plugin-tsc/src/helpers/index.cjs');
|
|
5
5
|
let __stryke_path_find = require("@stryke/path/find");
|
|
6
6
|
let defu = require("defu");
|
|
7
7
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
@@ -23,7 +23,7 @@ const plugin = (options = {}) => {
|
|
|
23
23
|
return { transform: { tsc: (0, defu.default)(options ?? {}, { typeCheck: false }) } };
|
|
24
24
|
},
|
|
25
25
|
async lint() {
|
|
26
|
-
if (this.config.transform.tsc.typeCheck) await
|
|
26
|
+
if (this.config.transform.tsc.typeCheck) await require_packages_plugin_tsc_src_helpers_type_check.typeCheck(this);
|
|
27
27
|
},
|
|
28
28
|
async transform(code, id) {
|
|
29
29
|
if ((0, __stryke_path_find.findFileExtensionSafe)(id).toLowerCase() !== "ts" || id.endsWith(".d.ts")) return {
|
|
@@ -56,4 +56,4 @@ var src_default = plugin;
|
|
|
56
56
|
//#endregion
|
|
57
57
|
exports.default = src_default;
|
|
58
58
|
exports.plugin = plugin;
|
|
59
|
-
exports.typeCheck =
|
|
59
|
+
exports.typeCheck = require_packages_plugin_tsc_src_helpers_type_check.typeCheck;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Plugin } from "
|
|
2
|
-
import { typeCheck } from "
|
|
3
|
-
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "
|
|
1
|
+
import { Plugin } from "../powerlines/src/types/plugin.cjs";
|
|
2
|
+
import { typeCheck } from "../packages/plugin-tsc/src/helpers/type-check.cjs";
|
|
3
|
+
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "../packages/plugin-tsc/src/types/plugin.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Plugin } from "
|
|
2
|
-
import { typeCheck } from "
|
|
3
|
-
import "
|
|
4
|
-
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "
|
|
5
|
-
import "
|
|
1
|
+
import { Plugin } from "../powerlines/src/types/plugin.mjs";
|
|
2
|
+
import { typeCheck } from "../packages/plugin-tsc/src/helpers/type-check.mjs";
|
|
3
|
+
import "../packages/plugin-tsc/src/helpers/index.mjs";
|
|
4
|
+
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "../packages/plugin-tsc/src/types/plugin.mjs";
|
|
5
|
+
import "../packages/plugin-tsc/src/types/index.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { typeCheck } from "
|
|
2
|
-
import "
|
|
1
|
+
import { typeCheck } from "../packages/plugin-tsc/src/helpers/type-check.mjs";
|
|
2
|
+
import "../packages/plugin-tsc/src/helpers/index.mjs";
|
|
3
3
|
import { findFileExtensionSafe } from "@stryke/path/find";
|
|
4
4
|
import defu from "defu";
|
|
5
5
|
import ts from "typescript";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-tsc",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.188",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing the TypeScript compiler plugin for Powerlines.",
|
|
6
6
|
"repository": {
|
|
@@ -147,13 +147,13 @@
|
|
|
147
147
|
"dependencies": {
|
|
148
148
|
"@stryke/path": "^0.25.3",
|
|
149
149
|
"defu": "^6.1.4",
|
|
150
|
-
"powerlines": "^0.37.
|
|
150
|
+
"powerlines": "^0.37.54",
|
|
151
151
|
"typescript": "^5.9.3"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
154
|
+
"@powerlines/plugin-plugin": "^0.12.132",
|
|
155
155
|
"@types/node": "^24.10.9"
|
|
156
156
|
},
|
|
157
157
|
"publishConfig": { "access": "public" },
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "0030560b882e0e314b3085cc9607bc387e6bcba3"
|
|
159
159
|
}
|
package/dist/helpers/index.cjs
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|