@clouden-cdk/aws-lambda-typescript
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -45,3 +45,3 @@ "use strict"; | ||
// Run the TypeScript compiler | ||
const tscChild = child_process.spawnSync(pathModule.join(__dirname, '..', 'node_modules', '.bin', 'tsc'), ['--outDir', this.path], { | ||
const tscChild = child_process.spawnSync('npx', ['tsc', '--outDir', this.path], { | ||
cwd: this.typeScriptSourcePath, | ||
@@ -48,0 +48,0 @@ stdio: 'inherit', |
{ | ||
"name": "@clouden-cdk/aws-lambda-typescript", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"private": false, | ||
"description": "TypeScript Build Step for AWS CDK Lambda Functions", | ||
"main": "lib/typescript-code.js", | ||
"types": "lib/typescript-code.d.ts", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "tsc" | ||
"build": "tsc", | ||
"prepare": "tsc" | ||
}, | ||
@@ -11,0 +13,0 @@ "keywords": [], |
@@ -26,3 +26,3 @@ # TypeScript Build Step for AWS CDK Lambda Functions | ||
import { Function } from '@aws-cdk/aws-lambda' | ||
import { TypeScriptCode } from 'clouden-cdk-typescript-code' | ||
import { TypeScriptCode } from '@clouden-cdk/aws-lambda-typescript' | ||
@@ -29,0 +29,0 @@ const lambdaFunction = new Function(this, 'TestFunction', { |
@@ -44,3 +44,3 @@ import { Construct } from '@aws-cdk/core' | ||
// Run the TypeScript compiler | ||
const tscChild = child_process.spawnSync(pathModule.join(__dirname, '..', 'node_modules', '.bin', 'tsc'), ['--outDir', this.path], { | ||
const tscChild = child_process.spawnSync('npx', ['tsc', '--outDir', this.path], { | ||
cwd: this.typeScriptSourcePath, | ||
@@ -47,0 +47,0 @@ stdio: 'inherit', |
12846