Skip to content

Commit

Permalink
Codegen change & Version Bump (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammokhov authored Apr 8, 2021
1 parent 1eeffd7 commit 4a03d0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion python/rpdk/typescript/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging

__version__ = "0.5.0"
__version__ = "1.0.0"

logging.getLogger(__name__).addHandler(logging.NullHandler())
11 changes: 5 additions & 6 deletions python/rpdk/typescript/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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(
Expand All @@ -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")
Expand Down

0 comments on commit 4a03d0b

Please sign in to comment.