@powerlines/plugin-babel 0.12.25 → 0.12.29
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/ast-utils.d.cts +3 -1
- package/dist/helpers/ast-utils.d.ts +3 -1
- 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 +2 -2
- package/dist/helpers/index.d.ts +2 -2
- 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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/{plugin-CwYWLG3U.d.cts → plugin-_LQpDkG4.d.cts} +11 -2
- package/dist/{plugin-CwYWLG3U.d.ts → plugin-_LQpDkG4.d.ts} +11 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/plugin.d.cts +6 -2
- package/dist/types/plugin.d.ts +6 -2
- package/package.json +7 -7
|
@@ -14,4 +14,6 @@ declare function parseAst(code: string, opts?: ParserOptions): ParseResult<t.Fil
|
|
|
14
14
|
type GenerateFromAstOptions = GeneratorOptions & Required<Pick<GeneratorOptions, "sourceFileName" | "filename">>;
|
|
15
15
|
declare function generateFromAst(ast: t.Node, opts?: GenerateFromAstOptions): GeneratorResult;
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
declare type __ΩGenerateFromAstOptions = any[];
|
|
18
|
+
|
|
19
|
+
export { type GenerateFromAstOptions, type __ΩGenerateFromAstOptions, generateFromAst, parseAst };
|
|
@@ -14,4 +14,6 @@ declare function parseAst(code: string, opts?: ParserOptions): ParseResult<t.Fil
|
|
|
14
14
|
type GenerateFromAstOptions = GeneratorOptions & Required<Pick<GeneratorOptions, "sourceFileName" | "filename">>;
|
|
15
15
|
declare function generateFromAst(ast: t.Node, opts?: GenerateFromAstOptions): GeneratorResult;
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
declare type __ΩGenerateFromAstOptions = any[];
|
|
18
|
+
|
|
19
|
+
export { type GenerateFromAstOptions, type __ΩGenerateFromAstOptions, generateFromAst, parseAst };
|
|
@@ -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-_LQpDkG4.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-_LQpDkG4.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-_LQpDkG4.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-_LQpDkG4.js';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
import '@stryke/types/array';
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GenerateFromAstOptions, generateFromAst, parseAst } from './ast-utils.cjs';
|
|
1
|
+
export { GenerateFromAstOptions, __ΩGenerateFromAstOptions, generateFromAst, parseAst } from './ast-utils.cjs';
|
|
2
2
|
export { createBabelPlugin } from './create-plugin.cjs';
|
|
3
3
|
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin } from './filters.cjs';
|
|
4
4
|
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports } from './module-helpers.cjs';
|
|
@@ -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-_LQpDkG4.cjs';
|
|
10
10
|
import '@stryke/types/base';
|
|
11
11
|
import 'unplugin';
|
|
12
12
|
import '@stryke/types/array';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GenerateFromAstOptions, generateFromAst, parseAst } from './ast-utils.js';
|
|
1
|
+
export { GenerateFromAstOptions, __ΩGenerateFromAstOptions, generateFromAst, parseAst } from './ast-utils.js';
|
|
2
2
|
export { createBabelPlugin } from './create-plugin.js';
|
|
3
3
|
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin } from './filters.js';
|
|
4
4
|
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports } from './module-helpers.js';
|
|
@@ -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-_LQpDkG4.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-_LQpDkG4.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-_LQpDkG4.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-_LQpDkG4.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-_LQpDkG4.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import 'unplugin';
|
|
5
5
|
import '@stryke/types/array';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as Plugin } from './plugin-
|
|
1
|
+
import { P as Plugin } from './plugin-_LQpDkG4.cjs';
|
|
2
2
|
import { BabelPluginOptions, BabelPluginContext } from './types/plugin.cjs';
|
|
3
|
-
export { BabelPluginResolvedConfig, BabelPluginUserConfig } from './types/plugin.cjs';
|
|
4
|
-
export { GenerateFromAstOptions, generateFromAst, parseAst } from './helpers/ast-utils.cjs';
|
|
3
|
+
export { BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from './types/plugin.cjs';
|
|
4
|
+
export { GenerateFromAstOptions, __ΩGenerateFromAstOptions, generateFromAst, parseAst } from './helpers/ast-utils.cjs';
|
|
5
5
|
export { createBabelPlugin } from './helpers/create-plugin.cjs';
|
|
6
6
|
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin } from './helpers/filters.cjs';
|
|
7
7
|
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports } from './helpers/module-helpers.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as Plugin } from './plugin-
|
|
1
|
+
import { P as Plugin } from './plugin-_LQpDkG4.js';
|
|
2
2
|
import { BabelPluginOptions, BabelPluginContext } from './types/plugin.js';
|
|
3
|
-
export { BabelPluginResolvedConfig, BabelPluginUserConfig } from './types/plugin.js';
|
|
4
|
-
export { GenerateFromAstOptions, generateFromAst, parseAst } from './helpers/ast-utils.js';
|
|
3
|
+
export { BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from './types/plugin.js';
|
|
4
|
+
export { GenerateFromAstOptions, __ΩGenerateFromAstOptions, generateFromAst, parseAst } from './helpers/ast-utils.js';
|
|
5
5
|
export { createBabelPlugin } from './helpers/create-plugin.js';
|
|
6
6
|
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin } from './helpers/filters.js';
|
|
7
7
|
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports } from './helpers/module-helpers.js';
|
|
@@ -269,8 +269,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
|
269
269
|
tsconfigFilePath: string;
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
declare const __VFS_PATCH__
|
|
273
|
-
declare const __VFS_REVERT__
|
|
272
|
+
declare const __VFS_PATCH__ = "__VFS_PATCH__";
|
|
273
|
+
declare const __VFS_REVERT__ = "__VFS_REVERT__";
|
|
274
274
|
type OutputModeType = "fs" | "virtual";
|
|
275
275
|
interface VirtualFile {
|
|
276
276
|
/**
|
|
@@ -689,6 +689,15 @@ interface OutputConfig {
|
|
|
689
689
|
* @defaultValue "dist/\{projectRoot\}"
|
|
690
690
|
*/
|
|
691
691
|
outputPath?: string;
|
|
692
|
+
/**
|
|
693
|
+
* The output directory path for the project build.
|
|
694
|
+
*
|
|
695
|
+
* @remarks
|
|
696
|
+
* This path is used to determine where the built files will be placed after the build process completes. This will be used in scenarios where the monorepo uses TSConfig paths to link packages together.
|
|
697
|
+
*
|
|
698
|
+
* @defaultValue "\{projectRoot\}/dist"
|
|
699
|
+
*/
|
|
700
|
+
distPath?: string;
|
|
692
701
|
/**
|
|
693
702
|
* The format of the output files
|
|
694
703
|
*
|
|
@@ -269,8 +269,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
|
269
269
|
tsconfigFilePath: string;
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
declare const __VFS_PATCH__
|
|
273
|
-
declare const __VFS_REVERT__
|
|
272
|
+
declare const __VFS_PATCH__ = "__VFS_PATCH__";
|
|
273
|
+
declare const __VFS_REVERT__ = "__VFS_REVERT__";
|
|
274
274
|
type OutputModeType = "fs" | "virtual";
|
|
275
275
|
interface VirtualFile {
|
|
276
276
|
/**
|
|
@@ -689,6 +689,15 @@ interface OutputConfig {
|
|
|
689
689
|
* @defaultValue "dist/\{projectRoot\}"
|
|
690
690
|
*/
|
|
691
691
|
outputPath?: string;
|
|
692
|
+
/**
|
|
693
|
+
* The output directory path for the project build.
|
|
694
|
+
*
|
|
695
|
+
* @remarks
|
|
696
|
+
* This path is used to determine where the built files will be placed after the build process completes. This will be used in scenarios where the monorepo uses TSConfig paths to link packages together.
|
|
697
|
+
*
|
|
698
|
+
* @defaultValue "\{projectRoot\}/dist"
|
|
699
|
+
*/
|
|
700
|
+
distPath?: string;
|
|
692
701
|
/**
|
|
693
702
|
* The format of the output files
|
|
694
703
|
*
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from './plugin.cjs';
|
|
2
|
-
import '../plugin-
|
|
1
|
+
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from './plugin.cjs';
|
|
2
|
+
import '../plugin-_LQpDkG4.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
|
-
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from './plugin.js';
|
|
2
|
-
import '../plugin-
|
|
1
|
+
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig } from './plugin.js';
|
|
2
|
+
import '../plugin-_LQpDkG4.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-_LQpDkG4.cjs';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
import '@stryke/types/array';
|
|
@@ -28,5 +28,9 @@ interface BabelPluginResolvedConfig extends ResolvedConfig {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
31
|
+
declare type __ΩBabelPluginOptions = any[];
|
|
32
|
+
declare type __ΩBabelPluginUserConfig = any[];
|
|
33
|
+
declare type __ΩBabelPluginResolvedConfig = any[];
|
|
34
|
+
declare type __ΩBabelPluginContext = any[];
|
|
31
35
|
|
|
32
|
-
export type { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig };
|
|
36
|
+
export type { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig };
|
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-_LQpDkG4.js';
|
|
2
2
|
import '@stryke/types/base';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
import '@stryke/types/array';
|
|
@@ -28,5 +28,9 @@ interface BabelPluginResolvedConfig extends ResolvedConfig {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
type BabelPluginContext<TResolvedConfig extends BabelPluginResolvedConfig = BabelPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
31
|
+
declare type __ΩBabelPluginOptions = any[];
|
|
32
|
+
declare type __ΩBabelPluginUserConfig = any[];
|
|
33
|
+
declare type __ΩBabelPluginResolvedConfig = any[];
|
|
34
|
+
declare type __ΩBabelPluginContext = any[];
|
|
31
35
|
|
|
32
|
-
export type { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig };
|
|
36
|
+
export type { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig, __ΩBabelPluginContext, __ΩBabelPluginOptions, __ΩBabelPluginResolvedConfig, __ΩBabelPluginUserConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-babel",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.29",
|
|
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.42",
|
|
140
140
|
"@stryke/fs": "^0.32.13",
|
|
141
141
|
"@stryke/path": "^0.19.2",
|
|
142
142
|
"@stryke/type-checks": "^0.3.12",
|
|
@@ -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.
|
|
147
|
+
"powerlines": "^0.23.3",
|
|
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.
|
|
153
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
154
|
-
"@types/node": "^
|
|
152
|
+
"@powerlines/nx": "^0.10.20",
|
|
153
|
+
"@powerlines/plugin-plugin": "^0.11.28",
|
|
154
|
+
"@types/node": "^24.10.1"
|
|
155
155
|
},
|
|
156
156
|
"publishConfig": { "access": "public" },
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "6e43200541ace2946694195c092642e7ac2f3098"
|
|
158
158
|
}
|