Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cmd/project/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func projectInitCommandRunE(clients *shared.ClientFactory, cmd *cobra.Command, a

// Install the project dependencies, such as .slack/ and runtime packages
// Existing projects initialized always default to config.ManifestSourceLocal.
// The link command will switch it to config.ManifestSourceRemote
_ = create.InstallProjectDependencies(ctx, clients, projectDirPath, config.ManifestSourceLocal)

// Add an existing app to the project
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,12 @@ func InstallProjectDependencies(
manifestSource = config.ManifestSourceLocal
}

// Set non-Deno (non-ROSI) projects to ManifestSourceRemote.
// Set non-Deno (non-ROSI) projects to ManifestSourceLocal.
// TODO: should check if Slack hosted project, but the SDKConfig has not been initialized yet.
if clients.Runtime != nil {
isDenoProject := strings.Contains(strings.ToLower(clients.Runtime.Name()), "deno")
if !isDenoProject {
manifestSource = config.ManifestSourceRemote
manifestSource = config.ManifestSourceLocal
}
}

Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/create/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,10 @@ func Test_Create_installProjectDependencies(t *testing.T) {
`Updated config.json manifest source to "project" (local)`,
},
},
"When non-Deno project, should set manifest source to app settings (remote)": {
"When non-Deno project, should set manifest source to project (local)": {
runtime: "node",
expectedOutputs: []string{
`Updated config.json manifest source to "app settings" (remote)`,
`Updated config.json manifest source to "project" (local)`,
},
},
}
Expand Down
Loading