@powerlines/plugin-babel 0.12.14 → 0.12.15

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.
@@ -1,4 +1,4 @@
1
- import { C as Context, c as BabelTransformPluginBuilder, D as DeclareBabelTransformPluginReturn } from '../plugin-IenSrG8T.cjs';
1
+ import { C as Context, c as BabelTransformPluginBuilder, D as DeclareBabelTransformPluginReturn } from '../plugin-BJKg0KaC.cjs';
2
2
  import '@stryke/types/base';
3
3
  import 'unplugin';
4
4
  import '@stryke/types/array';
@@ -1,4 +1,4 @@
1
- import { C as Context, c as BabelTransformPluginBuilder, D as DeclareBabelTransformPluginReturn } from '../plugin-IenSrG8T.js';
1
+ import { C as Context, c as BabelTransformPluginBuilder, D as DeclareBabelTransformPluginReturn } from '../plugin-BJKg0KaC.js';
2
2
  import '@stryke/types/base';
3
3
  import 'unplugin';
4
4
  import '@stryke/types/array';
@@ -1,4 +1,4 @@
1
- import { B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions, C as Context, a as BabelTransformPluginFilter, b as BabelTransformPlugin } from '../plugin-IenSrG8T.cjs';
1
+ import { B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions, C as Context, a as BabelTransformPluginFilter, b as BabelTransformPlugin } from '../plugin-BJKg0KaC.cjs';
2
2
  import '@stryke/types/base';
3
3
  import 'unplugin';
4
4
  import '@stryke/types/array';
@@ -1,4 +1,4 @@
1
- import { B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions, C as Context, a as BabelTransformPluginFilter, b as BabelTransformPlugin } from '../plugin-IenSrG8T.js';
1
+ import { B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions, C as Context, a as BabelTransformPluginFilter, b as BabelTransformPlugin } from '../plugin-BJKg0KaC.js';
2
2
  import '@stryke/types/base';
3
3
  import 'unplugin';
4
4
  import '@stryke/types/array';
@@ -6,7 +6,7 @@ export { resolveBabelPlugin, resolvePluginFunction } from './options.cjs';
6
6
  export { GeneratorResult } from '@babel/generator';
7
7
  import '@babel/parser';
8
8
  import '@babel/types';
9
- import '../plugin-IenSrG8T.cjs';
9
+ import '../plugin-BJKg0KaC.cjs';
10
10
  import '@stryke/types/base';
11
11
  import 'unplugin';
12
12
  import '@stryke/types/array';
@@ -6,7 +6,7 @@ export { resolveBabelPlugin, resolvePluginFunction } from './options.js';
6
6
  export { GeneratorResult } from '@babel/generator';
7
7
  import '@babel/parser';
8
8
  import '@babel/types';
9
- import '../plugin-IenSrG8T.js';
9
+ import '../plugin-BJKg0KaC.js';
10
10
  import '@stryke/types/base';
11
11
  import 'unplugin';
12
12
  import '@stryke/types/array';
@@ -1,7 +1,7 @@
1
1
  import { NodePath } from '@babel/core';
2
2
  import { ParseResult } from '@babel/parser';
3
3
  import * as t from '@babel/types';
4
- import { I as ImportSpecifier } from '../plugin-IenSrG8T.cjs';
4
+ import { I as ImportSpecifier } from '../plugin-BJKg0KaC.cjs';
5
5
  import '@stryke/types/base';
6
6
  import 'unplugin';
7
7
  import '@stryke/types/array';
@@ -1,7 +1,7 @@
1
1
  import { NodePath } from '@babel/core';
2
2
  import { ParseResult } from '@babel/parser';
3
3
  import * as t from '@babel/types';
4
- import { I as ImportSpecifier } from '../plugin-IenSrG8T.js';
4
+ import { I as ImportSpecifier } from '../plugin-BJKg0KaC.js';
5
5
  import '@stryke/types/base';
6
6
  import 'unplugin';
7
7
  import '@stryke/types/array';
@@ -1,5 +1,5 @@
1
1
  import { PluginTarget, PluginOptions } from '@babel/core';
2
- import { C as Context, B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions } from '../plugin-IenSrG8T.cjs';
2
+ import { C as Context, B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions } from '../plugin-BJKg0KaC.cjs';
3
3
  import '@stryke/types/base';
4
4
  import 'unplugin';
5
5
  import '@stryke/types/array';
@@ -1,5 +1,5 @@
1
1
  import { PluginTarget, PluginOptions } from '@babel/core';
2
- import { C as Context, B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions } from '../plugin-IenSrG8T.js';
2
+ import { C as Context, B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions } from '../plugin-BJKg0KaC.js';
3
3
  import '@stryke/types/base';
4
4
  import 'unplugin';
5
5
  import '@stryke/types/array';
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as Plugin } from './plugin-IenSrG8T.cjs';
1
+ import { P as Plugin } from './plugin-BJKg0KaC.cjs';
2
2
  import { BabelPluginOptions, BabelPluginContext } from './types/plugin.cjs';
