Skip to content

Commit 5fd2ccf

Browse files
committed
chore: bump version & force verbatimModuleSyntax: false
1 parent adc8234 commit 5fd2ccf

File tree

10 files changed

+557
-539
lines changed

10 files changed

+557
-539
lines changed

.changeset/spotty-zebras-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperse/ts-node-paths": patch
3+
---
4+
5+
bump version & force `verbatimModuleSyntax`: false

.yarn/releases/yarn-4.5.0.cjs renamed to .yarn/releases/yarn-4.5.1.cjs

Lines changed: 367 additions & 358 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ enableGlobalCache: false
44

55
nodeLinker: node-modules
66

7-
yarnPath: .yarn/releases/yarn-4.5.0.cjs
7+
yarnPath: .yarn/releases/yarn-4.5.1.cjs

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,22 @@
7676
"@changesets/cli": "2.27.9",
7777
"@commitlint/cli": "19.5.0",
7878
"@commitlint/config-conventional": "19.5.0",
79-
"@hyperse/eslint-config-hyperse": "^1.1.3",
80-
"@types/node": "^22.7.5",
79+
"@hyperse/eslint-config-hyperse": "^1.2.1",
80+
"@types/node": "^22.7.8",
8181
"commitizen": "4.3.1",
8282
"cz-conventional-changelog": "3.3.0",
83-
"eslint": "^9.12.0",
84-
"execa": "^9.4.0",
83+
"eslint": "^9.13.0",
84+
"execa": "^9.4.1",
8585
"husky": "9.1.6",
8686
"lint-staged": "15.2.10",
8787
"npm-run-all": "^4.1.5",
8888
"tsup": "^8.3.0",
8989
"tsx": "^4.19.1",
9090
"typescript": "^5.6.3",
91-
"vite": "^5.4.8",
92-
"vitest": "^2.1.2"
91+
"vite": "^5.4.9",
92+
"vitest": "^2.1.3"
9393
},
94-
"packageManager": "[email protected].0",
94+
"packageManager": "[email protected].1",
9595
"engines": {
9696
"node": ">=20"
9797
},

src/loader/esm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
22
load as loadTs,
3-
LoadFn,
3+
type LoadFn,
44
resolve as resolveTs,
5-
ResolveFn,
5+
type ResolveFn,
66
} from 'ts-node/esm';
77
import { pathToFileURL } from 'url';
88
import { pathAlias } from '../path-alias.js';

src/path-alias.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { fileURLToPath } from 'node:url';
22
import { HYPERSE_TS_NODE, HYPERSE_TS_NODE_PATHS } from './constants.js';
33
import { Tsconfig } from './tsconfig/index.js';
4-
import { CompilerOptions } from './types/tsconfig.js';
4+
import { type CompilerOptions } from './types/tsconfig.js';
55

66
class PathAlias {
77
#opts: CompilerOptions;

src/tsconfig/getCompilerOptions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { showWarns } from '../tool/showWarns.js';
2-
import { CompilerOptions } from '../types/tsconfig.js';
2+
import { type CompilerOptions } from '../types/tsconfig.js';
33
import {
44
TsConfigCompilerOptionsNotFoundError,
55
TsConfigFieldsNotFoundError,
@@ -28,5 +28,8 @@ export function getCompilerOptions(path: string): CompilerOptions {
2828
...compilerOptions,
2929
// force use `strict` to false here, we can avoid some unnecessary ts check errors
3030
strict: false,
31+
// force use `verbatimModuleSyntax` to false here, we can avoid some unnecessary ts check errors
32+
// https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax
33+
verbatimModuleSyntax: false,
3134
} as CompilerOptions;
3235
}

src/types/tsconfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TsConfigJson } from 'get-tsconfig';
1+
import { type TsConfigJson } from 'get-tsconfig';
22

33
type SetRequired<T, K extends keyof T> = Omit<T, K> & {
44
[P in K]-?: NonNullable<T[P]>;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"baseUrl": "./src",
55
"outDir": "dist",
66
"rootDir": ".",
7-
"types": ["vitest/globals"],
7+
"types": ["vitest/globals", "node"],
88
"paths": {
99
"@hyperse/ts-node-paths": ["../src/index.js"]
1010
}

0 commit comments

Comments
 (0)