Skip to content

Commit 37445c8

Browse files
committed
improve: support cjs & remove graffle code
1 parent 30b39bf commit 37445c8

File tree

148 files changed

+4
-9669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+4
-9669
lines changed

package.json

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,10 @@
33
"version": "0.0.0-dripip",
44
"packageManager": "pnpm@9.4.0",
55
"type": "module",
6-
"bin": {
7-
"graffle": "./build/cli/generate.js"
8-
},
6+
"main": "./build/entrypoints/main.js",
97
"exports": {
108
".": {
11-
"import": {
12-
"types": "./build/entrypoints/main.d.ts",
13-
"default": "./build/entrypoints/main.js"
14-
}
15-
},
16-
"./alpha/client": {
17-
"import": {
18-
"types": "./build/entrypoints/alpha/client.d.ts",
19-
"default": "./build/entrypoints/alpha/client.js"
20-
}
21-
},
22-
"./alpha/schema": {
23-
"import": {
24-
"types": "./build/entrypoints/alpha/schema.d.ts",
25-
"default": "./build/entrypoints/alpha/schema.js"
26-
}
27-
},
28-
"./alpha/schema/scalars": {
29-
"import": {
30-
"types": "./build/entrypoints/alpha/scalars.d.ts",
31-
"default": "./build/entrypoints/alpha/scalars.js"
32-
}
9+
"default": "./build/entrypoints/main.js"
3310
}
3411
},
3512
"files": [
@@ -69,7 +46,7 @@
6946
"check:publint": "publint run --strict",
7047
"prepublishOnly": "pnpm build",
7148
"build:docs": "doctoc README.md --notitle && dprint fmt README.md",
72-
"build": "pnpm clean && pnpm tsc --project tsconfig.build.json && chmod +x ./build/cli/generate.js",
49+
"build": "pnpm clean && pnpm tsc --project tsconfig.build.json",
7350
"clean": "tsc --build --clean && rm -rf build",
7451
"test": "vitest",
7552
"test:web": "vitest --environment jsdom",
@@ -80,27 +57,11 @@
8057
"release:pr": "dripip pr"
8158
},
8259
"dependencies": {
83-
"@graphql-typed-document-node/core": "^3.2.0",
84-
"@molt/command": "^0.9.0",
85-
"zod": "^3.23.8"
60+
"@graphql-typed-document-node/core": "^3.2.0"
8661
},
8762
"peerDependencies": {
88-
"@dprint/formatter": "^0.3.0",
89-
"@dprint/typescript": "^0.91.1",
90-
"dprint": "^0.46.2",
9163
"graphql": "14 - 16"
9264
},
93-
"peerDependenciesMeta": {
94-
"dprint": {
95-
"optional": true
96-
},
97-
"@dprint/formatter": {
98-
"optional": true
99-
},
100-
"@dprint/typescript": {
101-
"optional": true
102-
}
103-
},
10465
"devDependencies": {
10566
"@arethetypeswrong/cli": "^0.15.3",
10667
"@pothos/core": "^3.41.1",

pnpm-lock.yaml

Lines changed: 0 additions & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli/generate.ts

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/entrypoints/alpha/client.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/entrypoints/alpha/main.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/entrypoints/alpha/scalars.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/entrypoints/alpha/schema.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)