|
6 | 6 | "repository": "git@github.com:proto-graphql/proto-graphql-js.git", |
7 | 7 | "author": "izumin5210 <m@izum.in>", |
8 | 8 | "license": "MIT", |
9 | | - "main": "./dist/index.js", |
10 | | - "module": "./dist/index.mjs", |
| 9 | + "type": "module", |
| 10 | + "main": "./dist/index.cjs", |
| 11 | + "module": "./dist/index.js", |
11 | 12 | "types": "./dist/index.d.ts", |
12 | 13 | "exports": { |
13 | 14 | ".": { |
14 | | - "import": "./dist/index.mjs", |
15 | | - "require": "./dist/index.js", |
16 | | - "types": "./dist/index.d.ts", |
17 | | - "default": "./dist/index.js" |
| 15 | + "import": { |
| 16 | + "types": "./dist/index.d.ts", |
| 17 | + "default": "./dist/index.js" |
| 18 | + }, |
| 19 | + "require": { |
| 20 | + "types": "./dist/index.d.ts", |
| 21 | + "default": "./dist/index.cjs" |
| 22 | + } |
18 | 23 | } |
19 | 24 | }, |
| 25 | + "files": ["src/", "dist/", "!src/**/*.test.ts", "!src/**/__tests__/"], |
| 26 | + "sideEffects": false, |
20 | 27 | "private": false, |
21 | 28 | "publishConfig": { |
22 | 29 | "access": "public" |
|
35 | 42 | "@proto-graphql/testapis-proto": "workspace:*", |
36 | 43 | "@proto-graphql/tsconfig": "workspace:*" |
37 | 44 | }, |
38 | | - "files": ["src/", "dist/", "!src/**/*.test.ts", "!src/**/__tests__/"], |
39 | 45 | "scripts": { |
40 | 46 | "build": "tsup", |
41 | 47 | "prebuild": "../../../scripts/compile-extensions-proto", |
|
0 commit comments