@poppinss/ts-exec 1.2.0 → 1.2.1

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.
@@ -5,7 +5,11 @@ import { type TsConfigJsonResolved } from 'get-tsconfig';
5
5
  * file in the provided search path
6
6
  */
7
7
  export declare function getConfig(searchPath: string | URL): {
8
- tsConfig: TsConfigJsonResolved | null;
8
+ tsConfig: (TsConfigJsonResolved & {
9
+ compilerOptions?: {
10
+ rewriteRelativeImportExtensions?: boolean;
11
+ };
12
+ }) | null;
9
13
  tsConfigPath: string | null;
10
14
  swcConfig: SWCConfig;
11
15
  };
@@ -146,7 +146,7 @@ var resolve = async (specifier, context, nextResolve) => {
146
146
  try {
147
147
  return await nextResolve(specifier, context);
148
148
  } catch (error) {
149
- if (!tsConfig?.compilerOptions?.allowArbitraryExtensions && error.code === "ERR_MODULE_NOT_FOUND" && error.url && isLocalPath(error.url)) {
149
+ if (!tsConfig?.compilerOptions?.rewriteRelativeImportExtensions && error.code === "ERR_MODULE_NOT_FOUND" && error.url && isLocalPath(error.url)) {
150
150
  let url = error.url;
151
151
  const fileExtension = extname(url);
152
152
  if (fileExtension === ".js") {
@@ -1,4 +1,4 @@
1
- import { Config as SwcConfig } from '@swc/core';
1
+ import { type Config as SwcConfig } from '@swc/core';
2
2
  /**
3
3
  * Transforms source code using SWC
4
4
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@poppinss/ts-exec",
3
3
  "description": "TypeScript JIT compiler built for correctness and supports legacy/experimental decorators",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -30,9 +30,9 @@
30
30
  "quick:test": "node --experimental-transform-types --enable-source-maps bin/test.ts"
31
31
  },
32
32
  "devDependencies": {
33
- "@adonisjs/eslint-config": "^2.0.0",
34
- "@adonisjs/prettier-config": "^1.4.4",
35
- "@adonisjs/tsconfig": "^1.4.0",
33
+ "@adonisjs/eslint-config": "^3.0.0-next.0",
34
+ "@adonisjs/prettier-config": "^1.4.5",
35
+ "@adonisjs/tsconfig": "^2.0.0-next.0",
36
36
  "@japa/assert": "^4.0.1",
37
37
  "@japa/expect": "^3.0.4",
38
38
  "@japa/expect-type": "^2.0.3",
@@ -40,20 +40,20 @@
40
40
  "@japa/runner": "^4.2.0",
41
41
  "@japa/snapshot": "^2.0.8",
42
42
  "@release-it/conventional-changelog": "^10.0.1",
43
- "@types/node": "^22.10.2",
43
+ "@types/node": "^22.15.23",
44
44
  "c8": "^10.1.3",
45
- "eslint": "^9.26.0",
45
+ "eslint": "^9.27.0",
46
46
  "ipaddr.js": "^2.2.0",
47
- "preact": "^10.26.6",
47
+ "preact": "^10.26.7",
48
48
  "preact-render-to-string": "^6.5.13",
49
49
  "prettier": "^3.5.3",
50
50
  "release-it": "^19.0.2",
51
- "tsup": "^8.4.0",
51
+ "tsup": "^8.5.0",
52
52
  "typescript": "^5.8.3"
53
53
  },
54
54
  "dependencies": {
55
55
  "@swc/core": "1.10.7",
56
- "get-tsconfig": "^4.10.0"
56
+ "get-tsconfig": "^4.10.1"
57
57
  },
58
58
  "homepage": "https://github.com/poppinss/ts-exec#readme",
59
59
  "repository": {