Skip to content

Commit

Permalink
Fix some errors in the create-helper (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjg authored Nov 8, 2023
1 parent f60bd2a commit 0e9fe30
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/create-repo-node-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node
// This is needed to tell your system that this file is a Node script.

import fs from 'fs'
import path from 'path'
Expand All @@ -18,9 +17,9 @@ function createPackageJson(projectName: string) {
start: 'node index.js',
},
dependencies: {
'@automerge/automerge-repo': '^0.1',
'@automerge/automerge-repo-network-websocket': '^0.1',
'@automerge/automerge-repo-storage-nodefs': '^0.1',
'@automerge/automerge-repo': '^1.0',
'@automerge/automerge-repo-network-websocket': '^1.0',
'@automerge/automerge-repo-storage-nodefs': '^1.0',
},
}
fs.writeFileSync(
Expand All @@ -36,7 +35,7 @@ import { NodeFSStorageAdapter } from "@automerge/automerge-repo-storage-nodefs"
import { next as Automerge } from "@automerge/automerge"
const repo = new Repo({
storage: [new NodeFSStorageAdapter("./db")],
storage: new NodeFSStorageAdapter("./db"),
network: [new BrowserWebSocketClientAdapter("wss://sync.automerge.org")]
})
`
Expand Down

0 comments on commit 0e9fe30

Please sign in to comment.