@powerlines/plugin-swc 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-kwN2UP7t.d.cts → index-DyutCSQi.d.cts} +16 -3
- package/dist/{index-kwN2UP7t.d.ts → index-DyutCSQi.d.ts} +16 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- 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 SwcPluginResolvedConfig = ResolvedConfig & {
|
|
|
1424
1433
|
};
|
|
1425
1434
|
};
|
|
1426
1435
|
type SwcPluginContext<TResolvedConfig extends SwcPluginResolvedConfig = SwcPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
1436
|
+
declare type __ΩSwcPluginOptions = any[];
|
|
1437
|
+
declare type __ΩSwcPluginUserConfig = any[];
|
|
1438
|
+
declare type __ΩSwcPluginResolvedConfig = any[];
|
|
1439
|
+
declare type __ΩSwcPluginContext = any[];
|
|
1427
1440
|
|
|
1428
|
-
export type { Plugin as P, SwcPluginContext as S, SwcPluginOptions as a, SwcPluginUserConfig as b, SwcPluginResolvedConfig as c };
|
|
1441
|
+
export type { Plugin as P, SwcPluginContext as S, __ΩSwcPluginOptions as _, SwcPluginOptions as a, SwcPluginUserConfig as b, SwcPluginResolvedConfig as c, __ΩSwcPluginUserConfig as d, __ΩSwcPluginResolvedConfig as e, __ΩSwcPluginContext 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 SwcPluginResolvedConfig = ResolvedConfig & {
|
|
|
1424
1433
|
};
|
|
1425
1434
|
};
|
|
1426
1435
|
type SwcPluginContext<TResolvedConfig extends SwcPluginResolvedConfig = SwcPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
1436
|
+
declare type __ΩSwcPluginOptions = any[];
|
|
1437
|
+
declare type __ΩSwcPluginUserConfig = any[];
|
|
1438
|
+
declare type __ΩSwcPluginResolvedConfig = any[];
|
|
1439
|
+
declare type __ΩSwcPluginContext = any[];
|
|
1427
1440
|
|
|
1428
|
-
export type { Plugin as P, SwcPluginContext as S, SwcPluginOptions as a, SwcPluginUserConfig as b, SwcPluginResolvedConfig as c };
|
|
1441
|
+
export type { Plugin as P, SwcPluginContext as S, __ΩSwcPluginOptions as _, SwcPluginOptions as a, SwcPluginUserConfig as b, SwcPluginResolvedConfig as c, __ΩSwcPluginUserConfig as d, __ΩSwcPluginResolvedConfig as e, __ΩSwcPluginContext as f };
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var core=require('@swc/core'),
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var core=require('@swc/core'),s=require('defu'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var s__default=/*#__PURE__*/_interopDefault(s);/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var i=Object.defineProperty;var e=(t,o)=>i(t,"name",{value:o,configurable:true});const f=e((t={})=>({name:"swc",config(){return {transform:{swc:
|
|
7
|
+
var i=Object.defineProperty;var e=(t,o)=>i(t,"name",{value:o,configurable:true});const f=e((t={})=>({name:"swc",config(){return {transform:{swc:s__default.default(t,{outputPath:this.config.output.distPath,cwd:this.config.projectRoot,envName:this.config.mode,configFile:false})}}},async transform(o,n){const r=await core.transform(o,{...this.config.transform.swc,filename:n});return {id:n,code:r.code,map:r.map}}}),"plugin");var d=f;exports.default=d;exports.plugin=f;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 { S as SwcPluginContext, a as SwcPluginOptions, P as Plugin } from './index-
|
|
2
|
-
export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from './index-
|
|
1
|
+
import { S as SwcPluginContext, a as SwcPluginOptions, P as Plugin } from './index-DyutCSQi.cjs';
|
|
2
|
+
export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig, f as __ΩSwcPluginContext, _ as __ΩSwcPluginOptions, e as __ΩSwcPluginResolvedConfig, d as __ΩSwcPluginUserConfig } from './index-DyutCSQi.cjs';
|
|
3
3
|
import '@swc/core';
|
|
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 { S as SwcPluginContext, a as SwcPluginOptions, P as Plugin } from './index-
|
|
2
|
-
export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from './index-
|
|
1
|
+
import { S as SwcPluginContext, a as SwcPluginOptions, P as Plugin } from './index-DyutCSQi.js';
|
|
2
|
+
export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig, f as __ΩSwcPluginContext, _ as __ΩSwcPluginOptions, e as __ΩSwcPluginResolvedConfig, d as __ΩSwcPluginUserConfig } from './index-DyutCSQi.js';
|
|
3
3
|
import '@swc/core';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {transform}from'@swc/core';import
|
|
1
|
+
import {transform}from'@swc/core';import s from'defu';export*from'./types';/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var i=Object.defineProperty;var e=(t,o)=>i(t,"name",{value:o,configurable:true});const f=e((t={})=>({name:"swc",config(){return {transform:{swc:
|
|
7
|
+
var i=Object.defineProperty;var e=(t,o)=>i(t,"name",{value:o,configurable:true});const f=e((t={})=>({name:"swc",config(){return {transform:{swc:s(t,{outputPath:this.config.output.distPath,cwd:this.config.projectRoot,envName:this.config.mode,configFile:false})}}},async transform(o,n){const r=await transform(o,{...this.config.transform.swc,filename:n});return {id:n,code:r.code,map:r.map}}}),"plugin");var h=f;export{h as default,f as plugin};
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-
|
|
1
|
+
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig, f as __ΩSwcPluginContext, _ as __ΩSwcPluginOptions, e as __ΩSwcPluginResolvedConfig, d as __ΩSwcPluginUserConfig } from '../index-DyutCSQi.cjs';
|
|
2
2
|
import '@swc/core';
|
|
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 { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-
|
|
1
|
+
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig, f as __ΩSwcPluginContext, _ as __ΩSwcPluginOptions, e as __ΩSwcPluginResolvedConfig, d as __ΩSwcPluginUserConfig } from '../index-DyutCSQi.js';
|
|
2
2
|
import '@swc/core';
|
|
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 '@swc/core';
|
|
2
|
-
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-
|
|
2
|
+
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig, f as __ΩSwcPluginContext, _ as __ΩSwcPluginOptions, e as __ΩSwcPluginResolvedConfig, d as __ΩSwcPluginUserConfig } from '../index-DyutCSQi.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 '@swc/core';
|
|
2
|
-
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-
|
|
2
|
+
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig, f as __ΩSwcPluginContext, _ as __ΩSwcPluginOptions, e as __ΩSwcPluginResolvedConfig, d as __ΩSwcPluginUserConfig } from '../index-DyutCSQi.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-swc",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform project code with SWC.",
|
|
6
6
|
"repository": {
|
|
@@ -129,13 +129,13 @@
|
|
|
129
129
|
"dependencies": {
|
|
130
130
|
"@swc/core": "^1.15.2",
|
|
131
131
|
"defu": "^6.1.4",
|
|
132
|
-
"powerlines": "^0.
|
|
132
|
+
"powerlines": "^0.23.3"
|
|
133
133
|
},
|
|
134
134
|
"devDependencies": {
|
|
135
|
-
"@powerlines/nx": "^0.10.
|
|
136
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
137
|
-
"@types/node": "^
|
|
135
|
+
"@powerlines/nx": "^0.10.20",
|
|
136
|
+
"@powerlines/plugin-plugin": "^0.11.28",
|
|
137
|
+
"@types/node": "^24.10.1"
|
|
138
138
|
},
|
|
139
139
|
"publishConfig": { "access": "public" },
|
|
140
|
-
"gitHead": "
|
|
140
|
+
"gitHead": "6e43200541ace2946694195c092642e7ac2f3098"
|
|
141
141
|
}
|