Skip to content

Commit 8c8bc38

Browse files
chore(create-spacetime): update SPACETIME_VERSIONS var namings
1 parent 818f964 commit 8c8bc38

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

npm-packages/create-spacetime/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const DEFAULT_TARGET_DIR = "my-spacetime-app";
22

33
export const SPACETIME_VERSIONS = {
44
SDK: "^1.4.0",
5-
CLI: "1.4.*",
5+
RUNTIME: "1.4.*",
66
} as const;
77

88
export const SERVER_CONFIG = {

npm-packages/create-spacetime/src/lib/create-project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ async function configureRustServer(serverDir: string, name: string) {
208208
content = content.replace(/log\.workspace = true/g, 'log = "0.4"');
209209
content = content.replace(
210210
/spacetimedb = \{ path = ".*" \}/g,
211-
`spacetimedb = "${SPACETIME_VERSIONS.CLI}"`,
211+
`spacetimedb = "${SPACETIME_VERSIONS.RUNTIME}"`,
212212
);
213213
content = content.replace(
214214
/spacetimedb-lib = \{ path = ".*" \}/g,
215-
`spacetimedb-lib = "${SPACETIME_VERSIONS.CLI}"`,
215+
`spacetimedb-lib = "${SPACETIME_VERSIONS.RUNTIME}"`,
216216
);
217217
await fs.writeFile(cargoPath, content);
218218
}

0 commit comments

Comments
 (0)