Skip to content

Commit 818f964

Browse files
feat(create-spacetime): move to npm-packages folder, updates to use spacetimedb package
1 parent 7949bea commit 818f964

17 files changed

Lines changed: 67 additions & 68 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

cli/create-spacetime/src/constants.ts renamed to npm-packages/create-spacetime/src/constants.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
export const DEFAULT_TARGET_DIR = "my-spacetime-app";
22

33
export const SPACETIME_VERSIONS = {
4-
SDK: "^1.3.1",
5-
RUNTIME: "1.3.*",
6-
CLI: "1.3",
4+
SDK: "^1.4.0",
5+
CLI: "1.4.*",
76
} as const;
87

98
export const SERVER_CONFIG = {
File renamed without changes.

cli/create-spacetime/src/lib/create-project.ts renamed to npm-packages/create-spacetime/src/lib/create-project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ async function configureRustServer(serverDir: string, name: string) {
223223

224224
async function updateClientConfig(root: string, moduleName: string, useLocal: boolean) {
225225
const targetUri = useLocal ? SERVER_CONFIG.LOCAL_URI : SERVER_CONFIG.MAINCLOUD_URI;
226-
const appPath = path.join(root, "client/src/App.tsx");
226+
const appPath = path.join(root, "client/src/main.tsx");
227227

228228
try {
229229
if (await fs.pathExists(appPath)) {

cli/create-spacetime/src/templates/index.ts renamed to npm-packages/create-spacetime/src/templates/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CLIENT_REPO = "clockworklabs/spacetimedb-typescript-sdk/examples/quickstart-chat";
1+
const CLIENT_REPO = "clockworklabs/SpacetimeDB/crates/bindings-typescript/examples/quickstart-chat";
22

33
export const TEMPLATES = {
44
rust: {

0 commit comments

Comments
 (0)