From 997b1c670a2f112823932925e7413cb8bed5112f Mon Sep 17 00:00:00 2001 From: Kirk Lin Date: Wed, 3 Jul 2024 14:55:34 +0800 Subject: [PATCH] chore: fix utils deps type --- packages/web/styles/package.json | 4 ++-- packages/web/styles/tsconfig.json | 12 ++++++------ packages/web/utils/package.json | 1 + packages/web/utils/tsconfig.json | 12 ++++++------ 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/packages/web/styles/package.json b/packages/web/styles/package.json index 21c8dd1..9395912 100644 --- a/packages/web/styles/package.json +++ b/packages/web/styles/package.json @@ -14,12 +14,12 @@ }, "./unoconfig": "./uno.config.ts" }, + "main": "./index.ts", + "module": "./index.ts", "files": [ "src", "uno.config.ts" ], - "main": "./index.ts", - "module": "./index.ts", "scripts": { "build": "tsup", "dev": "tsup --stub", diff --git a/packages/web/styles/tsconfig.json b/packages/web/styles/tsconfig.json index 9e42995..fd98bd6 100644 --- a/packages/web/styles/tsconfig.json +++ b/packages/web/styles/tsconfig.json @@ -2,17 +2,17 @@ "extends": "@celeris/tsconfig/tsconfig.base.json", "compilerOptions": { "target": "esnext", + "lib": [ + "esnext", + "dom" + ], "baseUrl": ".", "module": "esnext", "moduleResolution": "Bundler", "strict": true, - "skipLibCheck": true, - "allowSyntheticDefaultImports": true, "sourceMap": false, - "lib": [ - "esnext", - "dom" - ] + "allowSyntheticDefaultImports": true, + "skipLibCheck": true }, "include": [ "src/**/*.ts" diff --git a/packages/web/utils/package.json b/packages/web/utils/package.json index dc35e60..03b4eab 100644 --- a/packages/web/utils/package.json +++ b/packages/web/utils/package.json @@ -16,6 +16,7 @@ }, "main": "./dist/index.cjs", "module": "src/index.ts", + "types": "./dist/index.d.ts", "files": [ "dist" ], diff --git a/packages/web/utils/tsconfig.json b/packages/web/utils/tsconfig.json index 28b0aec..33d5487 100644 --- a/packages/web/utils/tsconfig.json +++ b/packages/web/utils/tsconfig.json @@ -2,17 +2,17 @@ "extends": "@celeris/tsconfig/tsconfig.base.json", "compilerOptions": { "target": "esnext", + "lib": [ + "esnext", + "dom" + ], "baseUrl": ".", "module": "esnext", "moduleResolution": "Node", "strict": true, - "skipLibCheck": true, - "allowSyntheticDefaultImports": true, "sourceMap": false, - "lib": [ - "esnext", - "dom" - ] + "allowSyntheticDefaultImports": true, + "skipLibCheck": true }, "include": [ "src/**/*.ts"