Skip to content

Commit

Permalink
fix npm build error
Browse files Browse the repository at this point in the history
  • Loading branch information
bedanley authored Dec 18, 2024
1 parent 7a83065 commit 738d30e
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
createTypeScriptEnvironment installTypeScriptRequirements \
deploy destroy \
clean cleanTypeScript cleanPython cleanCfn cleanMisc \
help dockerCheck dockerLogin listStacks modelCheck buildEcsDeployer
help dockerCheck dockerLogin listStacks modelCheck buildNpmModules

#################################################################################
# GLOBALS #
Expand Down Expand Up @@ -259,8 +259,8 @@ endif
listStacks:
@npx cdk list

buildEcsDeployer:
@cd ./ecs_model_deployer && npm install && npm run build
buildNpmModules:
npm run build

define print_config
@printf "\n \
Expand All @@ -280,7 +280,7 @@ define print_config
endef

## Deploy all infrastructure
deploy: dockerCheck dockerLogin cleanMisc modelCheck buildEcsDeployer
deploy: dockerCheck dockerLogin cleanMisc modelCheck buildNpmModules
$(call print_config)
ifneq (,$(findstring true, $(HEADLESS)))
npx cdk deploy ${STACK} $(if $(PROFILE),--profile ${PROFILE}) --require-approval never -c ${ENV}='$(shell echo '${${ENV}}')';
Expand Down
2 changes: 1 addition & 1 deletion lib/api-base/authorizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { getDefaultRuntime } from './utils';
* @property {ISecurityGroup[]} securityGroups - Security groups for Lambdas
* @property {Map<number, ISubnet>} importedSubnets for Lambdas
*/
type AuthorizerProps = {
export type AuthorizerProps = {
role?: IRole;
vpc: Vpc;
securityGroups: ISecurityGroup[];
Expand Down
4 changes: 2 additions & 2 deletions lib/api-base/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
limitations under the License.
*/

export { RestApiGateway } from './rest-api-gw';
export { Authorizer } from './authorizer';
export { RestApiGateway, RestApiGatewayProps } from './rest-api-gw';
export { CustomAuthorizer, AuthorizerProps } from './authorizer';
2 changes: 1 addition & 1 deletion lib/api-base/rest-api-gw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { BaseProps } from '../schema';
/**
* Properties for RestApiGateway Construct.
*/
type RestApiGatewayProps = {} & BaseProps;
export type RestApiGatewayProps = {} & BaseProps;

/**
* RestApiGateway Stack.
Expand Down
6 changes: 3 additions & 3 deletions lib/docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"lisa": "bin/lisa.js"
},
"scripts": {
"build": "tsc && cd ./cdk_runner_lambda && npm run build",
"build": "tsc",
"watch": "tsc -w",
"test": "jest",
"cdk": "cdk",
"prepare": "husky install",
"migrate-properties": "node ./scripts/migrate-properties.mjs",
"postinstall": "(cd lib/user-interface/react && npm install) && (cd lib/docs && npm install)",
"postbuild": "(cd lib/user-interface/react && npm build) && (cd lib/docs && npm build)",
"postinstall": "(cd lib/user-interface/react && npm install) && (cd lib/docs && npm install) && (cd ecs_model_deployer && npm install)",
"postbuild": "(cd lib/user-interface/react && npm run build) && (cd lib/docs && npm run build) && (cd ecs_model_deployer && npm run build)",
"generateSchemaDocs": "npx zod2md -c ./lib/zod2md.config.ts"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"typeRoots": ["./node_modules/@types"],
"outDir": "dist/"
},
"exclude": ["node_modules", "cdk.out", ".git", "dist"]
"exclude": ["node_modules", "cdk.out", ".git", "dist", "lib/user-interface/react"]
}

0 comments on commit 738d30e

Please sign in to comment.