|
2 | 2 | "name": "@dittolive/react-ditto",
|
3 | 3 | "version": "0.11.1",
|
4 | 4 | "description": "React wrappers for Ditto",
|
5 |
| - "main": "dist/index.js", |
6 |
| - "types": "dist/index.d.ts", |
| 5 | + "main": "dist/cjs/index.js", |
| 6 | + "module": "dist/esm/index.js", |
| 7 | + "types": "dist/esm/index.d.ts", |
| 8 | + "exports": { |
| 9 | + ".": { |
| 10 | + "require": "./dist/cjs/index.js", |
| 11 | + "import": "./dist/esm/index.js", |
| 12 | + "types": "./dist/esm/index.d.ts" |
| 13 | + } |
| 14 | + }, |
7 | 15 | "scripts": {
|
8 |
| - "build": "rimraf dist && tsc", |
| 16 | + "build": "rimraf dist && npm run build:esm && npm run build:cjs && npm run build:static-files && scripts/fix-exports-type.js", |
| 17 | + "build:esm": "tsc -p tsconfig.esm.json", |
| 18 | + "build:cjs": "tsc -p tsconfig.json", |
| 19 | + "build:static-files": "cp package.json CHANGELOG.md README.md dist/", |
9 | 20 | "test": "karma start",
|
10 |
| - "types": "tsc -p tsconfig.json", |
| 21 | + "types": "tsc -p tsconfig.esm.json", |
11 | 22 | "lint": "eslint . --ext .ts,.tsx",
|
12 | 23 | "lint:fix": "eslint . --ext .ts,.tsx --fix",
|
13 | 24 | "docs:generate": "rimraf documentation-website/* && typedoc",
|
14 | 25 | "docs:serve": "live-server ./documentation-website"
|
15 | 26 | },
|
16 |
| - "author": "", |
| 27 | + "author": "DittoLive Inc.", |
17 | 28 | "license": "ISC",
|
18 | 29 | "repository": {
|
19 | 30 | "type": "git",
|
|
45 | 56 | "eslint": "^8.27.0",
|
46 | 57 | "eslint-config-prettier": "^9.1.0",
|
47 | 58 | "eslint-plugin-deprecation": "^2.0.0",
|
| 59 | + "eslint-plugin-import": "^2.30.0", |
48 | 60 | "eslint-plugin-prettier": "^5.1.3",
|
49 | 61 | "eslint-plugin-react": "^7.31.10",
|
50 | 62 | "eslint-plugin-react-hooks": "^4.6.0",
|
|
0 commit comments