Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,6 @@ jobs:
strategy: all
tag: ${{ env.TAG }}

- name: Publish SDK Next package
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/next/package.json
access: public
provenance: false
strategy: all
tag: ${{ env.TAG }}

- name: Publish SDK Cli package
uses: JS-DevTools/npm-publish@v3
with:
Expand All @@ -192,16 +182,6 @@ jobs:
strategy: all
tag: ${{ env.TAG }}

- name: Publish SDK Config package
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/config/package.json
access: public
provenance: false
strategy: all
tag: ${{ env.TAG }}

- name: Create or update PR comment
if: ${{ github.event_name == 'pull_request' }}
uses: taoliujun/action-unique-comment@v1
Expand All @@ -212,8 +192,6 @@ jobs:
| Package | Version |
| ------- | -------------------- |
| SDK Cli | `@settlemint/sdk-cli@${{ env.VERSION }}` |
| SDK Config | `@settlemint/sdk-config@${{ env.VERSION }}` |
| SDK Next | `@settlemint/sdk-next@${{ env.VERSION }}` |
| SDK The Graph | `@settlemint/sdk-thegraph@${{ env.VERSION }}` |
| SDK Hasura | `@settlemint/sdk-hasura@${{ env.VERSION }}` |
| SDK JS | `@settlemint/sdk-js@${{ env.VERSION }}` |
Expand All @@ -225,5 +203,5 @@ jobs:
with:
commit_message: "chore: update package versions [skip ci]"
branch: main
file_pattern: 'package.json schema.graphql'
file_pattern: 'package.json **/package.json **/schema.graphql'

3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"biomejs.biome",
"graphql.vscode-graphql-syntax",
"inlang.vs-code-extension",
"oven.bun-vscode"
"oven.bun-vscode",
"dotenv.dotenv-vscode"
]
}
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions packages/cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env*
29 changes: 8 additions & 21 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,16 @@
"test:coverage": "bun test --coverage",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/cross-spawn": "^6",
"@types/npmcli__package-json": "^4"
},
"devDependencies": {},
"dependencies": {
"@commander-js/extra-typings": "^12",
"@graphql-codegen/cli": "^5",
"@graphql-codegen/schema-ast": "^4",
"@graphql-codegen/typescript": "^4",
"@graphql-codegen/typescript-graphql-request": "^6",
"@graphql-codegen/typescript-operations": "^4",
"@inquirer/prompts": "^6.0.0",
"@npmcli/package-json": "^6.0.0",
"@settlemint/sdk-config": "workspace:*",
"commander": "^12",
"cross-spawn": "^7",
"dotenv": "^16",
"giget": "^1",
"graphql": "^16",
"openapi-typescript": "^7",
"ts-deepmerge": "^7",
"viem": "^2",
"yocto-spinner": "^0.1",
"@inquirer/confirm": "^4",
"@inquirer/input": "^3",
"@inquirer/password": "^3",
"@inquirer/select": "^3",
"@settlemint/sdk-js": "workspace:*",
"@settlemint/sdk-utils": "workspace:*",
"is-in-ci": "^1.0.0",
"yoctocolors": "^2"
},
"peerDependencies": {},
Expand Down
34 changes: 3 additions & 31 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,12 @@
* ```
*/

import { codegenCommand } from "@/commands/codegen";
import { connectCommand } from "@/commands/connect";
import { createCommand } from "@/commands/create";
import { Command } from "@commander-js/extra-typings";
import dotenv from "dotenv";
import { ascii } from "@settlemint/sdk-utils/terminal";
import pkg from "../package.json";
import { customDeploymentCommand } from "./commands/custom-deployment";
import { forgeCommand } from "./commands/forge";
import { printCancel } from "./lib/cli-message";

// Load environment variables from .env.local and .env files
// Override existing env vars with those found in the files
dotenv.config({
path: [
...(process.env.NODE_ENV !== "production" ? [".env.development", "../.env.development"] : []),
".env.local",
"../.env.local",
".env",
"../.env",
],
override: true,
});
ascii();

/**
* The main Command instance for the SettleMint CLI.
Expand All @@ -53,10 +37,6 @@ sdkcli

// Add commands to the CLI
sdkcli.addCommand(connectCommand());
sdkcli.addCommand(codegenCommand());
sdkcli.addCommand(createCommand());
sdkcli.addCommand(forgeCommand());
sdkcli.addCommand(customDeploymentCommand());

/**
* Parses command line arguments and executes the appropriate command.
Expand All @@ -73,12 +53,4 @@ sdkcli.addCommand(customDeploymentCommand());
* });
* ```
*/
sdkcli.parseAsync(process.argv).catch(async (reason) => {
// If an error occurs:
// 1. Cancel the current operation
printCancel("An unexpected error occurred. Please report it as a bug:");
// 2. Log the error to the console
console.error(reason);
// 3. Exit the process with an error code
process.exit(1);
});
sdkcli.parseAsync(process.argv);
200 changes: 0 additions & 200 deletions packages/cli/src/commands/codegen.ts

This file was deleted.

Loading