best-unit 0.0.23 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,5 +31,4 @@ declare global {
31
31
  }
32
32
  }
33
33
  export {};
34
-
35
- declare module "preact-custom-element";
34
+ /// <reference path="./preact-custom-element.d.ts" />
@@ -0,0 +1 @@
1
+ declare module 'preact-custom-element'
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "best-unit",
3
3
  "private": false,
4
- "version": "0.0.23",
4
+ "version": "0.0.26",
5
5
  "type": "module",
6
6
  "main": "dist/best-unit.cjs",
7
7
  "module": "dist/best-unit.js",
8
- "types": "dist/global.d.ts",
8
+ "types": "dist/types/index.d.ts",
9
9
  "scripts": {
10
10
  "dev": "vite",
11
- "build": "tsc -b && vite build && cp -r src/global.d.ts dist/global.d.ts",
11
+ "build": "tsc -b && vite build && cp -r src/types dist/types",
12
12
  "prepublishOnly": "npm version patch --no-git-tag-version",
13
13
  "preview": "vite preview"
14
14
  },
@@ -31,5 +31,4 @@ declare global {
31
31
  }
32
32
  }
33
33
  export {};
34
-
35
- declare module "preact-custom-element";
34
+ /// <reference path="./preact-custom-element.d.ts" />
@@ -1,14 +0,0 @@
1
- export declare function npmTest(): void;
2
-
3
- export declare function printCurrentTime(): void;
4
-
5
- declare namespace JSX {
6
- interface IntrinsicElements {
7
- 'x-greeting': {
8
- name?: string; // 组件支持的属性
9
- [key: string]: any;
10
- };
11
- }
12
- }
13
-
14
- /// <reference path="./preact-custom-element.d.ts" />