Skip to content

Commit

Permalink
chore(cli): Update entrypoint and changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Feb 21, 2024
1 parent 11e1aae commit 42f3958
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 27 deletions.
5 changes: 0 additions & 5 deletions .changeset/blue-boats-dance.md

This file was deleted.

5 changes: 3 additions & 2 deletions .changeset/nice-worms-deny.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
'@gql.tada/cli': minor
'gql.tada': minor
'@gql.tada/cli-utils': minor
---

Add `tada` CLI capable of generating the introspection types file
Add CLI entrypoint `gql-tada` capable of generating the types file without the LSP running
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ package-lock.json
.astro/
.netlify/
/tsconfig.vitest-temp.json
/cli
2 changes: 2 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../dist/gql-tada-cli.js');
17 changes: 0 additions & 17 deletions cli/package.json

This file was deleted.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
"types": "./dist/gql-tada.d.ts",
"sideEffects": false,
"bin": {
"gql.tada": "./dist/gql-tada-cli.js",
"gql-tada": "./dist/gql-tada-cli.js"
"gql.tada": "./bin/cli.js",
"gql-tada": "./bin/cli.js"
},
"files": [
"LICENSE.md",
"README.md",
"cli/",
"bin/",
"dist/"
],
"exports": {
Expand Down Expand Up @@ -61,6 +63,7 @@
"bugs": {
"url": "https://github.com/0no-co/gql.tada/issues"
},
"homepage": "https://gql-tada.0no.co/",
"license": "MIT",
"prettier": {
"singleQuote": true,
Expand Down
16 changes: 15 additions & 1 deletion packages/cli-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "@gql.tada/cli-utils",
"version": "0.0.0",
"public": true,
"description": "Main logic for gql.tada’s CLI tool.",
"author": "0no.co <hi@0no.co>",
"sideEffects": false,
"source": "./src/index.ts",
"main": "./dist/gql-tada-cli",
"module": "./dist/gql-tada-cli.mjs",
"types": "./dist/gql-tada-cli.d.ts",
"exports": {
".": {
"types": "./dist/gql-tada-cli.d.ts",
Expand All @@ -20,6 +24,15 @@
"README.md",
"dist/"
],
"repository": {
"type": "git",
"url": "https://github.com/0no-co/gql.tada.git",
"directory": "packages/cli-utils"
},
"bugs": {
"url": "https://github.com/0no-co/gql.tada/issues"
},
"homepage": "https://gql-tada.0no.co/",
"license": "MIT",
"scripts": {
"build": "rollup -c ../../scripts/rollup.config.mjs"
Expand All @@ -33,7 +46,8 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@urql/introspection": "^1.0.3"
"@urql/introspection": "^1.0.3",
"graphql": "^16.8.1"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 42f3958

Please sign in to comment.