react-public-components 1.2.5 → 1.2.7

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.
@@ -0,0 +1 @@
1
+ export * from "./src/index";
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/src/index';
package/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/index.cjs');
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "react-public-components",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "企业级现代 React 通用核心组件库,零 UI 库依赖,开箱即用",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
+ "typings": "./dist/index.d.ts",
9
10
  "exports": {
10
11
  ".": {
11
12
  "types": "./dist/index.d.ts",
12
13
  "import": "./dist/index.js",
13
14
  "require": "./dist/index.cjs"
14
15
  },
15
- "./styles.css": "./dist/index.css",
16
+ "./styles.css": "./styles.css",
16
17
  "./*": {
17
18
  "types": "./dist/*/index.d.ts",
18
19
  "import": "./dist/*/index.js",
@@ -20,7 +21,10 @@
20
21
  }
21
22
  },
22
23
  "files": [
23
- "dist"
24
+ "dist",
25
+ "styles.css",
26
+ "index.js",
27
+ "index.d.ts"
24
28
  ],
25
29
  "sideEffects": [
26
30
  "**/*.less",
@@ -28,7 +32,7 @@
28
32
  ],
29
33
  "scripts": {
30
34
  "dev": "vite",
31
- "build": "tsup && tsc --emitDeclarationOnly",
35
+ "build": "tsup && tsc --emitDeclarationOnly && node -e \"fs.writeFileSync('dist/index.d.ts', 'export * from \\\"./src/index\\\";\\n')\"",
32
36
  "build:demo": "vite build",
33
37
  "lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext ts,tsx --report-unused-disable-directives",
34
38
  "format": "prettier --write \"**/*.{ts,tsx,json,md,less,css}\"",
package/styles.css ADDED
@@ -0,0 +1 @@
1
+ @import './dist/index.css';