Bing Ren
Bing Ren
@Langit12 hi thanks for commenting but I'm now sure about what you mean exactly. Anything I can do?
I encountered this issue today and packed it as a reproduction. I'm building my own typescript project template. I uses ts-jest. What I'm doing is trying to test the packed...
I'm not sure if this is intended behaviour, it's like Schrödinger’s cat in Typescript...... 
Please follow the above steps to reproduce the problem. You should find the source test/resources/multi-example/schemas/personForm.json is overwritten after running json2ts.
Ok, the content of the example.zip is as follows: ``` bing@bing-e480:~/Downloads$ tree . └── test └── resources └── multi-example └── schemas ├── driver.json ├── fleet.json ├── personForm.json ├── person.json └──...
Here's my work around. Simply put - copy the dependency project into the current root. My project has three parts - frontend, backend (SAM) and "proj-common", common artifacts for both...
If you are willing to try CDK, NodejsFunction with esbuild works for me pretty well. See https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html#local-bundling https://docs.aws.amazon.com/cdk/api/latest/docs/aws-lambda-nodejs-readme.html#configuring-esbuild
I upgraded to the latest version and the misleading error still exists. Below is output with --debug option. ``` bing@bingstp:~/git/aws-serverless-roundtrip-option1$ aws dynamodb create-table --cli-input-json cli-input-json/dynamodb-create-table-contact.json --debug 2018-08-06 21:44:59,904 - MainThread...
Below is output with --debug option and correct parameter. The command executes successfully. ``` bing@bingstp:~/git/aws-serverless-roundtrip-option1$ aws dynamodb create-table --cli-input-json file://cli-input-json/dynamodb-create-table-contact.json --debug 2018-08-06 21:47:58,430 - MainThread - awscli.clidriver - DEBUG -...
And the content of the JSON file: ``` bing@bingstp:~/git/aws-serverless-roundtrip-option1$ cat cli-input-json/dynamodb-create-table-contact.json { "TableName": "contact", "AttributeDefinitions": [{ "AttributeName": "id", "AttributeType": "N" }], "ProvisionedThroughput": { "WriteCapacityUnits": 5, "ReadCapacityUnits": 5 }, "KeySchema": [{...