diff --git a/CHANGELOG.md b/CHANGELOG.md index f1d70db5..92e4f670 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - feat: Add API explorer to runtime [#578](https://github.com/hypermodeinc/modus/pull/578) - feat: Add API explorer component to runtime [#584](https://github.com/hypermodeinc/modus/pull/584) - fix: logic for jwks endpoint unmarshalling was incorrect [#594](https://github.com/hypermodeinc/modus/pull/594) +- feat: use user provided name for package.json and go.mod [#595](https://github.com/hypermodeinc/modus/pull/595) ## 2024-11-18 - AssemblyScript SDK 0.13.5 diff --git a/cli/src/commands/new/index.ts b/cli/src/commands/new/index.ts index 1e8c1f8b..71718bc0 100644 --- a/cli/src/commands/new/index.ts +++ b/cli/src/commands/new/index.ts @@ -302,6 +302,7 @@ export default class NewCommand extends BaseCommand { await execFile("npm", ["install"], execOpts); break; case SDK.Go: + await execFile("go", ["mod", "edit", "-module", name], execOpts); await execFile("go", ["mod", "download"], execOpts); break; } diff --git a/sdk/assemblyscript/templates/default/package-lock.json b/sdk/assemblyscript/templates/default/package-lock.json index e7544287..08539050 100644 --- a/sdk/assemblyscript/templates/default/package-lock.json +++ b/sdk/assemblyscript/templates/default/package-lock.json @@ -3563,4 +3563,4 @@ } } } -} +} \ No newline at end of file