|
3 | 3 | "version": "4.3.3", |
4 | 4 | "description": "The easiest way to configure your development environment with your GraphQL schema (supported by most tools, editors & IDEs)", |
5 | 5 | "sideEffects": false, |
6 | | - "main": "dist/index.js", |
7 | | - "module": "dist/index.mjs", |
8 | | - "typings": "dist/index.d.ts", |
| 6 | + "main": "dist/cjs/index.js", |
| 7 | + "module": "dist/esm/index.js", |
9 | 8 | "exports": { |
10 | 9 | ".": { |
11 | | - "require": "./dist/index.js", |
12 | | - "import": "./dist/index.mjs" |
| 10 | + "require": { |
| 11 | + "types": "./dist/typings/index.d.cts", |
| 12 | + "default": "./dist/cjs/index.js" |
| 13 | + }, |
| 14 | + "import": { |
| 15 | + "types": "./dist/typings/index.d.ts", |
| 16 | + "default": "./dist/esm/index.js" |
| 17 | + }, |
| 18 | + "default": { |
| 19 | + "types": "./dist/typings/index.d.ts", |
| 20 | + "default": "./dist/esm/index.js" |
| 21 | + } |
13 | 22 | }, |
14 | | - "./*": { |
15 | | - "require": "./dist/*.js", |
16 | | - "import": "./dist/*.mjs" |
17 | | - } |
| 23 | + "./package.json": "./package.json" |
18 | 24 | }, |
| 25 | + "typings": "dist/typings/index.d.ts", |
19 | 26 | "typescript": { |
20 | | - "definition": "dist/index.d.ts" |
| 27 | + "definition": "dist/typings/index.d.ts" |
| 28 | + }, |
| 29 | + "publishConfig": { |
| 30 | + "directory": "dist", |
| 31 | + "access": "public" |
21 | 32 | }, |
| 33 | + "type": "module", |
22 | 34 | "scripts": { |
23 | 35 | "prepublishOnly": "yarn build", |
24 | 36 | "clean": "rimraf dist", |
25 | 37 | "postinstall": "patch-package", |
26 | 38 | "prebuild": "yarn clean && yarn json-schema", |
27 | | - "build": "bob build --single", |
28 | | - "prepack": "bob prepack", |
| 39 | + "build": "bob build", |
29 | 40 | "prettier": "prettier --ignore-path .gitignore --write --list-different .", |
30 | 41 | "prettier:check": "prettier --ignore-path .gitignore --check .", |
31 | 42 | "lint": "eslint --ignore-path .gitignore .", |
|
50 | 61 | "cosmiconfig-typescript-loader": "^3.1.0", |
51 | 62 | "minimatch": "4.2.1", |
52 | 63 | "ts-node": "^10.8.1", |
53 | | - "string-env-interpolation": "1.0.1" |
| 64 | + "string-env-interpolation": "1.0.1", |
| 65 | + "tslib": "^2.4.0" |
54 | 66 | }, |
55 | 67 | "devDependencies": { |
| 68 | + "@babel/core": "7.18.13", |
| 69 | + "@babel/preset-env": "7.18.10", |
| 70 | + "@babel/preset-typescript": "7.18.6", |
56 | 71 | "@changesets/cli": "2.24.3", |
57 | 72 | "@changesets/changelog-github": "0.4.6", |
58 | 73 | "@types/jest": "28.1.7", |
59 | 74 | "@types/node": "16.11.54", |
60 | 75 | "@typescript-eslint/eslint-plugin": "5.34.0", |
61 | 76 | "@typescript-eslint/parser": "5.34.0", |
62 | | - "bob-the-bundler": "1.7.3", |
| 77 | + "babel-jest": "28.1.3", |
| 78 | + "bob-the-bundler": "4.0.0", |
63 | 79 | "del": "6.1.1", |
64 | 80 | "eslint": "8.22.0", |
65 | 81 | "eslint-config-prettier": "8.5.0", |
|
73 | 89 | "prettier": "2.7.1", |
74 | 90 | "rimraf": "3.0.2", |
75 | 91 | "ts-jest": "28.0.8", |
76 | | - "tslib": "2.4.0", |
77 | 92 | "typescript": "4.7.4", |
78 | 93 | "typescript-json-schema": "0.54.0" |
79 | 94 | }, |
|
94 | 109 | "url": "https://github.com/kamilkisiela" |
95 | 110 | }, |
96 | 111 | "license": "MIT", |
97 | | - "buildOptions": { |
98 | | - "copy": [ |
99 | | - "config-schema.json" |
100 | | - ] |
| 112 | + "bob": { |
| 113 | + "build": { |
| 114 | + "copy": [ |
| 115 | + "config-schema.json" |
| 116 | + ] |
| 117 | + } |
101 | 118 | }, |
102 | 119 | "lint-staged": { |
103 | 120 | "{src,test}/**/*": [ |
|
109 | 126 | "pre-commit": "lint-staged" |
110 | 127 | } |
111 | 128 | }, |
112 | | - "publishConfig": { |
113 | | - "directory": "dist", |
114 | | - "access": "public" |
115 | | - }, |
116 | 129 | "engines": { |
117 | 130 | "node": ">= 10.0.0" |
118 | 131 | } |
|
0 commit comments