|
5 | 5 | "author": "Committed", |
6 | 6 | "license": "MIT", |
7 | 7 | "private": false, |
8 | | - "main": "./dist/index.js", |
9 | | - "module": "./dist/esm/index.js", |
10 | | - "typings": "./dist/index.d.ts", |
| 8 | + "main": "dist/index.cjs.js", |
| 9 | + "module": "dist/index.esm.js", |
| 10 | + "types": "dist/index.d.ts", |
11 | 11 | "sideEffects": false, |
12 | 12 | "publishConfig": { |
13 | 13 | "access": "public", |
|
20 | 20 | "node": ">=10" |
21 | 21 | }, |
22 | 22 | "peerDependencies": { |
23 | | - "@committed/components": ">= 5.0.0", |
| 23 | + "@committed/components": ">= 8.0.0", |
24 | 24 | "react": ">= 16.8.0", |
25 | 25 | "react-dom": ">= 16.8.0" |
26 | 26 | }, |
27 | 27 | "devDependencies": { |
28 | | - "@committed/config": "*" |
| 28 | + "@committed/config": "*", |
| 29 | + "react": "^17.0.2", |
| 30 | + "react-dom": "^17.0.2" |
29 | 31 | }, |
30 | 32 | "dependencies": { |
31 | 33 | "@committed/graph": "*", |
|
35 | 37 | }, |
36 | 38 | "scripts": { |
37 | 39 | "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", |
38 | | - "build": "tsup --legacy-output && tsc", |
| 40 | + "build:clean": "rm -rf dist", |
| 41 | + "build:ts": "tsc --project tsconfig.json", |
| 42 | + "build:js": "node ../../node_modules/@committed/config/esbuild/build.mjs", |
| 43 | + "build": "npm run build:clean && npm run build:ts && npm run build:js", |
39 | 44 | "lint": "tsc && eslint './src/**/*.{ts,tsx}'", |
40 | 45 | "test": "jest --passWithNoTests", |
41 | 46 | "test:ci": "jest --coverage --passWithNoTests", |
42 | 47 | "test:watch": "jest --watch --passWithNoTests", |
43 | | - "precommit": "lint-staged", |
44 | | - "dev": "tsup --watch" |
45 | | - }, |
46 | | - "tsup": { |
47 | | - "clean": true, |
48 | | - "entry": [ |
49 | | - "src/index.ts" |
50 | | - ], |
51 | | - "format": [ |
52 | | - "cjs", |
53 | | - "esm" |
54 | | - ], |
55 | | - "target": "es2020", |
56 | | - "minify": true, |
57 | | - "sourcemap": true |
| 48 | + "precommit": "lint-staged" |
58 | 49 | }, |
59 | 50 | "repository": { |
60 | 51 | "type": "git", |
|
0 commit comments