@powerlines/plugin-oxc-transform 0.5.8 → 0.5.9
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-B8OQ0eP1.d.cts +1318 -0
- package/dist/index-B8OQ0eP1.d.ts +1318 -0
- package/dist/src/index.cjs +7 -0
- package/dist/src/index.d.cts +33 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +22 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +22 -0
- package/dist/types/plugin.d.ts +22 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +7 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var find=require('@stryke/path/find'),f=require('defu'),oxcTransform=require('oxc-transform'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var f__default=/*#__PURE__*/_interopDefault(f);/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
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.outputPath,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]}})});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, P as Plugin } from '../index-B8OQ0eP1.cjs';
|
|
2
|
+
export { c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-B8OQ0eP1.cjs';
|
|
3
|
+
import 'oxc-transform';
|
|
4
|
+
import '@storm-software/build-tools/types';
|
|
5
|
+
import '@storm-software/config-tools/types';
|
|
6
|
+
import '@storm-software/config/types';
|
|
7
|
+
import '@stryke/types/base';
|
|
8
|
+
import '@stryke/types/configuration';
|
|
9
|
+
import '@stryke/types/file';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@stryke/env/get-env-paths';
|
|
12
|
+
import '@stryke/types/package-json';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'oxc-parser';
|
|
15
|
+
import 'semver';
|
|
16
|
+
import 'unplugin';
|
|
17
|
+
import '@stryke/types/tsconfig';
|
|
18
|
+
import 'typescript';
|
|
19
|
+
import '@stryke/json/types';
|
|
20
|
+
import 'memfs';
|
|
21
|
+
import 'node:fs';
|
|
22
|
+
import 'unionfs';
|
|
23
|
+
import '@stryke/types/array';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to integrate oxc-transform for code transformation.
|
|
27
|
+
*
|
|
28
|
+
* @param options - The plugin options.
|
|
29
|
+
* @returns A Powerlines plugin instance.
|
|
30
|
+
*/
|
|
31
|
+
declare const plugin: <TContext extends OxcTransformPluginContext = OxcTransformPluginContext>(options?: OxcTransformPluginOptions) => Plugin<TContext>;
|
|
32
|
+
|
|
33
|
+
export { OxcTransformPluginContext, OxcTransformPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, P as Plugin } from '../index-B8OQ0eP1.js';
|
|
2
|
+
export { c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-B8OQ0eP1.js';
|
|
3
|
+
import 'oxc-transform';
|
|
4
|
+
import '@storm-software/build-tools/types';
|
|
5
|
+
import '@storm-software/config-tools/types';
|
|
6
|
+
import '@storm-software/config/types';
|
|
7
|
+
import '@stryke/types/base';
|
|
8
|
+
import '@stryke/types/configuration';
|
|
9
|
+
import '@stryke/types/file';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@stryke/env/get-env-paths';
|
|
12
|
+
import '@stryke/types/package-json';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'oxc-parser';
|
|
15
|
+
import 'semver';
|
|
16
|
+
import 'unplugin';
|
|
17
|
+
import '@stryke/types/tsconfig';
|
|
18
|
+
import 'typescript';
|
|
19
|
+
import '@stryke/json/types';
|
|
20
|
+
import 'memfs';
|
|
21
|
+
import 'node:fs';
|
|
22
|
+
import 'unionfs';
|
|
23
|
+
import '@stryke/types/array';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to integrate oxc-transform for code transformation.
|
|
27
|
+
*
|
|
28
|
+
* @param options - The plugin options.
|
|
29
|
+
* @returns A Powerlines plugin instance.
|
|
30
|
+
*/
|
|
31
|
+
declare const plugin: <TContext extends OxcTransformPluginContext = OxcTransformPluginContext>(options?: OxcTransformPluginOptions) => Plugin<TContext>;
|
|
32
|
+
|
|
33
|
+
export { OxcTransformPluginContext, OxcTransformPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {findFileExtension,findFileExtensionSafe}from'@stryke/path/find';import f from'defu';import {transformAsync}from'oxc-transform';export*from'./types';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
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.outputPath,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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var plugin=require('./plugin');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-B8OQ0eP1.cjs';
|
|
2
|
+
import 'oxc-transform';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-B8OQ0eP1.js';
|
|
2
|
+
import 'oxc-transform';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./plugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import 'oxc-transform';
|
|
2
|
+
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-B8OQ0eP1.cjs';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import 'oxc-transform';
|
|
2
|
+
export { O as OxcTransformPluginContext, a as OxcTransformPluginOptions, c as OxcTransformPluginResolvedConfig, b as OxcTransformPluginUserConfig } from '../index-B8OQ0eP1.js';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
File without changes
|
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.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform project code with Oxc Transformer.",
|
|
6
6
|
"repository": {
|
|
@@ -104,16 +104,16 @@
|
|
|
104
104
|
"powerlines-plugin"
|
|
105
105
|
],
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@stryke/path": "^0.
|
|
107
|
+
"@stryke/path": "^0.18.5",
|
|
108
108
|
"defu": "^6.1.4",
|
|
109
109
|
"oxc-transform": "^0.95.0",
|
|
110
|
-
"powerlines": "^0.
|
|
110
|
+
"powerlines": "^0.15.0"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@powerlines/nx": "^0.
|
|
114
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
115
|
-
"@types/node": "^22.
|
|
113
|
+
"@powerlines/nx": "^0.10.0",
|
|
114
|
+
"@powerlines/plugin-plugin": "^0.11.8",
|
|
115
|
+
"@types/node": "^22.19.0"
|
|
116
116
|
},
|
|
117
117
|
"publishConfig": { "access": "public" },
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "b64f9a9d53b6eb8054c361da347f6623a7ba9e45"
|
|
119
119
|
}
|