@poppinss/ts-exec 1.1.2 → 1.1.3

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.
@@ -92,7 +92,7 @@ function getConfig(searchPath) {
92
92
  }
93
93
 
94
94
  // src/transform.ts
95
- import { transformSync as swcTransform } from "@swc/core";
95
+ import { transform as swcTransform } from "@swc/core";
96
96
  function transformSync(source, options) {
97
97
  const input = `${source ?? ""}`;
98
98
  const { format, ...rest } = options;
@@ -193,7 +193,7 @@ var load = async function load2(url, context, nextLoad) {
193
193
  ...context,
194
194
  format: "module"
195
195
  });
196
- const { code, map } = transformSync(source.toString(), {
196
+ const { code, map } = await transformSync(source.toString(), {
197
197
  format: format ?? "module-tsx",
198
198
  filename: fileURLToPath3(url),
199
199
  ...swcConfig
@@ -5,4 +5,4 @@ import { Config as SwcConfig } from '@swc/core';
5
5
  export declare function transformSync(source: string, options: SwcConfig & {
6
6
  filename: string;
7
7
  format: 'module-typescript' | 'commonjs-typescript' | 'module-tsx';
8
- }): import("@swc/types").Output;
8
+ }): Promise<import("@swc/types").Output>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@poppinss/ts-exec",
3
3
  "description": "",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },