Skip to content

Commit

Permalink
Fix for missing files in sam+ts 'samp local'
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Oct 4, 2023
1 parent a7fcdf7 commit 2a4e172
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "samp-cli",
"version": "1.0.59",
"version": "1.0.60",
"description": "CLI tool for extended productivity with AWS Serverless Application Model (SAM)",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/commands/local/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ function setupSAM_TS(initialised) {
// remove // comments
fileContent = fileContent.replace(/\/\/.*/g, '');
const tscProcess = exec(`${__dirname}/../../../node_modules/.bin/tsc-watch --module commonjs --sourceMap true --outDir ${process.env.outDir} --noEmit false`, {});
copyFiles(process.cwd(), `${process.cwd()}/.samp-out`);

tscProcess.stdout.on('data', (data) => {
console.log("tsc: ", data.toString().replace(/\n$/, ''));
if (data.toString().includes("Watching for file changes") && !initialised) {
Expand Down

0 comments on commit 2a4e172

Please sign in to comment.