@powerlines/plugin-oxc-transform 0.5.25 → 0.5.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/{index-D6LfVDQr.d.cts → index-DeXqKwCv.d.cts} +16 -3
- package/dist/{index-D6LfVDQr.d.ts → index-DeXqKwCv.d.ts} +16 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -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 +6 -6
|
@@ -218,8 +218,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
|
218
218
|
tsconfigFilePath: string;
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
-
declare const __VFS_PATCH__
|
|
222
|
-
declare const __VFS_REVERT__
|
|
221
|
+
declare const __VFS_PATCH__ = "__VFS_PATCH__";
|
|
222
|
+
declare const __VFS_REVERT__ = "__VFS_REVERT__";
|
|
223
223
|
type OutputModeType = "fs" | "virtual";
|
|
224
224
|
interface VirtualFile {
|
|
225
225
|
/**
|
|
@@ -628,6 +628,15 @@ interface OutputConfig {
|
|
|
628
628
|
* @defaultValue "dist/\{projectRoot\}"
|
|
629
629
|
*/
|
|
630
630
|
outputPath?: string;
|
|
631
|
+
/**
|
|
632
|
+
* The output directory path for the project build.
|
|
633
|
+
*
|
|
634
|
+
* @remarks
|
|
635
|
+
* 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.
|
|
636
|
+
*
|
|
637
|
+
* @defaultValue "\{projectRoot\}/dist"
|
|
638
|
+
*/
|
|
639
|
+
distPath?: string;
|
|
631
640
|
/**
|
|
632
641
|
* The format of the output files
|
|
633
642
|
*
|
|
@@ -1424,5 +1433,9 @@ type OxcTransformPluginResolvedConfig = ResolvedConfig & {
|
|
|
1424
1433
|
};
|
|
1425
1434
|
};
|
|
1426
1435
|
type OxcTransformPluginContext<TResolvedConfig extends OxcTransformPluginResolvedConfig = OxcTransformPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
1436
|
+
declare type __ΩOxcTransformPluginOptions = any[];
|
|
1437
|
+
declare type __ΩOxcTransformPluginUserConfig = any[];
|
|
1438
|
+
declare type __ΩOxcTransformPluginResolvedConfig = any[];
|
|
1439
|
+
declare type __ΩOxcTransformPluginContext = any[];
|
|
1427
1440
|
|
|
1428
|
-
export type { OxcTransformPluginContext as O, Plugin as P, OxcTransformPluginOptions as a, OxcTransformPluginUserConfig as b, OxcTransformPluginResolvedConfig as c };
|
|
1441
|
+
export type { OxcTransformPluginContext as O, Plugin as P, __ΩOxcTransformPluginOptions as _, OxcTransformPluginOptions as a, OxcTransformPluginUserConfig as b, OxcTransformPluginResolvedConfig as c, __ΩOxcTransformPluginUserConfig as d, __ΩOxcTransformPluginResolvedConfig as e, __ΩOxcTransformPluginContext as f };
|
|
@@ -218,8 +218,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
|
218
218
|
tsconfigFilePath: string;
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
-
declare const __VFS_PATCH__
|
|
222
|
-
declare const __VFS_REVERT__
|
|
221
|
+
declare const __VFS_PATCH__ = "__VFS_PATCH__";
|
|
222
|
+
declare const __VFS_REVERT__ = "__VFS_REVERT__";
|
|
223
223
|
type OutputModeType = "fs" | "virtual";
|
|
224
224
|
interface VirtualFile {
|
|
225
225
|
/**
|
|
@@ -628,6 +628,15 @@ interface OutputConfig {
|
|
|
628
628
|
* @defaultValue "dist/\{projectRoot\}"
|
|
629
629
|
*/
|
|
630
630
|
outputPath?: string;
|
|
631
|
+
/**
|
|
632
|
+
* The output directory path for the project build.
|
|
633
|
+
*
|
|
634
|
+
* @remarks
|
|
635
|
+
* 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.
|
|
636
|
+
*
|
|
637
|
+
* @defaultValue "\{projectRoot\}/dist"
|
|
638
|
+
*/
|
|
639
|
+
distPath?: string;
|
|
631
640
|
/**
|
|
632
641
|
* The format of the output files
|
|
633
642
|
*
|
|
@@ -1424,5 +1433,9 @@ type OxcTransformPluginResolvedConfig = ResolvedConfig & {
|
|
|
1424
1433
|
};
|
|
1425
1434
|
};
|
|
1426
1435
|
type OxcTransformPluginContext<TResolvedConfig extends OxcTransformPluginResolvedConfig = OxcTransformPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
1436
|
+
declare type __ΩOxcTransformPluginOptions = any[];
|
|
1437
|
+
declare type __ΩOxcTransformPluginUserConfig = any[];
|
|
1438
|
+
declare type __ΩOxcTransformPluginResolvedConfig = any[];
|
|
1439
|
+
declare type __ΩOxcTransformPluginContext = any[];
|
|
1427
1440
|
|
|
1428
|
-
export type { OxcTransformPluginContext as O, Plugin as P, OxcTransformPluginOptions as a, OxcTransformPluginUserConfig as b, OxcTransformPluginResolvedConfig as c };
|
|
1441
|
+
export type { OxcTransformPluginContext as O, Plugin as P, __ΩOxcTransformPluginOptions as _, OxcTransformPluginOptions as a, OxcTransformPluginUserConfig as b, OxcTransformPluginResolvedConfig as c, __ΩOxcTransformPluginUserConfig as d, __ΩOxcTransformPluginResolvedConfig as e, __ΩOxcTransformPluginContext as f };
|
package/dist/index.cjs
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var e=Object.defineProperty;var s=(n,t)=>e(n,"name",{value:t,configurable:true});const c=s((n={})=>({name:"oxc-transform",config(){return {transform:{oxc:f__default.default(n,{sourceType:"module",cwd:this.config.projectRoot,envName:this.config.mode,outputPath:this.config.output.
|
|
7
|
+
var e=Object.defineProperty;var s=(n,t)=>e(n,"name",{value:t,configurable:true});const c=s((n={})=>({name:"oxc-transform",config(){return {transform:{oxc:f__default.default(n,{sourceType:"module",cwd:this.config.projectRoot,envName:this.config.mode,outputPath:this.config.output.distPath,sourcemap:this.config.mode==="development"})}}},async transform(t,o){const r=await oxcTransform.transformAsync(o,t,{lang:["d.ts","d.cts","d.mts"].includes(find.findFileExtensionSafe(o))?"dts":find.findFileExtension(o),...this.config.transform.oxc});return {id:o,code:r.code,map:r.map}}}),"plugin");var y=c;exports.default=y;exports.plugin=c;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, P as Plugin } from './index-
|
|
2
|
-
export { c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from './index-
|
|
1
|
+
import { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, P as Plugin } from './index-DeXqKwCv.cjs';
|
|
2
|
+
export { c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig, f as __ΩOxcTransformPluginContext, _ as __ΩOxcTransformPluginOptions, e as __ΩOxcTransformPluginResolvedConfig, d as __ΩOxcTransformPluginUserConfig } from './index-DeXqKwCv.cjs';
|
|
3
3
|
import 'oxc-transform';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, P as Plugin } from './index-
|
|
2
|
-
export { c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from './index-
|
|
1
|
+
import { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, P as Plugin } from './index-DeXqKwCv.js';
|
|
2
|
+
export { c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig, f as __ΩOxcTransformPluginContext, _ as __ΩOxcTransformPluginOptions, e as __ΩOxcTransformPluginResolvedConfig, d as __ΩOxcTransformPluginUserConfig } from './index-DeXqKwCv.js';
|
|
3
3
|
import 'oxc-transform';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
package/dist/index.js
CHANGED
|
@@ -4,4 +4,4 @@ import {findFileExtension,findFileExtensionSafe}from'@stryke/path/find';import f
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var e=Object.defineProperty;var s=(n,t)=>e(n,"name",{value:t,configurable:true});const c=s((n={})=>({name:"oxc-transform",config(){return {transform:{oxc:f(n,{sourceType:"module",cwd:this.config.projectRoot,envName:this.config.mode,outputPath:this.config.output.
|
|
7
|
+
var e=Object.defineProperty;var s=(n,t)=>e(n,"name",{value:t,configurable:true});const c=s((n={})=>({name:"oxc-transform",config(){return {transform:{oxc:f(n,{sourceType:"module",cwd:this.config.projectRoot,envName:this.config.mode,outputPath:this.config.output.distPath,sourcemap:this.config.mode==="development"})}}},async transform(t,o){const r=await transformAsync(o,t,{lang:["d.ts","d.cts","d.mts"].includes(findFileExtensionSafe(o))?"dts":findFileExtension(o),...this.config.transform.oxc});return {id:o,code:r.code,map:r.map}}}),"plugin");var v=c;export{v as default,c as plugin};
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-
|
|
1
|
+
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig, f as __ΩOxcTransformPluginContext, _ as __ΩOxcTransformPluginOptions, e as __ΩOxcTransformPluginResolvedConfig, d as __ΩOxcTransformPluginUserConfig } from '../index-DeXqKwCv.cjs';
|
|
2
2
|
import 'oxc-transform';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-
|
|
1
|
+
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig, f as __ΩOxcTransformPluginContext, _ as __ΩOxcTransformPluginOptions, e as __ΩOxcTransformPluginResolvedConfig, d as __ΩOxcTransformPluginUserConfig } from '../index-DeXqKwCv.js';
|
|
2
2
|
import 'oxc-transform';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'oxc-transform';
|
|
2
|
-
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-
|
|
2
|
+
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig, f as __ΩOxcTransformPluginContext, _ as __ΩOxcTransformPluginOptions, e as __ΩOxcTransformPluginResolvedConfig, d as __ΩOxcTransformPluginUserConfig } from '../index-DeXqKwCv.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'oxc-transform';
|
|
2
|
-
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-
|
|
2
|
+
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig, f as __ΩOxcTransformPluginContext, _ as __ΩOxcTransformPluginOptions, e as __ΩOxcTransformPluginResolvedConfig, d as __ΩOxcTransformPluginUserConfig } from '../index-DeXqKwCv.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-oxc-transform",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform project code with Oxc Transformer.",
|
|
6
6
|
"repository": {
|
|
@@ -107,13 +107,13 @@
|
|
|
107
107
|
"@stryke/path": "^0.19.2",
|
|
108
108
|
"defu": "^6.1.4",
|
|
109
109
|
"oxc-transform": "^0.95.0",
|
|
110
|
-
"powerlines": "^0.
|
|
110
|
+
"powerlines": "^0.23.3"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@powerlines/nx": "^0.10.
|
|
114
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
115
|
-
"@types/node": "^
|
|
113
|
+
"@powerlines/nx": "^0.10.20",
|
|
114
|
+
"@powerlines/plugin-plugin": "^0.11.28",
|
|
115
|
+
"@types/node": "^24.10.1"
|
|
116
116
|
},
|
|
117
117
|
"publishConfig": { "access": "public" },
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "6e43200541ace2946694195c092642e7ac2f3098"
|
|
119
119
|
}
|