|
9 | 9 | "types": "dist/index.d.ts",
|
10 | 10 | "exports": {
|
11 | 11 | "./test-utils": {
|
12 |
| - "types": "./dist/test-utils.d.mts", |
13 |
| - "require": "./dist/test-utils.js", |
14 |
| - "default": "./dist/test-utils.mjs" |
| 12 | + "import": { |
| 13 | + "types": "./test-utils/index.d.mts", |
| 14 | + "default": "./test-utils/index.mjs" |
| 15 | + }, |
| 16 | + "require": { |
| 17 | + "types": "./test-utils/index.d.ts", |
| 18 | + "default": "./test-utils/index.js" |
| 19 | + } |
15 | 20 | },
|
16 | 21 | ".": {
|
17 |
| - "types": "./dist/index.d.mts", |
18 |
| - "require": "./dist/index.js", |
19 |
| - "default": "./dist/index.mjs" |
| 22 | + "import": { |
| 23 | + "types": "./dist/index.d.mts", |
| 24 | + "default": "./dist/index.mjs" |
| 25 | + }, |
| 26 | + "require": { |
| 27 | + "types": "./dist/index.d.ts", |
| 28 | + "default": "./dist/index.js" |
| 29 | + } |
20 | 30 | }
|
21 | 31 | },
|
22 |
| - "files": ["dist"], |
| 32 | + "files": ["dist", "test-utils"], |
23 | 33 | "author": "Daniel Schmidt",
|
24 | 34 | "license": "MIT",
|
25 | 35 | "sideEffects": false,
|
|
30 | 40 | "packageManager": "pnpm@9.5.0+sha256.dbdf5961c32909fb030595a9daa1dae720162e658609a8f92f2fa99835510ca5",
|
31 | 41 | "scripts": {
|
32 | 42 | "prebuild": "rm -rf dist lib",
|
33 |
| - "build": "run-s build:*", |
34 |
| - "build:bundle": "tsup src/index.tsx", |
35 |
| - "build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts", |
36 |
| - "build:utils": "tsup src/test-utils.ts --no-clean --no-sourcemap", |
37 |
| - "postbuild": "size-limit", |
| 43 | + "build": "tsup && mkdir dist/esm && cp dist/index.mjs dist/esm/index.js", |
| 44 | + "postbuild": "attw --pack && publint && size-limit", |
38 | 45 | "dev": "run-p dev:*",
|
39 | 46 | "dev:package": "tsup src/index.tsx --watch",
|
40 | 47 | "dev:storybook": "pnpm --filter storybook dev",
|
41 | 48 | "lint": "biome check .",
|
42 | 49 | "version": "pnpm build",
|
43 |
| - "storybook:build": "pnpm build:bundle && pnpm --filter storybook build", |
| 50 | + "storybook:build": "pnpm build && pnpm --filter storybook build", |
44 | 51 | "test": "vitest",
|
45 | 52 | "test:browser": "vitest --workspace=vitest.workspace.ts"
|
46 | 53 | },
|
|
104 | 111 | "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
105 | 112 | },
|
106 | 113 | "devDependencies": {
|
| 114 | + "@arethetypeswrong/cli": "^0.15.3", |
107 | 115 | "@biomejs/biome": "^1.8.3",
|
108 | 116 | "@size-limit/preset-small-lib": "^11.1.4",
|
109 | 117 | "@testing-library/jest-dom": "^6.4.6",
|
|
118 | 126 | "microbundle": "^0.15.1",
|
119 | 127 | "npm-run-all": "^4.1.5",
|
120 | 128 | "playwright": "^1.45.1",
|
| 129 | + "publint": "^0.2.8", |
121 | 130 | "react": "^18.3.1",
|
122 | 131 | "react-dom": "^18.3.1",
|
123 | 132 | "simple-git-hooks": "^2.11.1",
|
|
0 commit comments