Skip to content

Commit

Permalink
πŸ”§ rewriteRelativeImportExtensions (#76)
Browse files Browse the repository at this point in the history
* πŸ”§ rewriteRelativeImportExtensions

* βͺ No need to list dist anymore

* πŸ”¨ Split test and test:watch

* πŸ’š No need to "run test run" anymore
  • Loading branch information
NatoBoram authored Oct 10, 2024
1 parent 3e0b224 commit a5ea5ae
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
- run: pnpm run build --noEmit
- run: pnpm run lint
- run: pnpm run test run
- run: pnpm run test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"lint": "eslint . && markdownlint-cli2 \"**/*.md\" && prettier --check .",
"lint:fix": "eslint --fix --quiet .; markdownlint-cli2 \"**/*.md\" --fix; prettier --list-different --write .",
"start": "node dist/main.js",
"test": "vitest"
"test": "vitest run",
"test:watch": "vitest"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
Expand All @@ -64,7 +65,7 @@
"prettier": "^3.3.3",
"tsx": "^4.19.1",
"typedoc": "^0.26.8",
"typescript": "^5.6.3",
"typescript": "5.7.0-beta",
"typescript-eslint": "^8.8.1",
"vitest": "^2.1.2"
},
Expand Down
70 changes: 35 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { test } from "vitest"
import * as index from "./index.js"
import * as index from "./index.ts"

test("index", ({ expect }) => {
expect(index).toBeDefined()
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* @module
*/

export type * from "./main.js"
export type * from "./main.ts"
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"rootDir": "./src",
"moduleResolution": "NodeNext",
"typeRoots": ["./node_modules/@types", "./src/types"],
"rewriteRelativeImportExtensions": true,
"resolvePackageJsonExports": true,
"resolvePackageJsonImports": true,
"resolveJsonModule": true,
Expand Down

0 comments on commit a5ea5ae

Please sign in to comment.