@powerlines/plugin-swc 0.5.24 → 0.5.28

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.
@@ -218,8 +218,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
218
218
  tsconfigFilePath: string;
219
219
  };
220
220
 
221
- declare const __VFS_PATCH__: unique symbol;
222
- declare const __VFS_REVERT__: unique symbol;
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
  *
@@ -218,8 +218,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
218
218
  tsconfigFilePath: string;
219
219
  };
220
220
 
221
- declare const __VFS_PATCH__: unique symbol;
222
- declare const __VFS_REVERT__: unique symbol;
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
  *
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var core=require('@swc/core'),u=require('defu'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var u__default=/*#__PURE__*/_interopDefault(u);/*****************************************
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:u__default.default(t,{outputPath:this.config.output.outputPath,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]}})});
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-kwN2UP7t.cjs';
2
- export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from './index-kwN2UP7t.cjs';
1
+ import { S as SwcPluginContext, a as SwcPluginOptions, P as Plugin } from './index-BbskvudL.cjs';
2
+ export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from './index-BbskvudL.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-kwN2UP7t.js';
2
- export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from './index-kwN2UP7t.js';
1
+ import { S as SwcPluginContext, a as SwcPluginOptions, P as Plugin } from './index-BbskvudL.js';
2
+ export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from './index-BbskvudL.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 u from'defu';export*from'./types';/*****************************************
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:u(t,{outputPath:this.config.output.outputPath,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};
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};
@@ -1,4 +1,4 @@
1
- export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-kwN2UP7t.cjs';
1
+ export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BbskvudL.cjs';
2
2
  import '@swc/core';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
@@ -1,4 +1,4 @@
1
- export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-kwN2UP7t.js';
1
+ export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BbskvudL.js';
2
2
  import '@swc/core';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
@@ -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-kwN2UP7t.cjs';
2
+ export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BbskvudL.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -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-kwN2UP7t.js';
2
+ export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BbskvudL.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.24",
3
+ "version": "0.5.28",
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.22.1"
132
+ "powerlines": "^0.23.2"
133
133
  },
134
134
  "devDependencies": {
135
- "@powerlines/nx": "^0.10.15",
136
- "@powerlines/plugin-plugin": "^0.11.23",
135
+ "@powerlines/nx": "^0.10.19",
136
+ "@powerlines/plugin-plugin": "^0.11.27",
137
137
  "@types/node": "^22.19.1"
138
138
  },
139
139
  "publishConfig": { "access": "public" },
140
- "gitHead": "79514f9dda337550c9e4064a7a6e3938bd9aca08"
140
+ "gitHead": "628334bf5e96fa739c6a2b0a325f133ea928b530"
141
141
  }