|
8 | 8 | "type": "git", |
9 | 9 | "url": "https://github.com/zalando-incubator/graphql-jit.git" |
10 | 10 | }, |
11 | | - "main": "dist/cjs/index.js", |
12 | | - "module": "dist/esm/index.js", |
| 11 | + "main": "dist/index.js", |
| 12 | + "module": "dist/index.mjs", |
13 | 13 | "exports": { |
| 14 | + "./package.json": "./package.json", |
14 | 15 | ".": { |
15 | | - "import": "./dist/esm/index.js", |
16 | | - "require": "./dist/cjs/index.js" |
| 16 | + "import": "./dist/index.mjs", |
| 17 | + "require": "./dist/index.js" |
17 | 18 | }, |
18 | 19 | "./dist": { |
19 | | - "import": "./dist/esm/index.js", |
20 | | - "require": "./dist/cjs/index.js" |
| 20 | + "import": "./dist/index.mjs", |
| 21 | + "require": "./dist/index.js" |
21 | 22 | }, |
22 | 23 | "./dist/*": { |
23 | | - "import": "./dist/esm/*.js", |
24 | | - "require": "./dist/cjs/*.js" |
| 24 | + "import": "./dist/*.mjs", |
| 25 | + "require": "./dist/*.js" |
| 26 | + }, |
| 27 | + "./dist/*.mjs": { |
| 28 | + "import": "./dist/*.mjs", |
| 29 | + "require": "./dist/*.js" |
25 | 30 | }, |
26 | 31 | "./dist/*.js": { |
27 | | - "import": "./dist/esm/*.js", |
28 | | - "require": "./dist/cjs/*.js" |
| 32 | + "import": "./dist/*.mjs", |
| 33 | + "require": "./dist/*.js" |
29 | 34 | } |
30 | 35 | }, |
31 | 36 | "scripts": { |
32 | | - "precommit": "lint-staged", |
33 | | - "prepublishOnly": "yarn && yarn build", |
34 | | - "format": "prettier --write 'src/**/*.ts'", |
| 37 | + "benchmark": "NODE_ENV=production ./src/__benchmarks__/benchmarks.ts", |
| 38 | + "build": "yarn tsup-node", |
| 39 | + "check-exports": "attw --pack .", |
35 | 40 | "check-format": "prettier -l 'src/**/*.ts'", |
36 | | - "lint": "eslint --ext .ts .", |
37 | | - "lint-fix": "eslint --ext .ts . --fix", |
38 | | - "build": "yarn build:esm && yarn build:cjs", |
39 | | - "build:esm": "tsc --project tsconfig.esm.json", |
40 | | - "build:cjs": "tsc --project tsconfig.cjs.json", |
41 | | - "test": "jest", |
42 | | - "mutation-test": "stryker run", |
| 41 | + "check-tsc": "tsc --noEmit", |
43 | 42 | "codecov": "codecov", |
44 | | - "benchmark": "NODE_ENV=production ./src/__benchmarks__/benchmarks.ts" |
| 43 | + "eslint": "eslint --ext .ts .", |
| 44 | + "format": "prettier --write 'src/**/*.ts'", |
| 45 | + "lint-fix": "yarn eslint --fix", |
| 46 | + "lint": "yarn eslint", |
| 47 | + "mutation-test": "stryker run", |
| 48 | + "precommit": "lint-staged", |
| 49 | + "prepublishOnly": "yarn && yarn build", |
| 50 | + "test": "jest" |
45 | 51 | }, |
46 | 52 | "files": [ |
47 | 53 | "dist/*" |
|
75 | 81 | "graphql": ">=15" |
76 | 82 | }, |
77 | 83 | "devDependencies": { |
| 84 | + "@arethetypeswrong/cli": "^0.16.2", |
78 | 85 | "@graphql-tools/schema": "^10.0.0", |
79 | 86 | "@stryker-mutator/core": "^7.1.1", |
80 | 87 | "@stryker-mutator/jest-runner": "^7.1.1", |
|
99 | 106 | "jest": "^29.7.0", |
100 | 107 | "lint-staged": "^14.0.1", |
101 | 108 | "prettier": "^3.0.3", |
| 109 | + "tsup": "^8.2.4", |
102 | 110 | "typescript": "^5.2.2" |
103 | 111 | }, |
104 | 112 | "dependencies": { |
|
0 commit comments