UNPKG

2.52 kBJSONView Raw
1{
2 "name": "@shopify/graphql-client",
3 "version": "0.10.4",
4 "description": "Shopify GraphQL Client - A lightweight generic GraphQL JS client to interact with Shopify GraphQL APIs",
5 "repository": {
6 "type": "git",
7 "url": "git+https://github.com/Shopify/shopify-app-js.git"
8 },
9 "author": "Shopify",
10 "license": "MIT",
11 "main": "./dist/umd/graphql-client.min.js",
12 "browser": "./dist/umd/graphql-client.min.js",
13 "module": "./dist/index.mjs",
14 "types": "./dist/graphql-client.d.ts",
15 "exports": {
16 ".": {
17 "module": {
18 "types": "./dist/ts/index.d.ts",
19 "default": "./dist/index.mjs"
20 },
21 "import": {
22 "types": "./dist/ts/index.d.ts",
23 "default": "./dist/index.mjs"
24 },
25 "require": {
26 "types": "./dist/ts/index.d.ts",
27 "default": "./dist/index.js"
28 },
29 "default": "./dist/index.mjs"
30 }
31 },
32 "scripts": {
33 "lint": "eslint . --ext .js,.ts",
34 "build": "yarn tsc -p ./tsconfig.build.json && yarn run rollup",
35 "test": "jest",
36 "test:ci": "yarn test",
37 "rollup": "rollup -c --bundleConfigAsCjs",
38 "clean": "rimraf dist/*",
39 "changeset": "changeset",
40 "version": "changeset version",
41 "release": "yarn build && changeset publish"
42 },
43 "jest": {
44 "projects": [
45 {
46 "displayName": {
47 "name": "test:browser",
48 "color": "blue"
49 },
50 "testEnvironment": "jsdom",
51 "testPathIgnorePatterns": [
52 "(/__tests__/.*|(\\.|/)server(\\.|/)(test|spec))\\.[jt]sx?$"
53 ]
54 },
55 {
56 "displayName": {
57 "name": "test:server",
58 "color": "yellow"
59 },
60 "testPathIgnorePatterns": [
61 "(/__tests__/.*|(\\.|/)browser(\\.|/)(test|spec))\\.[jt]sx?$"
62 ]
63 }
64 ],
65 "setupFilesAfterEnv": [
66 "./src/tests/setupTests.ts"
67 ],
68 "transform": {
69 ".*": "babel-jest"
70 }
71 },
72 "publishConfig": {
73 "access": "public"
74 },
75 "keywords": [
76 "shopify",
77 "node",
78 "graphql",
79 "Admin API",
80 "Storefront API"
81 ],
82 "files": [
83 "dist/**/*.*",
84 "!node_modules"
85 ],
86 "dependencies": {},
87 "devDependencies": {
88 "jest-environment-jsdom": "^29.5.0",
89 "jest-fetch-mock": "^3.0.3",
90 "regenerator-runtime": "^0.14.1",
91 "web-streams-polyfill": "^4.0.0"
92 },
93 "bugs": {
94 "url": "https://github.com/Shopify/shopify-app-js/issues"
95 },
96 "homepage": "https://github.com/Shopify/shopify-app-js/tree/main/packages/api-clients/graphql-client#readme"
97}