Skip to content

Commit 721f39a

Browse files
committed
config: add allowImportingTsExtensions and noEmit to tsconfig
1 parent 770216c commit 721f39a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

packages/ui/theme/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './theme'
2-
export * from './uno.config'
1+
export * from './theme.ts'
2+
export * from './uno.config.ts'

packages/ui/theme/uno.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
transformerDirectives,
66
transformerVariantGroup,
77
} from 'unocss'
8-
import { theme } from './theme'
8+
import { theme } from './theme.ts'
99

1010
export const unoConfig = {
1111
presets: [

packages/ui/uno.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { defineConfig } from 'unocss'
2-
import { unoConfig } from './theme'
2+
import { unoConfig } from './theme/index.ts'
33

44
export default defineConfig(unoConfig)

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@
1919
"vite/client",
2020
"vitest/globals"
2121
],
22+
"allowImportingTsExtensions": true,
2223
"allowJs": true,
2324
"strict": true,
2425
"strictNullChecks": true,
2526
"noImplicitAny": false,
27+
"noEmit": true,
2628
// We use tsup/vite instead of tsc to build the package, so we don't need to care about this option.
2729
// Add outDir option to avoid tsconfig error in monorepo.
2830
"outDir": "dist",

uno.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'unocss'
22

3-
import config from './packages/client/uno.config'
3+
import config from './packages/client/uno.config.ts'
44

55
export default defineConfig({
66
...config,

0 commit comments

Comments
 (0)