Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep Compiled code in a dist folder #724

Open
swalker326 opened this issue Nov 16, 2022 · 0 comments
Open

Keep Compiled code in a dist folder #724

swalker326 opened this issue Nov 16, 2022 · 0 comments

Comments

@swalker326
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report 
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

I've created an alexa skill built in typescript and in trying to compile it to js and keep my sanity I wanted to set the entry point in package.json and enable to lambda function to be correctly routed to a different directory IE: /dist/index.js

Expected Behavior

Setting the main property in package.json to the location of my entry file would still allow the function to run.

Current Behavior

Changes to the main property seem to have no affect

Possible Solution

This could be something I'm doing wrong, or not a limitation of the sdk but of aws lambda functions themselves. I can't seem to find any information on the topic.

Steps to Reproduce (for bugs)

Create a sample skill and move your index.js file to a nested directory and update the package.json to reflect these changes.

Context

When trying to write a skill in typescript the root directory of the lambda function can become cluttered very quickly. I would like to have my *.ts files in a /src directory and my compiled *.js files in a /dist directory.

Your Environment

  • ask-sdk 2.12.1
  • Node v18.7.0
  • Mac OS Monterey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant