@powerlines/plugin-babel 0.12.47 → 0.12.49
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/helpers/create-plugin.d.cts +1 -1
- package/dist/helpers/create-plugin.d.ts +1 -1
- package/dist/helpers/filters.d.cts +1 -1
- package/dist/helpers/filters.d.ts +1 -1
- package/dist/helpers/index.d.cts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/module-helpers.d.cts +1 -1
- package/dist/helpers/module-helpers.d.ts +1 -1
- package/dist/helpers/options.d.cts +1 -1
- package/dist/helpers/options.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{plugin-CfLHXanf.d.cts → plugin-DmaWGFTD.d.cts} +3 -3
- package/dist/{plugin-CfLHXanf.d.ts → plugin-DmaWGFTD.d.ts} +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Context, c as BabelTransformPluginBuilder, D as DeclareBabelTransformPluginReturn } from '../plugin-
|
|
1
|
+
import { C as Context, c as BabelTransformPluginBuilder, D as DeclareBabelTransformPluginReturn } from '../plugin-DmaWGFTD.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-
|
|
1
|
+
import { C as Context, c as BabelTransformPluginBuilder, D as DeclareBabelTransformPluginReturn } from '../plugin-DmaWGFTD.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-
|
|
1
|
+
import { B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions, C as Context, a as BabelTransformPluginFilter, b as BabelTransformPlugin } from '../plugin-DmaWGFTD.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-
|
|
1
|
+
import { B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions, C as Context, a as BabelTransformPluginFilter, b as BabelTransformPlugin } from '../plugin-DmaWGFTD.js';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
import '@stryke/types/array';
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -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-
|
|
9
|
+
import '../plugin-DmaWGFTD.cjs';
|
|
10
10
|
import '@stryke/types/base';
|
|
11
11
|
import 'unplugin';
|
|
12
12
|
import '@stryke/types/array';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -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-
|
|
9
|
+
import '../plugin-DmaWGFTD.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-
|
|
4
|
+
import { I as ImportSpecifier } from '../plugin-DmaWGFTD.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-
|
|
4
|
+
import { I as ImportSpecifier } from '../plugin-DmaWGFTD.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-
|
|
2
|
+
import { C as Context, B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions } from '../plugin-DmaWGFTD.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-
|
|
2
|
+
import { C as Context, B as BabelTransformPluginOptions, R as ResolvedBabelTransformPluginOptions } from '../plugin-DmaWGFTD.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-
|
|
1
|
+
import { P as Plugin } from './plugin-DmaWGFTD.cjs';
|
|
2
2
|
import { BabelPluginOptions, BabelPluginContext } from './types/plugin.cjs';
|
|
3
3
|
export { BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from './types/plugin.cjs';
|
|
4
4
|
export { GenerateFromAstOptions, __Ω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-
|
|
1
|
+
import { P as Plugin } from './plugin-DmaWGFTD.js';
|
|
2
2
|
import { BabelPluginOptions, BabelPluginContext } from './types/plugin.js';
|
|
3
3
|
export { BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from './types/plugin.js';
|
|
4
4
|
export { GenerateFromAstOptions, __ΩGenerateFromAstOptions, generateFromAst, parseAst } from './helpers/ast-utils.js';
|
|
@@ -1497,7 +1497,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1497
1497
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
|
|
1498
1498
|
[TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
|
|
1499
1499
|
};
|
|
1500
|
-
interface Plugin<
|
|
1500
|
+
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
1501
1501
|
/**
|
|
1502
1502
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
1503
1503
|
*/
|
|
@@ -1528,7 +1528,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
1528
1528
|
* @param other - The other plugin to compare against.
|
|
1529
1529
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
1530
1530
|
*/
|
|
1531
|
-
dedupe?: false | ((other: Plugin<
|
|
1531
|
+
dedupe?: false | ((other: Plugin<TContext>) => boolean);
|
|
1532
1532
|
/**
|
|
1533
1533
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
1534
1534
|
*/
|
|
@@ -1539,7 +1539,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
1539
1539
|
* @param environment - The environment to check.
|
|
1540
1540
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
1541
1541
|
*/
|
|
1542
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<
|
|
1542
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
1545
|
export type { BabelTransformPluginOptions as B, Context as C, DeclareBabelTransformPluginReturn as D, ImportSpecifier as I, Plugin as P, ResolvedBabelTransformPluginOptions as R, UserConfig as U, BabelTransformPluginFilter as a, BabelTransformPlugin as b, BabelTransformPluginBuilder as c, BabelUserConfig as d, ResolvedConfig as e, BabelResolvedConfig as f, PluginContext as g };
|
|
@@ -1497,7 +1497,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1497
1497
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
|
|
1498
1498
|
[TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
|
|
1499
1499
|
};
|
|
1500
|
-
interface Plugin<
|
|
1500
|
+
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
1501
1501
|
/**
|
|
1502
1502
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
1503
1503
|
*/
|
|
@@ -1528,7 +1528,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
1528
1528
|
* @param other - The other plugin to compare against.
|
|
1529
1529
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
1530
1530
|
*/
|
|
1531
|
-
dedupe?: false | ((other: Plugin<
|
|
1531
|
+
dedupe?: false | ((other: Plugin<TContext>) => boolean);
|
|
1532
1532
|
/**
|
|
1533
1533
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
1534
1534
|
*/
|
|
@@ -1539,7 +1539,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
1539
1539
|
* @param environment - The environment to check.
|
|
1540
1540
|
* @returns `true` if the plugin should be active in the specified environment, `false` otherwise.
|
|
1541
1541
|
*/
|
|
1542
|
-
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<
|
|
1542
|
+
applyToEnvironment?: (environment: EnvironmentResolvedConfig) => MaybePromise<boolean | Plugin<TContext>>;
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
1545
|
export type { BabelTransformPluginOptions as B, Context as C, DeclareBabelTransformPluginReturn as D, ImportSpecifier as I, Plugin as P, ResolvedBabelTransformPluginOptions as R, UserConfig as U, BabelTransformPluginFilter as a, BabelTransformPlugin as b, BabelTransformPluginBuilder as c, BabelUserConfig as d, ResolvedConfig as e, BabelResolvedConfig as f, PluginContext as g };
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from './plugin.cjs';
|
|
2
|
-
import '../plugin-
|
|
2
|
+
import '../plugin-DmaWGFTD.cjs';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import 'unplugin';
|
|
5
5
|
import '@stryke/types/array';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from './plugin.js';
|
|
2
|
-
import '../plugin-
|
|
2
|
+
import '../plugin-DmaWGFTD.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import 'unplugin';
|
|
5
5
|
import '@stryke/types/array';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as BabelUserConfig, e as ResolvedConfig, f as BabelResolvedConfig, g as PluginContext, U as UserConfig } from '../plugin-
|
|
1
|
+
import { d as BabelUserConfig, e as ResolvedConfig, f as BabelResolvedConfig, g as PluginContext, U as UserConfig } from '../plugin-DmaWGFTD.cjs';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
import '@stryke/types/array';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as BabelUserConfig, e as ResolvedConfig, f as BabelResolvedConfig, g as PluginContext, U as UserConfig } from '../plugin-
|
|
1
|
+
import { d as BabelUserConfig, e as ResolvedConfig, f as BabelResolvedConfig, g as PluginContext, U as UserConfig } from '../plugin-DmaWGFTD.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.
|
|
3
|
+
"version": "0.12.49",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@babel/helper-plugin-utils": "^7.27.1",
|
|
137
137
|
"@babel/parser": "^7.28.5",
|
|
138
138
|
"@babel/types": "^7.28.5",
|
|
139
|
-
"@storm-software/config-tools": "^1.188.
|
|
139
|
+
"@storm-software/config-tools": "^1.188.49",
|
|
140
140
|
"@stryke/fs": "^0.33.4",
|
|
141
141
|
"@stryke/path": "^0.21.2",
|
|
142
142
|
"@stryke/type-checks": "^0.3.18",
|
|
@@ -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.25.
|
|
147
|
+
"powerlines": "^0.25.2",
|
|
148
148
|
"unplugin": "^2.3.11"
|
|
149
149
|
},
|
|
150
150
|
"devDependencies": {
|
|
151
151
|
"@babel/plugin-syntax-typescript": "^7.27.1",
|
|
152
|
-
"@powerlines/nx": "^0.10.
|
|
153
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
152
|
+
"@powerlines/nx": "^0.10.40",
|
|
153
|
+
"@powerlines/plugin-plugin": "^0.11.48",
|
|
154
154
|
"@types/node": "^24.10.1"
|
|
155
155
|
},
|
|
156
156
|
"publishConfig": { "access": "public" },
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "e5c7481779e32bd9810613c299e775bc033c9eac"
|
|
158
158
|
}
|