Skip to content

Commit a4aad01

Browse files
committed
feat: use-request type optimized
1 parent d322425 commit a4aad01

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"main": "./lib/index.js",
1515
"module": "./es/index.js",
16-
"types": "./lib/index.d.ts",
16+
"types": "./types/index.d.ts",
1717
"unpkg": "dist/index.es.js",
1818
"keywords": [
1919
"vue-hooks-plus",

packages/hooks/scripts/build.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import path, { resolve } from 'path'
1+
import path from 'path'
22
import { UserConfig } from 'vite'
33
import dts from 'vite-plugin-dts'
44
import { buildPlugin } from 'vite-plugin-build'
5-
import { movePlugin } from './plugin'
65

76
export const buildConfig: UserConfig = {
87
plugins: [
@@ -40,14 +39,8 @@ export const buildConfig: UserConfig = {
4039

4140
export const buildFullTypesConfig: UserConfig = {
4241
plugins: [
43-
movePlugin({
44-
from: resolve(__dirname, '..', 'types/index.d.ts'),
45-
to: resolve(__dirname, '..', 'dist/types/index.d.ts'),
46-
}),
4742
dts({
4843
include: ['src/**/*.ts'],
49-
insertTypesEntry: true,
50-
rollupTypes: true,
5144
outputDir: path.resolve(__dirname, '..', 'types'),
5245
}),
5346
],

0 commit comments

Comments
 (0)