INNER CODE UNIT · TypeScript
getGlobsToWatch
hypermodeinc/modus · cli/src/commands/dev/index.ts:362
function getGlobsToWatch(sdk: SDK) {
const included: string[] = [];
const excluded: string[] = [".git/**", "build/**"];
switch (sdk) {
case SDK.AssemblyScript:
included.push("**/*.ts", "**/asconfig.json", "**/tsconfig.json", "**/package.json");
excluded.push("node_modules/**");
break;
case SDK.Go:
included.push("**/*.go", "**/go.mod");
excluded.push("**/*_generated.go", "**/*.generated.go", "**/*_test.go");
break;
default:
throw new Error(`Unsupported SDK: ${sdk}`);
}