3
3
  export { BabelPluginResolvedConfig, BabelPluginUserConfig } from './types/plugin.cjs';
4
4
  export { GenerateFromAstOptions, generateFromAst, parseAst } from './helpers/ast-utils.cjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as Plugin } from './plugin-IenSrG8T.js';
1
+ import { P as Plugin } from './plugin-BJKg0KaC.js';
2
2
  import { BabelPluginOptions, BabelPluginContext } from './types/plugin.js';
3
3
  export { BabelPluginResolvedConfig, BabelPluginUserConfig } from './types/plugin.js';
4
4
  export { GenerateFromAstOptions, generateFromAst, parseAst } from './helpers/ast-utils.js';
@@ -1169,7 +1169,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1169
1169
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1170
1170
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1171
1171
 
1172
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1172
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1173
1173
  /**
1174
1174
  * The order in which the plugin should be applied.
1175
1175
  */
@@ -1177,13 +1177,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1177
1177
  /**
1178
1178
  * A filter to determine when the hook should be called.
1179
1179
  */
1180
- filter?: TFilter;
1180
+ filter?: Pick<HookFilter, TFilter>;
1181
1181
  /**
1182
1182
  * The hook function to be called.
1183
1183
  */
1184
1184
  handler: THookFunction;
1185
1185
  }
1186
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1186
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1187
1187
  /**
1188
1188
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1189
1189
  */
@@ -1169,7 +1169,7 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
1169
1169
  declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "release", "finalize"];
1170
1170
  type CommandType = ArrayValues<typeof SUPPORTED_COMMANDS>;
1171
1171
 
1172
- interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> {
1172
+ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
1173
1173
  /**
1174
1174
  * The order in which the plugin should be applied.
1175
1175
  */
@@ -1177,13 +1177,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
1177
1177
  /**
1178
1178
  * A filter to determine when the hook should be called.
1179
1179
  */
1180
- filter?: TFilter;
1180
+ filter?: Pick<HookFilter, TFilter>;
1181
1181
  /**
1182
1182
  * The hook function to be called.
1183
1183
  */
1184
1184
  handler: THookFunction;
1185
1185
  }
1186
- type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter | undefined = undefined> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1186
+ type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
1187
1187
  /**
1188
1188
  * A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
1189
1189
  */
@@ -1,5 +1,5 @@
1
1
  export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from './plugin.cjs';
2
- import '../plugin-IenSrG8T.cjs';
2
+ import '../plugin-BJKg0KaC.cjs';
3
3
  import '@stryke/types/base';
4
4
  import 'unplugin';
5
5
  import '@stryke/types/array';
@@ -1,5 +1,5 @@
1
1
  export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from './plugin.js';
2
- import '../plugin-IenSrG8T.js';
2
+ import '../plugin-BJKg0KaC.js';
3
3
  import '@stryke/types/base';
4
4
  import 'unplugin';
5
5
  import '@stryke/types/array';
@@ -1,4 +1,4 @@
1
- import { d as BabelUserConfig, e as ResolvedConfig, f as BabelResolvedConfig, g as PluginContext, U as UserConfig } from '../plugin-IenSrG8T.cjs';
1
+ import { d as BabelUserConfig, e as ResolvedConfig, f as BabelResolvedConfig, g as PluginContext, U as UserConfig } from '../plugin-BJKg0KaC.cjs';
2
2
  import '@stryke/types/base';
3
3
  import 'unplugin';
4
4
  import '@stryke/types/array';
@@ -1,4 +1,4 @@
1
- import { d as BabelUserConfig, e as ResolvedConfig, f as BabelResolvedConfig, g as PluginContext, U as UserConfig } from '../plugin-IenSrG8T.js';
1
+ import { d as BabelUserConfig, e as ResolvedConfig, f as BabelResolvedConfig, g as PluginContext, U as UserConfig } from '../plugin-BJKg0KaC.js';
2
2
  import '@stryke/types/base';
3
3
  import 'unplugin';
4
4
  import '@stryke/types/array';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-babel",
3
- "version": "0.12.14",
3
+ "version": "0.12.15",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -144,15 +144,15 @@
144
144
  "chalk": "5.6.2",
145
145
  "defu": "^6.1.4",
146
146
  "jiti": "^2.6.1",
147
- "powerlines": "^0.19.1",
147
+ "powerlines": "^0.19.2",
148
148
  "unplugin": "^2.3.10"
149
149
  },
150
150
  "devDependencies": {
151
151
  "@babel/plugin-syntax-typescript": "^7.27.1",
152
- "@powerlines/nx": "^0.10.5",
153
- "@powerlines/plugin-plugin": "^0.11.13",
152
+ "@powerlines/nx": "^0.10.6",
153
+ "@powerlines/plugin-plugin": "^0.11.14",
154
154
  "@types/node": "^22.19.0"
155
155
  },
156
156
  "publishConfig": { "access": "public" },
157
- "gitHead": "d25499feacd0143784f3cd426488909134bffab2"
157
+ "gitHead": "487dbe9d301ea6c2bba10d3dec1706b64a079452"
158
158
  }