Skip to content

Commit 1727db4

Browse files
Fix Minor Issues
* fix typo * fix yarn issue
1 parent 9528875 commit 1727db4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/create-gator-app/src/lib/builder.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { configurePackageJson } from "./helpers/configure-package-json";
1111
import { ErrorCodes, BuilderError } from "./types/builder-error";
1212
import { BuilderConfig } from "./config";
1313
import ora from "ora";
14+
import path from "path";
1415

1516
export class Builder {
1617
private builderConfig: BuilderConfig;
@@ -31,6 +32,9 @@ export class Builder {
3132
await this.configureWeb3Auth();
3233
}
3334
await this.configurePackage();
35+
if (this.options.packageManager === "yarn") {
36+
await this.configureYarnLock();
37+
}
3438
if (!this.options.skipInstall) {
3539
await this.installDependencies();
3640
}
@@ -105,6 +109,10 @@ export class Builder {
105109
}
106110
}
107111

112+
private async configureYarnLock(): Promise<void> {
113+
await fs.createFile(path.join(this.options.targetDir, "yarn.lock"));
114+
}
115+
108116
private async installDependencies(): Promise<void> {
109117
this.spinner.start("Installing dependencies...");
110118
try {

packages/create-gator-app/src/lib/helpers/configure-package-json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const configurePackageJson = async (
1818
if (builderConfig.shouldAddWeb3AuthConfig()) {
1919
pkgJson.dependencies = {
2020
...pkgJson.dependencies,
21-
"@web3auth/modal": "v10.0.0",
21+
"@web3auth/modal": "^10.0.0",
2222
};
2323

2424
// If the project is using vite-react, we need to add the buffer and process

0 commit comments

Comments
 (0)