My current project involves using a TypeScript backend for a Dialogflow application with fulfillment. I initially used a preconfigured project template and didn't delve into the details.
I work in VS Code and never explicitly build my code. Instead, I rely on the firebase deploy command to handle the building process. However, I recently encountered an issue where making changes to the code didn't trigger transpiling of the JavaScript files as expected.
The specific change I made was switching from a hard-coded string to a property:
const app = dialogflow(
{
debug: true,
clientId:"xxxx"
}
);
To:
import * as appConfig from '../config.json';
const app = dialogflow(
{
debug: true,
clientId:appConfig.actionsClientId
}
);
When I manually change "xxxx" to "yyyy" and rebuild, the .js file updates properly. But if I change "xxxx" to appConfig.actionsClientId, the update doesn't reflect in the output.