Skip to content

Commit 36ad6fb

Browse files
committed
move typesync studio
1 parent 90e37c2 commit 36ad6fb

Some content is hidden

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

53 files changed

+7
-7
lines changed

biome.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"!**/variant-schema.ts",
1919
"!**/packages/create-hypergraph/template-*/**",
2020
"!**/*.css",
21-
"!packages/hypergraph/typesync-studio/src/generated/**/*.ts"
21+
"!**/packages/typesync-studio/src/generated/**/*.ts"
2222
]
2323
},
2424
"formatter": {

packages/hypergraph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"scripts": {
4444
"build": "tsc -b --force tsconfig.build.json && babel dist --plugins annotate-pure-calls --out-dir dist --source-maps && pnpm run prepare-typesync-studio && node ../../scripts/package.mjs",
4545
"build:hypergraph": "tsc -b --force tsconfig.build.json && babel dist --plugins annotate-pure-calls --out-dir dist --source-maps && node ../../scripts/package.mjs",
46-
"build:typesync-studio": "cd ./typesync-studio && pnpm run build",
46+
"build:typesync-studio": "cd ../typesync-studio && pnpm run build",
4747
"copy-typesync-studio-dist": "tsx scripts/copy-typesync-studio-dist.ts",
4848
"prepare-typesync-studio": "pnpm run build:typesync-studio && pnpm run copy-typesync-studio-dist",
4949
"test": "vitest",

packages/hypergraph/scripts/copy-typesync-studio-dist.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const program = Effect.gen(function* () {
66
const fs = yield* FileSystem.FileSystem;
77
const path = yield* Path.Path;
88

9-
const src = path.resolve('./', 'typesync-studio', 'dist');
10-
const dest = path.resolve('./', 'dist', 'typesync-studio', 'dist');
9+
const src = path.resolve('../', 'typesync-studio', 'dist');
10+
const dest = path.resolve('../', 'dist', 'typesync-studio', 'dist');
1111

1212
yield* fs
1313
.makeDirectory(dest, { recursive: true })

packages/hypergraph/src/cli/subcommands/typesync.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { createServer } from 'node:http';
2-
import { fileURLToPath } from 'node:url';
31
import { Command, Options } from '@effect/cli';
42
import {
53
FileSystem,
@@ -18,6 +16,8 @@ import {
1816
import { NodeHttpServer } from '@effect/platform-node';
1917
import { AnsiDoc } from '@effect/printer-ansi';
2018
import { Cause, Data, Effect, Layer, Option, Schema, Struct } from 'effect';
19+
import { createServer } from 'node:http';
20+
import { fileURLToPath } from 'node:url';
2121
import open, { type AppName, apps } from 'open';
2222
import * as Model from '../services/Model.js';
2323
import * as Typesync from '../services/Typesync.js';
@@ -141,7 +141,7 @@ const TypesyncStudioFileRouter = Effect.gen(function* () {
141141
// npm published package (when this file is in node_modules/@graphprotocol/hypergraph/dist/cli/subcommands/)
142142
path.resolve(__dirname, '..', '..', 'typesync-studio', 'dist'),
143143
// Development mode (when this file is in packages/hypergraph/src/cli/subcommands/)
144-
path.resolve(__dirname, '..', '..', '..', 'typesync-studio', 'dist'),
144+
path.resolve(__dirname, '..', '..', '..', '..', 'typesync-studio', 'dist'),
145145
];
146146

147147
const findTypesyncStudioDist = Effect.fnUntraced(function* () {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)