Skip to content

Commit

Permalink
refactor: share settings file for ts templates
Browse files Browse the repository at this point in the history
  • Loading branch information
thucpn committed Sep 20, 2024
1 parent c4041e2 commit f659721
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 358 deletions.
9 changes: 9 additions & 0 deletions helpers/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ export const installTSTemplate = async ({
cwd: path.join(compPath, "engines", "typescript", engine),
});

// copy settings file to engine folder
const settingPath = path.join(
compPath,
"engines",
"typescript",
"settings.ts",
);
await copy("settings.ts", enginePath, { cwd: settingPath });

/**
* Copy the selected UI files to the target directory and reference it.
*/
Expand Down
179 changes: 0 additions & 179 deletions templates/types/streaming/express/src/controllers/engine/settings.ts

This file was deleted.

179 changes: 0 additions & 179 deletions templates/types/streaming/nextjs/app/api/chat/engine/settings.ts

This file was deleted.

0 comments on commit f659721

Please sign in to comment.