|
4 | 4 | "description": "Sigma Computing Plugin Client API", |
5 | 5 | "license": "MIT", |
6 | 6 | "homepage": "https://github.com/sigmacomputing/plugin", |
7 | | - "main": "./dist/index.js", |
| 7 | + "type": "module", |
| 8 | + "main": "./dist/cjs/index.cjs", |
| 9 | + "module": "./dist/esm/index.js", |
| 10 | + "types": "./dist/cjs/index.d.cts", |
| 11 | + "exports": { |
| 12 | + ".": { |
| 13 | + "import": { |
| 14 | + "types": "./dist/esm/index.d.ts", |
| 15 | + "default": "./dist/esm/index.js" |
| 16 | + }, |
| 17 | + "require": { |
| 18 | + "types": "./dist/cjs/index.d.cts", |
| 19 | + "default": "./dist/cjs/index.cjs" |
| 20 | + } |
| 21 | + }, |
| 22 | + "./package.json": "./package.json" |
| 23 | + }, |
8 | 24 | "repository": { |
9 | 25 | "type": "git", |
10 | 26 | "url": "https://github.com/sigmacomputing/plugin.git" |
|
15 | 31 | }, |
16 | 32 | "packageManager": "yarn@4.13.0", |
17 | 33 | "files": [ |
18 | | - "dist/**/*" |
| 34 | + "dist/**/*", |
| 35 | + "src/**/*", |
| 36 | + "!src/**/__tests__/**/*" |
19 | 37 | ], |
20 | | - "typesVersions": { |
21 | | - "*": { |
22 | | - "react": [ |
23 | | - "dist/react/index.d.ts" |
24 | | - ] |
25 | | - } |
26 | | - }, |
27 | 38 | "publishConfig": { |
28 | 39 | "access": "public" |
29 | 40 | }, |
30 | 41 | "scripts": { |
31 | | - "build": "yarn tsc --build tsconfig.build.json", |
32 | | - "build:watch": "yarn build --watch", |
| 42 | + "build": "tsdown", |
| 43 | + "build:watch": "tsdown --watch", |
33 | 44 | "format": "yarn oxfmt", |
34 | 45 | "lint": "yarn oxlint", |
35 | 46 | "precommit": "lint-staged", |
36 | 47 | "publish": "yarn build && yarn npm publish", |
37 | 48 | "test": "jest --ci", |
38 | | - "test:watch": "yarn test --watch" |
| 49 | + "test:watch": "yarn test --watch", |
| 50 | + "types": "tsc --noEmit" |
39 | 51 | }, |
40 | 52 | "peerDependencies": { |
41 | | - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", |
42 | | - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" |
| 53 | + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" |
43 | 54 | }, |
44 | 55 | "peerDependenciesMeta": { |
45 | 56 | "react": { |
46 | 57 | "optional": true |
47 | | - }, |
48 | | - "react-dom": { |
49 | | - "optional": true |
50 | 58 | } |
51 | 59 | }, |
52 | 60 | "devDependencies": { |
53 | | - "@jest/types": "^27.5.1", |
54 | | - "@types/jest": "^27.5.1", |
55 | | - "@types/node": "^18.7.14", |
| 61 | + "@arethetypeswrong/core": "^0.18.2", |
| 62 | + "@types/jest": "^30.0.0", |
| 63 | + "@types/node": "^24.0.0", |
56 | 64 | "@types/react": "^19.0.0", |
57 | | - "@types/react-dom": "^19.0.0", |
58 | 65 | "jest": "^30.3.0", |
59 | 66 | "jest-environment-jsdom": "^30.3.0", |
60 | | - "jest-watch-typeahead": "^2.1.1", |
61 | | - "lint-staged": "^13.0.3", |
| 67 | + "jest-watch-typeahead": "^3.0.1", |
| 68 | + "lint-staged": "^16.4.0", |
62 | 69 | "oxfmt": "^0.38.0", |
63 | 70 | "oxlint": "^1.53.0", |
64 | 71 | "oxlint-tsgolint": "^0.16.0", |
65 | | - "ts-jest": "^29.4.6", |
66 | | - "ts-node": "^10.9.2", |
67 | | - "typescript": "^4.8.2" |
| 72 | + "publint": "^0.3.18", |
| 73 | + "ts-jest": "^29.4.9", |
| 74 | + "tsdown": "^0.21.10", |
| 75 | + "typescript": "^6.0.2", |
| 76 | + "unplugin-unused": "^0.5.7" |
68 | 77 | } |
69 | 78 | } |
0 commit comments