@rebel-framework/stack
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@rebel-framework/stack", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"private": false, | ||
@@ -9,5 +9,5 @@ "description": "Rebel Framework's CDK abstraction layer", | ||
"license": "MIT", | ||
"main": "bin/index.js", | ||
"main": "build/index.js", | ||
"exports": { | ||
".": "./bin/index.js" | ||
".": "./build/index.js" | ||
}, | ||
@@ -22,6 +22,9 @@ "files": [ | ||
"scripts": { | ||
"build": "tsc && babel src --out-dir bin --extensions '.ts'", | ||
"watch": "tsc && babel src --out-dir bin --extensions '.ts' --watch", | ||
"test": "jest", | ||
"coverage": "jest --coverage" | ||
"build": "tsc && babel src --out-dir build --extensions '.ts'", | ||
"watch": "tsc && babel src --out-dir build --extensions '.ts' --watch", | ||
"test": "jest --passWithNoTests", | ||
"coverage": "jest --coverage --passWithNoTests", | ||
"type-check": "npx tsc", | ||
"format": "npx prettier .", | ||
"lint": "npx eslint src/**.ts" | ||
}, | ||
@@ -39,5 +42,15 @@ "dependencies": { | ||
"@types/node": "^20.4.2", | ||
"@typescript-eslint/eslint-plugin": "^5.62.0", | ||
"@typescript-eslint/parser": "^6.3.0", | ||
"aws-cdk": "^2.89.0", | ||
"aws-cdk-lib": "^2.90.0", | ||
"eslint": "^8.47.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-config-standard-with-typescript": "^37.0.0", | ||
"eslint-plugin-import": "^2.28.0", | ||
"eslint-plugin-n": "^16.0.1", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"jest": "^29.6.1", | ||
"prettier": "3.0.1", | ||
"ts-jest": "^29.1.1", | ||
@@ -44,0 +57,0 @@ "typescript": "^5.1.6" |
@@ -19,3 +19,3 @@ import { Stack as CloudFormationStack } from 'aws-cdk-lib'; | ||
artifacts: { | ||
'base-directory': 'bin', | ||
'base-directory': 'build', | ||
files: ['**/*'], | ||
@@ -22,0 +22,0 @@ }, |
@@ -11,3 +11,3 @@ import { root } from '@rebel-framework/core'; | ||
functionName: name, | ||
code: Lambda.Code.fromAsset(root('bin/backend')), | ||
code: Lambda.Code.fromAsset(root('build/backend')), | ||
runtime: Lambda.Runtime.NODEJS_18_X, | ||
@@ -14,0 +14,0 @@ handler: 'handler.handler', |
@@ -5,3 +5,2 @@ import { | ||
StackProps as CloudFormationStackProps, | ||
Duration, | ||
} from 'aws-cdk-lib'; | ||
@@ -8,0 +7,0 @@ |
@@ -19,3 +19,3 @@ import useApiGateway from './services/apigateway'; | ||
export interface Stack { | ||
export type Stack = { | ||
apiGateway: ReturnType<typeof useApiGateway>; | ||
@@ -39,2 +39,2 @@ appConfig: ReturnType<typeof useAppConfig>; | ||
deploy: () => void; | ||
} | ||
}; |
23222
22
603