@powerlines/plugin-swc 0.5.65 → 0.5.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.
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/{plugin-B3t8jxUp.d.cts → plugin-Bf8JIfHW.d.mts} +3 -6
- package/dist/{plugin-BmbEdreF.d.mts → plugin-CYXnCesu.d.cts} +3 -6
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, l as Plugin, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "./plugin-
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, l as Plugin, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "./plugin-CYXnCesu.cjs";
|
|
2
2
|
import "./index-CEgs-Dz2.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, l as Plugin, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "./plugin-
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, l as Plugin, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "./plugin-Bf8JIfHW.mjs";
|
|
2
2
|
import "./index-BgAdqTbb.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Options } from "@swc/core";
|
|
1
2
|
import { ArrayValues } from "@stryke/types/array";
|
|
2
3
|
import { FunctionLike, MaybePromise, NonUndefined } from "@stryke/types/base";
|
|
3
4
|
import { ExternalIdResult, HookFilter, TransformResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage, UnpluginOptions } from "unplugin";
|
|
@@ -19,7 +20,6 @@ import { AssetGlob } from "@stryke/types/file";
|
|
|
19
20
|
import { ResolveOptions } from "@stryke/fs/resolve";
|
|
20
21
|
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
21
22
|
import ts from "typescript";
|
|
22
|
-
import { Options } from "@swc/core";
|
|
23
23
|
|
|
24
24
|
//#region ../powerlines/src/types/build.d.ts
|
|
25
25
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
@@ -159,10 +159,7 @@ interface BuildConfig {
|
|
|
159
159
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region ../powerlines/src/types/fs.d.ts
|
|
162
|
-
|
|
163
|
-
VIRTUAL = "virtual",
|
|
164
|
-
FS = "fs",
|
|
165
|
-
}
|
|
162
|
+
type StoragePreset = "fs" | "virtual";
|
|
166
163
|
/**
|
|
167
164
|
* Interface defining the methods and properties for a storage adapter.
|
|
168
165
|
*/
|
|
@@ -1634,7 +1631,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
1634
1631
|
* @param environment - The environment to check.
|
|
1635
1632
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
1636
1633
|
*/
|
|
1637
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) =>
|
|
1634
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<any>;
|
|
1638
1635
|
}
|
|
1639
1636
|
//#endregion
|
|
1640
1637
|
//#region src/types/plugin.d.ts
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Options } from "@swc/core";
|
|
2
1
|
import { ArrayValues } from "@stryke/types/array";
|
|
3
2
|
import { FunctionLike, MaybePromise, NonUndefined } from "@stryke/types/base";
|
|
4
3
|
import { ExternalIdResult, HookFilter, TransformResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage, UnpluginOptions } from "unplugin";
|
|
@@ -20,6 +19,7 @@ import { AssetGlob } from "@stryke/types/file";
|
|
|
20
19
|
import { ResolveOptions } from "@stryke/fs/resolve";
|
|
21
20
|
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
22
21
|
import ts from "typescript";
|
|
22
|
+
import { Options } from "@swc/core";
|
|
23
23
|
|
|
24
24
|
//#region ../powerlines/src/types/build.d.ts
|
|
25
25
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
@@ -159,10 +159,7 @@ interface BuildConfig {
|
|
|
159
159
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region ../powerlines/src/types/fs.d.ts
|
|
162
|
-
|
|
163
|
-
VIRTUAL = "virtual",
|
|
164
|
-
FS = "fs",
|
|
165
|
-
}
|
|
162
|
+
type StoragePreset = "fs" | "virtual";
|
|
166
163
|
/**
|
|
167
164
|
* Interface defining the methods and properties for a storage adapter.
|
|
168
165
|
*/
|
|
@@ -1634,7 +1631,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
1634
1631
|
* @param environment - The environment to check.
|
|
1635
1632
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
1636
1633
|
*/
|
|
1637
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) =>
|
|
1634
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<any>;
|
|
1638
1635
|
}
|
|
1639
1636
|
//#endregion
|
|
1640
1637
|
//#region src/types/plugin.d.ts
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-CYXnCesu.cjs";
|
|
2
2
|
import "../index-CEgs-Dz2.cjs";
|
|
3
3
|
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-Bf8JIfHW.mjs";
|
|
2
2
|
import "../index-BgAdqTbb.mjs";
|
|
3
3
|
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-CYXnCesu.cjs";
|
|
2
2
|
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-Bf8JIfHW.mjs";
|
|
2
2
|
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-swc",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.67",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform project code with SWC.",
|
|
6
6
|
"repository": {
|
|
@@ -147,13 +147,13 @@
|
|
|
147
147
|
"dependencies": {
|
|
148
148
|
"@swc/core": "^1.15.3",
|
|
149
149
|
"defu": "^6.1.4",
|
|
150
|
-
"powerlines": "^0.30.
|
|
150
|
+
"powerlines": "^0.30.9"
|
|
151
151
|
},
|
|
152
152
|
"devDependencies": {
|
|
153
|
-
"@powerlines/nx": "^0.10.
|
|
154
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
153
|
+
"@powerlines/nx": "^0.10.58",
|
|
154
|
+
"@powerlines/plugin-plugin": "^0.12.10",
|
|
155
155
|
"@types/node": "^24.10.1"
|
|
156
156
|
},
|
|
157
157
|
"publishConfig": { "access": "public" },
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "00fa339177561d404892937d2c24fe2a5b3df4e7"
|
|
159
159
|
}
|