Skip to content

Commit

Permalink
chore: bump version & force verbatimModuleSyntax: false
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Oct 22, 2024
1 parent adc8234 commit 5fd2ccf
Show file tree
Hide file tree
Showing 10 changed files with 557 additions and 539 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-zebras-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse/ts-node-paths": patch
---

bump version & force `verbatimModuleSyntax`: false
725 changes: 367 additions & 358 deletions .yarn/releases/yarn-4.5.0.cjs → .yarn/releases/yarn-4.5.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.0.cjs
yarnPath: .yarn/releases/yarn-4.5.1.cjs
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,22 @@
"@changesets/cli": "2.27.9",
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@hyperse/eslint-config-hyperse": "^1.1.3",
"@types/node": "^22.7.5",
"@hyperse/eslint-config-hyperse": "^1.2.1",
"@types/node": "^22.7.8",
"commitizen": "4.3.1",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.12.0",
"execa": "^9.4.0",
"eslint": "^9.13.0",
"execa": "^9.4.1",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"npm-run-all": "^4.1.5",
"tsup": "^8.3.0",
"tsx": "^4.19.1",
"typescript": "^5.6.3",
"vite": "^5.4.8",
"vitest": "^2.1.2"
"vite": "^5.4.9",
"vitest": "^2.1.3"
},
"packageManager": "yarn@4.5.0",
"packageManager": "yarn@4.5.1",
"engines": {
"node": ">=20"
},
Expand Down
4 changes: 2 additions & 2 deletions src/loader/esm.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
load as loadTs,
LoadFn,
type LoadFn,
resolve as resolveTs,
ResolveFn,
type ResolveFn,
} from 'ts-node/esm';
import { pathToFileURL } from 'url';
import { pathAlias } from '../path-alias.js';
Expand Down
2 changes: 1 addition & 1 deletion src/path-alias.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fileURLToPath } from 'node:url';
import { HYPERSE_TS_NODE, HYPERSE_TS_NODE_PATHS } from './constants.js';
import { Tsconfig } from './tsconfig/index.js';
import { CompilerOptions } from './types/tsconfig.js';
import { type CompilerOptions } from './types/tsconfig.js';

class PathAlias {
#opts: CompilerOptions;
Expand Down
5 changes: 4 additions & 1 deletion src/tsconfig/getCompilerOptions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { showWarns } from '../tool/showWarns.js';
import { CompilerOptions } from '../types/tsconfig.js';
import { type CompilerOptions } from '../types/tsconfig.js';
import {
TsConfigCompilerOptionsNotFoundError,
TsConfigFieldsNotFoundError,
Expand Down Expand Up @@ -28,5 +28,8 @@ export function getCompilerOptions(path: string): CompilerOptions {
...compilerOptions,
// force use `strict` to false here, we can avoid some unnecessary ts check errors
strict: false,
// force use `verbatimModuleSyntax` to false here, we can avoid some unnecessary ts check errors
// https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax
verbatimModuleSyntax: false,
} as CompilerOptions;
}
2 changes: 1 addition & 1 deletion src/types/tsconfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TsConfigJson } from 'get-tsconfig';
import { type TsConfigJson } from 'get-tsconfig';

type SetRequired<T, K extends keyof T> = Omit<T, K> & {
[P in K]-?: NonNullable<T[P]>;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"baseUrl": "./src",
"outDir": "dist",
"rootDir": ".",
"types": ["vitest/globals"],
"types": ["vitest/globals", "node"],
"paths": {
"@hyperse/ts-node-paths": ["../src/index.js"]
}
Expand Down
Loading

0 comments on commit 5fd2ccf

Please sign in to comment.