-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
855 additions
and
2,386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
node_modules | ||
.idea | ||
dist | ||
build | ||
.DS_Store | ||
*.log | ||
coverage | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
* | ||
!dist/src | ||
!build/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dist | ||
build | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
{ | ||
"name": "graphql-request", | ||
"version": "0.0.0-dripip", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"require": { | ||
"types": "./build/cjs/index.d.ts", | ||
"default": "./build/cjs/index.js" | ||
}, | ||
"import": { | ||
"types": "./build/esm/index.d.ts", | ||
"default": "./build/esm/index.js" | ||
} | ||
} | ||
}, | ||
"types": "./build/esm/index.d.ts", | ||
"packageManager": "[email protected]", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist", | ||
"build", | ||
"src" | ||
], | ||
"bundlesize": [ | ||
{ | ||
"path": "./dist/index.js", | ||
"maxSize": "15 kB" | ||
} | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jasonkuhrt/graphql-request.git" | ||
|
@@ -21,8 +28,7 @@ | |
"graphql", | ||
"request", | ||
"fetch", | ||
"graphql-client", | ||
"apollo" | ||
"graphql-client" | ||
], | ||
"author": { | ||
"name": "Jason Kuhrt", | ||
|
@@ -41,7 +47,10 @@ | |
"check:types": "pnpm tsc --noEmit", | ||
"check:format": "prettier --check .", | ||
"prepublishOnly": "pnpm build", | ||
"build": "rm -rf dist && tsc --project tsconfig.build.json", | ||
"build": "pnpm clean && pnpm build:cjs && pnpm build:esm", | ||
"build:cjs": "pnpm tsc --project tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > build/cjs/package.json", | ||
"build:esm": "pnpm tsc --project tsconfig.esm.json", | ||
"clean": "tsc --build --clean && rm -rf build", | ||
"test": "vitest", | ||
"test:coverage": "pnpm test -- --coverage", | ||
"release:stable": "dripip stable", | ||
|
@@ -59,6 +68,7 @@ | |
}, | ||
"devDependencies": { | ||
"@prisma-labs/prettier-config": "^0.1.0", | ||
"@tsconfig/node16": "^1.0.3", | ||
"@types/body-parser": "^1.19.2", | ||
"@types/express": "^4.17.16", | ||
"@types/extract-files": "^8.1.1", | ||
|
Oops, something went wrong.