Skip to content

Commit b3ff78d

Browse files
feat: Add vite-tsconfig-paths plugin (#63)
* feat: Add vite-tsconfig-paths plugin * Add jsdoc link for publish function
1 parent 6e9fb71 commit b3ff78d

File tree

5 files changed

+43
-1
lines changed

5 files changed

+43
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@
8181
"stream-to-array": "^2.3.0",
8282
"v8flags": "^4.0.1",
8383
"vite-plugin-dts": "^3.7.2",
84-
"vite-plugin-externalize-deps": "^0.8.0"
84+
"vite-plugin-externalize-deps": "^0.8.0",
85+
"vite-tsconfig-paths": "^4.3.1"
8586
},
8687
"devDependencies": {
8788
"@arethetypeswrong/cli": "^0.13.10",

pnpm-lock.yaml

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ export type Options = {
1313
externalDeps?: Array<string | RegExp>
1414
}
1515

16+
/** https://tanstack.com/config/latest/docs/build */
1617
export function tanstackBuildConfig(config: Options): UserConfig

src/build/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { defineConfig } from 'vite'
44
import { preserveDirectives } from 'rollup-plugin-preserve-directives'
55
import { externalizeDeps } from 'vite-plugin-externalize-deps'
6+
import tsconfigPaths from 'vite-tsconfig-paths'
67
import dts from 'vite-plugin-dts'
78

89
/**
@@ -16,6 +17,7 @@ export const tanstackBuildConfig = (options) => {
1617
plugins: [
1718
externalizeDeps({ include: options.externalDeps ?? [] }),
1819
preserveDirectives(),
20+
tsconfigPaths(),
1921
dts({
2022
outDir: `${outDir}/esm`,
2123
entryRoot: options.srcDir,

src/publish/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import type { RunOptions } from './types'
22

3+
/** https://tanstack.com/config/latest/docs/publish */
34
export function publish(options: RunOptions): Promise<void>

0 commit comments

Comments
 (0)