Skip to content

Commit e579ca5

Browse files
committed
rename studio command to typesync in CLI and update related scripts
1 parent c1ed3ef commit e579ca5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/typesync/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build": "rm -rf dist && pnpm run build:client && tsup && pnpm run copy-all",
2626
"build:ts": "tsup",
2727
"dev": "vite build && pnpx tsx ./src/bin.ts",
28-
"dev:cli": "pnpx tsx ./src/bin.ts studio",
28+
"dev:cli": "pnpx tsx ./src/bin.ts typesync",
2929
"dev:client": "vite --force",
3030
"clean": "rimraf dist/*",
3131
"start": "node ./dist/bin.cjs",
@@ -36,7 +36,7 @@
3636
"copy-db-migrations": "cp -rp ./src/migrations ./dist/migrations",
3737
"copy-client-dist": "mkdir -p ./dist/client && cp -rp ./client/dist ./dist/client/dist",
3838
"copy-all": "pnpm run copy-package-json && pnpm run copy-db-migrations && pnpm run copy-client-dist",
39-
"hypergraph": "pnpx tsx ./src/bin.ts studio"
39+
"hypergraph": "pnpx tsx ./src/bin.ts typesync"
4040
},
4141
"devDependencies": {
4242
"@effect/cli": "latest",

apps/typesync/src/Cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import * as Command from '@effect/cli/Command';
22

3-
import { studio } from './subcommands/studio.js';
3+
import { typesync } from './subcommands/studio.js';
44

55
const hypergraph = Command.make('hypergraph').pipe(
66
Command.withDescription(
77
'Hypergraph command line interface for building and interacting with @graphprotocol/hypergraph schemas',
88
),
9-
Command.withSubcommands([studio]),
9+
Command.withSubcommands([typesync]),
1010
);
1111

1212
export const run = Command.run(hypergraph, {

apps/typesync/src/subcommands/studio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import open, { type AppName } from 'open';
1111

1212
import * as Server from '../Server.js';
1313

14-
export const studio = Command.make('studio', {
14+
export const typesync = Command.make('typesync', {
1515
args: {
1616
port: Options.integer('port').pipe(
1717
Options.withAlias('p'),

0 commit comments

Comments
 (0)