|
3 | 3 | "version": "2.0.4", |
4 | 4 | "description": "Thread-safe Helmet for React 16+ and friends", |
5 | 5 | "sideEffects": false, |
6 | | - "main": "./lib/index.js", |
7 | | - "module": "./lib/index.esm.js", |
8 | | - "typings": "./lib/index.d.ts", |
| 6 | + "main": "./lib/cjs/index.js", |
| 7 | + "module": "./lib/esm/index.js", |
| 8 | + "typings": "./lib/esm/index.d.ts", |
9 | 9 | "repository": "http://github.com/staylor/react-helmet-async", |
10 | 10 | "author": "Scott Taylor <scott.c.taylor@mac.com>", |
11 | 11 | "license": "Apache-2.0", |
|
29 | 29 | "@types/react": "18.2.39", |
30 | 30 | "@types/shallowequal": "1.1.5", |
31 | 31 | "@vitejs/plugin-react": "4.2.0", |
32 | | - "esbuild": "0.19.8", |
33 | 32 | "eslint": "8.54.0", |
34 | 33 | "eslint-config-prettier": "9.0.0", |
35 | 34 | "eslint-plugin-prettier": "5.0.1", |
|
40 | 39 | "react": "18.2.0", |
41 | 40 | "react-dom": "18.2.0", |
42 | 41 | "rimraf": "5.0.5", |
43 | | - "tsx": "4.6.1", |
44 | 42 | "typescript": "5.2.2", |
45 | 43 | "vite": "4.5.0", |
46 | 44 | "vitest": "0.34.6" |
|
55 | 53 | "test": "vitest run", |
56 | 54 | "test-watch": "yarn test --watch", |
57 | 55 | "test-update": "yarn test -u", |
58 | | - "compile": "yarn run clean && NODE_ENV=production tsx build.ts && yarn types", |
59 | | - "prepare": "yarn compile && husky install", |
60 | | - "types": "tsc src/index.tsx --jsx react --declaration --esModuleInterop --allowJs --emitDeclarationOnly --outDir lib" |
| 56 | + "compile": "yarn run clean && yarn run compile:cjs && yarn run compile:esm", |
| 57 | + "compile:cjs": "tsc -p ./tsconfig.cjs.json", |
| 58 | + "compile:esm": "tsc -p ./tsconfig.esm.json", |
| 59 | + "prepare": "yarn compile && husky install" |
61 | 60 | } |
62 | 61 | } |
0 commit comments