From 4a03d0b37e2dfdd8052bae30539a3562508caa4b Mon Sep 17 00:00:00 2001 From: Anton Mokhovikov Date: Thu, 8 Apr 2021 16:20:39 -0700 Subject: [PATCH] Codegen change & Version Bump (#47) --- python/rpdk/typescript/__init__.py | 2 +- python/rpdk/typescript/codegen.py | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/python/rpdk/typescript/__init__.py b/python/rpdk/typescript/__init__.py index c3fd9ef..d708f49 100644 --- a/python/rpdk/typescript/__init__.py +++ b/python/rpdk/typescript/__init__.py @@ -1,5 +1,5 @@ import logging -__version__ = "0.5.0" +__version__ = "1.0.0" logging.getLogger(__name__).addHandler(logging.NullHandler()) diff --git a/python/rpdk/typescript/codegen.py b/python/rpdk/typescript/codegen.py index 459525d..b23c7ae 100644 --- a/python/rpdk/typescript/codegen.py +++ b/python/rpdk/typescript/codegen.py @@ -22,11 +22,11 @@ LOG = logging.getLogger(__name__) EXECUTABLE = "cfn" -SUPPORT_LIB_NAME = "cfn-rpdk" -SUPPORT_LIB_VERSION = "0.5.0" +SUPPORT_LIB_NAME = ( + "@amazon-web-services-cloudformation/cloudformation-cli-typescript-lib" +) +SUPPORT_LIB_VERSION = "^1.0.1" MAIN_HANDLER_FUNCTION = "TypeFunction" -REPO_URL = "https://github.com/eduardomourar/cloudformation-cli-typescript-plugin" -REPO_RELEASE_SUFFIX = f"v{SUPPORT_LIB_VERSION}/cfn-rpdk-{SUPPORT_LIB_VERSION}.tgz" def validate_no(value): @@ -40,7 +40,6 @@ class TypescriptLanguagePlugin(LanguagePlugin): ENTRY_POINT = "dist/handlers.entrypoint" TEST_ENTRY_POINT = "dist/handlers.testEntrypoint" CODE_URI = "./" - SUPPORT_LIB_URI = f"{REPO_URL}/releases/download/{REPO_RELEASE_SUFFIX}" def __init__(self): self.env = self._setup_jinja_env( @@ -65,7 +64,7 @@ def _init_from_project(self, project): self._use_docker = project.settings.get("useDocker", True) self.package_root = project.root / "src" self._build_command = project.settings.get("buildCommand", None) - self._lib_path = project.settings.get("supportLibrary", self.SUPPORT_LIB_URI) + self._lib_path = SUPPORT_LIB_VERSION def _init_settings(self, project): LOG.debug("Writing settings")