From a16e5cf062d757b55d6c610ffdc411296e081f76 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Thu, 7 Aug 2025 16:41:19 +0200 Subject: [PATCH 1/3] copy package.json type to fix the cli build --- apps/create-hypergraph/scripts/copy-package-json.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/create-hypergraph/scripts/copy-package-json.ts b/apps/create-hypergraph/scripts/copy-package-json.ts index 7d99f23e..a55a400a 100644 --- a/apps/create-hypergraph/scripts/copy-package-json.ts +++ b/apps/create-hypergraph/scripts/copy-package-json.ts @@ -1,7 +1,7 @@ -import * as path from 'node:path'; -import * as FileSystem from '@effect/platform/FileSystem'; import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem'; +import * as FileSystem from '@effect/platform/FileSystem'; import { Effect, pipe } from 'effect'; +import * as path from 'node:path'; const read = pipe( FileSystem.FileSystem, @@ -15,6 +15,7 @@ const read = pipe( 'create-hypergraph': 'bin.js', ch: 'bin.js', }, + type: json.type, engines: json.engines, repository: json.repository, license: json.license, From 68e00118c857f2cde5d4d7c4fdd07c06ae982bac Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Thu, 7 Aug 2025 16:42:27 +0200 Subject: [PATCH 2/3] fix cli build by including type module in package.json --- .changeset/eighty-terms-film.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/eighty-terms-film.md diff --git a/.changeset/eighty-terms-film.md b/.changeset/eighty-terms-film.md new file mode 100644 index 00000000..828b450d --- /dev/null +++ b/.changeset/eighty-terms-film.md @@ -0,0 +1,6 @@ +--- +"create-hypergraph": patch +--- + +fix cli build by including type module in package.json + \ No newline at end of file From 70ca9c7891902cdce712533c6b1c222a0daa1b65 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Thu, 7 Aug 2025 16:47:19 +0200 Subject: [PATCH 3/3] fix lint --- apps/create-hypergraph/scripts/copy-package-json.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/create-hypergraph/scripts/copy-package-json.ts b/apps/create-hypergraph/scripts/copy-package-json.ts index a55a400a..afabe9f3 100644 --- a/apps/create-hypergraph/scripts/copy-package-json.ts +++ b/apps/create-hypergraph/scripts/copy-package-json.ts @@ -1,7 +1,7 @@ -import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem'; +import * as path from 'node:path'; import * as FileSystem from '@effect/platform/FileSystem'; +import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem'; import { Effect, pipe } from 'effect'; -import * as path from 'node:path'; const read = pipe( FileSystem.FileSystem,