@powerlines/plugin-babel 0.12.12 → 0.12.14
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/{src/index.cjs → index.cjs} +1 -1
- package/dist/{src/index.d.ts → index.d.cts} +8 -8
- package/dist/{src/index.d.cts → index.d.ts} +8 -8
- package/dist/{src/index.js → index.js} +1 -1
- package/dist/{plugin-CObsHnry.d.cts → plugin-IenSrG8T.d.cts} +25 -1
- package/dist/{plugin-CObsHnry.d.ts → plugin-IenSrG8T.d.ts} +25 -1
- 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 +9 -9
|
@@ -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-IenSrG8T.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-IenSrG8T.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-IenSrG8T.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-IenSrG8T.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-IenSrG8T.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-IenSrG8T.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-IenSrG8T.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-IenSrG8T.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-IenSrG8T.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-IenSrG8T.js';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import 'unplugin';
|
|
5
5
|
import '@stryke/types/array';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkFBBMZ4NC_cjs=require('
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkFBBMZ4NC_cjs=require('./chunk-FBBMZ4NC.cjs'),core=require('@babel/core'),types$1=require('@storm-software/config-tools/types'),filePathFns=require('@stryke/path/file-path-fns'),isParentPath=require('@stryke/path/is-parent-path'),isSetObject=require('@stryke/type-checks/is-set-object'),a=require('defu'),filters=require('./helpers/filters'),options=require('./helpers/options'),helpers=require('./helpers'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a__default=/*#__PURE__*/_interopDefault(a);/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { P as Plugin } from '
|
|
2
|
-
import { BabelPluginOptions, BabelPluginContext } from '
|
|
3
|
-
export { BabelPluginResolvedConfig, BabelPluginUserConfig } from '
|
|
4
|
-
export { GenerateFromAstOptions, generateFromAst, parseAst } from '
|
|
5
|
-
export { createBabelPlugin } from '
|
|
6
|
-
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin } from '
|
|
7
|
-
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports } from '
|
|
8
|
-
export { resolveBabelPlugin, resolvePluginFunction } from '
|
|
1
|
+
import { P as Plugin } from './plugin-IenSrG8T.cjs';
|
|
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';
|
|
5
|
+
export { createBabelPlugin } from './helpers/create-plugin.cjs';
|
|
6
|
+
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin } from './helpers/filters.cjs';
|
|
7
|
+
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports } from './helpers/module-helpers.cjs';
|
|
8
|
+
export { resolveBabelPlugin, resolvePluginFunction } from './helpers/options.cjs';
|
|
9
9
|
export { GeneratorResult } from '@babel/generator';
|
|
10
10
|
import '@stryke/types/base';
|
|
11
11
|
import 'unplugin';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { P as Plugin } from '
|
|
2
|
-
import { BabelPluginOptions, BabelPluginContext } from '
|
|
3
|
-
export { BabelPluginResolvedConfig, BabelPluginUserConfig } from '
|
|
4
|
-
export { GenerateFromAstOptions, generateFromAst, parseAst } from '
|
|
5
|
-
export { createBabelPlugin } from '
|
|
6
|
-
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin } from '
|
|
7
|
-
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports } from '
|
|
8
|
-
export { resolveBabelPlugin, resolvePluginFunction } from '
|
|
1
|
+
import { P as Plugin } from './plugin-IenSrG8T.js';
|
|
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';
|
|
5
|
+
export { createBabelPlugin } from './helpers/create-plugin.js';
|
|
6
|
+
export { addPluginFilter, filterPluginByFileId, getPluginName, isDuplicatePlugin } from './helpers/filters.js';
|
|
7
|
+
export { addImport, addImportsToProgram, findExport, getImport, isImportCall, listExports, listImports } from './helpers/module-helpers.js';
|
|
8
|
+
export { resolveBabelPlugin, resolvePluginFunction } from './helpers/options.js';
|
|
9
9
|
export { GeneratorResult } from '@babel/generator';
|
|
10
10
|
import '@stryke/types/base';
|
|
11
11
|
import 'unplugin';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'
|
|
1
|
+
import {a}from'./chunk-UCUR73HG.js';import {transformAsync}from'@babel/core';import {LogLevelLabel}from'@storm-software/config-tools/types';import {findFileExtensionSafe,findFileExtension}from'@stryke/path/file-path-fns';import {isParentPath}from'@stryke/path/is-parent-path';import {isSetObject}from'@stryke/type-checks/is-set-object';import a$1 from'defu';import {isDuplicatePlugin}from'./helpers/filters';import {resolveBabelPlugin}from'./helpers/options';export*from'./helpers';export*from'./types';/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromise, NonUndefined, FunctionLike } from '@stryke/types/base';
|
|
2
|
-
import { UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
|
|
2
|
+
import { UnpluginContext, UnpluginBuildContext, UnpluginMessage, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
|
|
3
3
|
import { ArrayValues } from '@stryke/types/array';
|
|
4
4
|
import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
|
|
5
5
|
import { Format } from '@storm-software/build-tools/types';
|
|
@@ -999,6 +999,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
999
999
|
* A logging function for the Powerlines engine
|
|
1000
1000
|
*/
|
|
1001
1001
|
log: LogFn;
|
|
1002
|
+
/**
|
|
1003
|
+
* A logging function for fatal messages
|
|
1004
|
+
*/
|
|
1005
|
+
fatal: (message: string | UnpluginMessage) => void;
|
|
1006
|
+
/**
|
|
1007
|
+
* A logging function for error messages
|
|
1008
|
+
*/
|
|
1009
|
+
error: (message: string | UnpluginMessage) => void;
|
|
1010
|
+
/**
|
|
1011
|
+
* A logging function for warning messages
|
|
1012
|
+
*/
|
|
1013
|
+
warn: (message: string | UnpluginMessage) => void;
|
|
1014
|
+
/**
|
|
1015
|
+
* A logging function for informational messages
|
|
1016
|
+
*/
|
|
1017
|
+
info: (message: string | UnpluginMessage) => void;
|
|
1018
|
+
/**
|
|
1019
|
+
* A logging function for debug messages
|
|
1020
|
+
*/
|
|
1021
|
+
debug: (message: string | UnpluginMessage) => void;
|
|
1022
|
+
/**
|
|
1023
|
+
* A logging function for trace messages
|
|
1024
|
+
*/
|
|
1025
|
+
trace: (message: string | UnpluginMessage) => void;
|
|
1002
1026
|
/**
|
|
1003
1027
|
* The metadata information
|
|
1004
1028
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MaybePromise, NonUndefined, FunctionLike } from '@stryke/types/base';
|
|
2
|
-
import { UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
|
|
2
|
+
import { UnpluginContext, UnpluginBuildContext, UnpluginMessage, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
|
|
3
3
|
import { ArrayValues } from '@stryke/types/array';
|
|
4
4
|
import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
|
|
5
5
|
import { Format } from '@storm-software/build-tools/types';
|
|
@@ -999,6 +999,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
|
|
|
999
999
|
* A logging function for the Powerlines engine
|
|
1000
1000
|
*/
|
|
1001
1001
|
log: LogFn;
|
|
1002
|
+
/**
|
|
1003
|
+
* A logging function for fatal messages
|
|
1004
|
+
*/
|
|
1005
|
+
fatal: (message: string | UnpluginMessage) => void;
|
|
1006
|
+
/**
|
|
1007
|
+
* A logging function for error messages
|
|
1008
|
+
*/
|
|
1009
|
+
error: (message: string | UnpluginMessage) => void;
|
|
1010
|
+
/**
|
|
1011
|
+
* A logging function for warning messages
|
|
1012
|
+
*/
|
|
1013
|
+
warn: (message: string | UnpluginMessage) => void;
|
|
1014
|
+
/**
|
|
1015
|
+
* A logging function for informational messages
|
|
1016
|
+
*/
|
|
1017
|
+
info: (message: string | UnpluginMessage) => void;
|
|
1018
|
+
/**
|
|
1019
|
+
* A logging function for debug messages
|
|
1020
|
+
*/
|
|
1021
|
+
debug: (message: string | UnpluginMessage) => void;
|
|
1022
|
+
/**
|
|
1023
|
+
* A logging function for trace messages
|
|
1024
|
+
*/
|
|
1025
|
+
trace: (message: string | UnpluginMessage) => void;
|
|
1002
1026
|
/**
|
|
1003
1027
|
* The metadata information
|
|
1004
1028
|
*/
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from './plugin.cjs';
|
|
2
|
-
import '../plugin-
|
|
2
|
+
import '../plugin-IenSrG8T.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 } from './plugin.js';
|
|
2
|
-
import '../plugin-
|
|
2
|
+
import '../plugin-IenSrG8T.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-IenSrG8T.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-IenSrG8T.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.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -137,22 +137,22 @@
|
|
|
137
137
|
"@babel/parser": "^7.28.5",
|
|
138
138
|
"@babel/types": "^7.28.5",
|
|
139
139
|
"@storm-software/config-tools": "^1.188.19",
|
|
140
|
-
"@stryke/fs": "^0.32.
|
|
141
|
-
"@stryke/path": "^0.
|
|
142
|
-
"@stryke/type-checks": "^0.3.
|
|
143
|
-
"@stryke/types": "^0.10.
|
|
140
|
+
"@stryke/fs": "^0.32.11",
|
|
141
|
+
"@stryke/path": "^0.19.0",
|
|
142
|
+
"@stryke/type-checks": "^0.3.11",
|
|
143
|
+
"@stryke/types": "^0.10.1",
|
|
144
144
|
"chalk": "5.6.2",
|
|
145
145
|
"defu": "^6.1.4",
|
|
146
146
|
"jiti": "^2.6.1",
|
|
147
|
-
"powerlines": "^0.
|
|
147
|
+
"powerlines": "^0.19.1",
|
|
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.
|
|
152
|
+
"@powerlines/nx": "^0.10.5",
|
|
153
|
+
"@powerlines/plugin-plugin": "^0.11.13",
|
|
154
154
|
"@types/node": "^22.19.0"
|
|
155
155
|
},
|
|
156
156
|
"publishConfig": { "access": "public" },
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "d25499feacd0143784f3cd426488909134bffab2"
|
|
158
158
|
}
|