@powerlines/plugin-oxc-transform 0.5.350 → 0.5.352

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/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.5.343-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.5.350-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -58,21 +58,19 @@ A Powerlines plugin to transform project code with [Oxc Transformer](https://oxc
58
58
 
59
59
  ## Table of Contents
60
60
 
61
- - [Powerlines - Oxc Transform Plugin](#powerlines---oxc-transform-plugin)
62
- - [Table of Contents](#table-of-contents)
63
- - [Installing](#installing)
64
- - [Reduced Package Size](#reduced-package-size)
65
- - [Development](#development)
66
- - [Building](#building)
67
- - [Running unit tests](#running-unit-tests)
68
- - [Linting](#linting)
69
- - [Storm Workspaces](#storm-workspaces)
70
- - [Roadmap](#roadmap)
71
- - [Support](#support)
72
- - [License](#license)
73
- - [Changelog](#changelog)
74
- - [Contributing](#contributing)
75
- - [Contributors](#contributors)
61
+ - [Installing](#installing)
62
+ - [Reduced Package Size](#reduced-package-size)
63
+ - [Development](#development)
64
+ - [Building](#building)
65
+ - [Running unit tests](#running-unit-tests)
66
+ - [Linting](#linting)
67
+ - [Storm Workspaces](#storm-workspaces)
68
+ - [Roadmap](#roadmap)
69
+ - [Support](#support)
70
+ - [License](#license)
71
+ - [Changelog](#changelog)
72
+ - [Contributing](#contributing)
73
+ - [Contributors](#contributors)
76
74
 
77
75
  <!-- END doctoc -->
78
76
 
@@ -1,4 +1,4 @@
1
- //#region rolldown:runtime
1
+ //#region \0rolldown/runtime.js
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -0,0 +1,3 @@
1
+ import "node:module";
2
+
3
+ export { };
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- let __stryke_path_find = require("@stryke/path/find");
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
+ let _stryke_path_find = require("@stryke/path/find");
4
4
  let defu = require("defu");
5
- defu = require_rolldown_runtime.__toESM(defu);
5
+ defu = require_runtime.__toESM(defu);
6
6
  let oxc_transform = require("oxc-transform");
7
7
 
8
8
  //#region src/index.ts
@@ -30,7 +30,7 @@ const plugin = (options = {}) => {
30
30
  "d.ts",
31
31
  "d.cts",
32
32
  "d.mts"
33
- ].includes((0, __stryke_path_find.findFileExtensionSafe)(id)) ? "dts" : (0, __stryke_path_find.findFileExtension)(id),
33
+ ].includes((0, _stryke_path_find.findFileExtensionSafe)(id)) ? "dts" : (0, _stryke_path_find.findFileExtension)(id),
34
34
  ...this.config.oxcTransform
35
35
  });
36
36
  return {
@@ -41,8 +41,7 @@ const plugin = (options = {}) => {
41
41
  }
42
42
  };
43
43
  };
44
- var src_default = plugin;
45
44
 
46
45
  //#endregion
47
- exports.default = src_default;
46
+ exports.default = plugin;
48
47
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { OxcTransformPluginContext, OxcTransformPluginOptions, OxcTransformPluginResolvedConfig, OxcTransformPluginUserConfig, __ΩOxcTransformPluginContext, __ΩOxcTransformPluginOptions, __ΩOxcTransformPluginResolvedConfig, __ΩOxcTransformPluginUserConfig } from "./types/plugin.cjs";
2
- import "./types/index.cjs";
3
2
  import { Plugin } from "powerlines";
4
3
 
5
4
  //#region src/index.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA4BwB,YAAA,CAAA,EAIL,yBAJK;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,yBAGT,GAHqC,yBAGrC,CAAA,CAAA,OAAA,CAAA,EADC,yBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA+BY,MAAA;IACR,YAAA,GAAe,yBAAA;EAAA;AAAA;;;;;;;cAUN,MAAA,oBACM,yBAAA,GAA4B,yBAAA,EAE7C,OAAA,GAAS,yBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { OxcTransformPluginContext, OxcTransformPluginOptions, OxcTransformPluginResolvedConfig, OxcTransformPluginUserConfig, __ΩOxcTransformPluginContext, __ΩOxcTransformPluginOptions, __ΩOxcTransformPluginResolvedConfig, __ΩOxcTransformPluginUserConfig } from "./types/plugin.mjs";
2
- import "./types/index.mjs";
3
2
  import { Plugin } from "powerlines";
4
3
 
5
4
  //#region src/index.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA4BwB,YAAA,CAAA,EAIL,yBAJK;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,yBAGT,GAHqC,yBAGrC,CAAA,CAAA,OAAA,CAAA,EADC,yBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA+BY,MAAA;IACR,YAAA,GAAe,yBAAA;EAAA;AAAA;;;;;;;cAUN,MAAA,oBACM,yBAAA,GAA4B,yBAAA,EAE7C,OAAA,GAAS,yBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -38,8 +38,7 @@ const plugin = (options = {}) => {
38
38
  }
39
39
  };
40
40
  };
41
- var src_default = plugin;
42
41
 
43
42
  //#endregion
44
- export { src_default as default, plugin };
43
+ export { plugin as default, plugin };
45
44
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { findFileExtension, findFileExtensionSafe } from \"@stryke/path/find\";\nimport defu from \"defu\";\nimport { transform } from \"oxc-transform\";\nimport { Plugin } from \"powerlines\";\nimport {\n OxcTransformPluginContext,\n OxcTransformPluginOptions,\n OxcTransformPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n oxcTransform?: OxcTransformPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate oxc-transform for code transformation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends OxcTransformPluginContext = OxcTransformPluginContext\n>(\n options: OxcTransformPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"oxc-transform\",\n config() {\n return {\n oxcTransform: defu(options, {\n sourceType: \"module\",\n cwd: this.config.root,\n envName: this.config.mode,\n outputPath: this.config.output.buildPath,\n sourcemap: this.config.mode === \"development\"\n })\n } as Partial<OxcTransformPluginUserConfig>;\n },\n async transform(code, id) {\n const result = await transform(id, code, {\n lang: ([\"d.ts\", \"d.cts\", \"d.mts\"].includes(findFileExtensionSafe(id))\n ? \"dts\"\n : findFileExtension(id)) as OxcTransformPluginOptions[\"lang\"],\n ...this.config.oxcTransform\n });\n\n return { id, code: result.code, map: result.map };\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AA0CA,MAAa,UAGX,UAAqC,EAAE,KAClB;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO,EACL,cAAc,KAAK,SAAS;IAC1B,YAAY;IACZ,KAAK,KAAK,OAAO;IACjB,SAAS,KAAK,OAAO;IACrB,YAAY,KAAK,OAAO,OAAO;IAC/B,WAAW,KAAK,OAAO,SAAS;IACjC,CAAC,EACH;;EAEH,MAAM,UAAU,MAAM,IAAI;GACxB,MAAM,SAAS,MAAM,UAAU,IAAI,MAAM;IACvC,MAAO;KAAC;KAAQ;KAAS;KAAQ,CAAC,SAAS,sBAAsB,GAAG,CAAC,GACjE,QACA,kBAAkB,GAAG;IACzB,GAAG,KAAK,OAAO;IAChB,CAAC;AAEF,UAAO;IAAE;IAAI,MAAM,OAAO;IAAM,KAAK,OAAO;IAAK;;EAEpD;;AAGH,kBAAe"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { findFileExtension, findFileExtensionSafe } from \"@stryke/path/find\";\nimport defu from \"defu\";\nimport { transform } from \"oxc-transform\";\nimport { Plugin } from \"powerlines\";\nimport {\n OxcTransformPluginContext,\n OxcTransformPluginOptions,\n OxcTransformPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n oxcTransform?: OxcTransformPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate oxc-transform for code transformation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends OxcTransformPluginContext = OxcTransformPluginContext\n>(\n options: OxcTransformPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"oxc-transform\",\n config() {\n return {\n oxcTransform: defu(options, {\n sourceType: \"module\",\n cwd: this.config.root,\n envName: this.config.mode,\n outputPath: this.config.output.buildPath,\n sourcemap: this.config.mode === \"development\"\n })\n } as Partial<OxcTransformPluginUserConfig>;\n },\n async transform(code, id) {\n const result = await transform(id, code, {\n lang: ([\"d.ts\", \"d.cts\", \"d.mts\"].includes(findFileExtensionSafe(id))\n ? \"dts\"\n : findFileExtension(id)) as OxcTransformPluginOptions[\"lang\"],\n ...this.config.oxcTransform\n });\n\n return { id, code: result.code, map: result.map };\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AA0CA,MAAa,UAGX,UAAqC,EAAE,KAClB;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO,EACL,cAAc,KAAK,SAAS;IAC1B,YAAY;IACZ,KAAK,KAAK,OAAO;IACjB,SAAS,KAAK,OAAO;IACrB,YAAY,KAAK,OAAO,OAAO;IAC/B,WAAW,KAAK,OAAO,SAAS;IACjC,CAAC,EACH;;EAEH,MAAM,UAAU,MAAM,IAAI;GACxB,MAAM,SAAS,MAAM,UAAU,IAAI,MAAM;IACvC,MAAO;KAAC;KAAQ;KAAS;KAAQ,CAAC,SAAS,sBAAsB,GAAG,CAAC,GACjE,QACA,kBAAkB,GAAG;IACzB,GAAG,KAAK,OAAO;IAChB,CAAC;AAEF,UAAO;IAAE;IAAI,MAAM,OAAO;IAAM,KAAK,OAAO;IAAK;;EAEpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,yBAAA,GAA4B,QAAQ;KAEpC,4BAAA,GAA+B;EAF/B,YAAA,CAAA,EAGK,yBAH+B;AAEhD,CAAA;AAIY,KAAA,gCAAA,GAAmC,cAAA,GAAA;EAInC,YAAA,CAAA,EAHK,yBAGoB;CACX;AACtB,KAFQ,yBAER,CAAA,wBADsB,gCACtB,GAAA,gCAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,4CAAA,GAAA,EAAA;AAAd,+CAAA,GAAA,EAAA;AAAa,mDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,yBAAA,GAA4B,OAAA,CAAQ,gBAAA;AAAA,KAEpC,4BAAA,GAA+B,UAAA;EACzC,YAAA,GAAe,yBAAA;AAAA;AAAA,KAGL,gCAAA,GAAmC,cAAA;EAC7C,YAAA,GAAe,yBAAA;AAAA;AAAA,KAGL,yBAAA,yBACc,gCAAA,GACtB,gCAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,yBAAA,GAA4B,QAAQ;KAEpC,4BAAA,GAA+B;EAF/B,YAAA,CAAA,EAGK,yBAH+B;AAEhD,CAAA;AAIY,KAAA,gCAAA,GAAmC,cAAA,GAAA;EAInC,YAAA,CAAA,EAHK,yBAGoB;CACX;AACtB,KAFQ,yBAER,CAAA,wBADsB,gCACtB,GAAA,gCAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,4CAAA,GAAA,EAAA;AAAd,+CAAA,GAAA,EAAA;AAAa,mDAAA,GAAA,EAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,yBAAA,GAA4B,OAAA,CAAQ,gBAAA;AAAA,KAEpC,4BAAA,GAA+B,UAAA;EACzC,YAAA,GAAe,yBAAA;AAAA;AAAA,KAGL,gCAAA,GAAmC,cAAA;EAC7C,YAAA,GAAe,yBAAA;AAAA;AAAA,KAGL,yBAAA,yBACc,gCAAA,GACtB,gCAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-oxc-transform",
3
- "version": "0.5.350",
3
+ "version": "0.5.352",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to transform project code with Oxc Transformer.",
6
6
  "repository": {
@@ -55,7 +55,7 @@
55
55
  "default": "./dist/index.mjs"
56
56
  }
57
57
  },
58
- "./*": "./*",
58
+ "./package.json": "./package.json",
59
59
  "./types": {
60
60
  "require": {
61
61
  "types": "./dist/types/index.d.cts",
@@ -97,13 +97,13 @@
97
97
  "@stryke/path": "^0.26.19",
98
98
  "defu": "^6.1.4",
99
99
  "oxc-transform": "^0.99.0",
100
- "powerlines": "^0.41.6"
100
+ "powerlines": "^0.41.8"
101
101
  },
102
102
  "devDependencies": {
103
- "@powerlines/plugin-plugin": "^0.12.292",
103
+ "@powerlines/plugin-plugin": "^0.12.294",
104
104
  "@types/node": "^25.4.0"
105
105
  },
106
106
  "publishConfig": { "access": "public" },
107
107
  "types": "./dist/index.d.cts",
108
- "gitHead": "86bbe64da57a38d472b37261ca9d113171841a6c"
108
+ "gitHead": "40d1f94407720be23c3801f9145fdad1fe27dfb2"
109
109
  }