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
2 changes: 1 addition & 1 deletion templates/vsc/ts/basic-tab/.gitignore.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ node_modules/
.DS_Store

# build
lib/
dist/
2 changes: 1 addition & 1 deletion templates/vsc/ts/default-bot/.gitignore.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ node_modules/
.DS_Store

# build
lib/
dist/

# Dev tool directories
/devTools/
2 changes: 1 addition & 1 deletion templates/vsc/ts/foundry-agent-to-m365/.gitignore.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ node_modules/
.DS_Store

# build
lib/
dist/

# Dev tool directories
/devTools/
2 changes: 1 addition & 1 deletion templates/vsc/ts/message-extension-v2/.gitignore.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ node_modules/
.DS_Store

# build
lib/
dist/
2 changes: 1 addition & 1 deletion templates/vsc/ts/teams-collaborator-agent/.gitignore.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ node_modules/
.DS_Store

# build
lib/
dist/

# Dev tool directories
/devTools/
Expand Down
2 changes: 1 addition & 1 deletion templates/vsc/ts/weather-agent/.gitignore.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ node_modules/
.DS_Store

# build
lib/
dist/

# Dev tool directories
/devTools/
4 changes: 2 additions & 2 deletions templates/vsc/ts/weather-agent/package.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"description": "Weather Agent with Microsoft 365 Agents SDK and LangChain",
"author": "Microsoft",
"license": "MIT",
"main": "./lib/src/index.js",
"main": "./dist/src/index.js",
"scripts": {
"dev:teamsfx": "env-cmd --silent -f .localConfigs npm run dev",
"dev:teamsfx:playground": "env-cmd --silent -f .localConfigs.playground npm run dev",
"dev:teamsfx:launch-playground": "env-cmd --silent -f env/.env.playground agentsplayground start",
"dev": "nodemon --exec node --inspect=9239 --signal SIGINT -r ts-node/register ./src/index.ts",
"build": "tsc --build",
"start": "node ./lib/src/index.js",
"start": "node ./dist/src/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "nodemon --exec \"npm run start\""
},
Expand Down
4 changes: 2 additions & 2 deletions templates/vsc/ts/weather-agent/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"target": "es2019",
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./lib",
"outDir": "./dist",
"rootDir": "./",
"sourceMap": true,
"incremental": true,
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"tsBuildInfoFile": "./dist/.tsbuildinfo",
"esModuleInterop": true
}
}
6 changes: 3 additions & 3 deletions templates/vsc/ts/weather-agent/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<webSocket enabled="false" />
<handlers>
<!-- Indicates that the server.js file is a node.js site to be handled by the iisnode module -->
<add name="iisnode" path="lib/src/index.js" verb="*" modules="iisnode"/>
<add name="iisnode" path="dist/src/index.js" verb="*" modules="iisnode"/>
</handlers>
<rewrite>
<rules>
<!-- Do not interfere with requests for node-inspector debugging -->
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^lib/src/index.js\/debug[\/]?" />
<match url="^dist/src/index.js\/debug[\/]?" />
</rule>

<!-- First we consider whether the incoming URL matches a physical file in the /public folder -->
Expand All @@ -30,7 +30,7 @@
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
</conditions>
<action type="Rewrite" url="lib/src/index.js"/>
<action type="Rewrite" url="dist/src/index.js"/>
</rule>
</rules>
</rewrite>
Expand Down
Loading